From owner-freebsd-mobile Fri Sep 1 12:58:48 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-115.dsl.snfc21.pacbell.net [63.202.177.115]) by hub.freebsd.org (Postfix) with ESMTP id 4607337B423; Fri, 1 Sep 2000 12:58:37 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id MAA05534; Fri, 1 Sep 2000 12:39:57 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200009011939.MAA05534@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Ron Rosson Cc: wpaul@freebsd.org, mobile@freebsd.org Subject: Re: USB In-reply-to: Your message of "Fri, 01 Sep 2000 08:56:24 PDT." <20000901085624.A8328@lunatic.oneinsane.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Sep 2000 12:39:57 -0700 From: Mike Smith Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > > Can you instead give me the output of 'pciconf -r pci0:7:2 4' ? I would > > hazard a guess that the least significant bit will be zero, indicating > > that I/O port access is not enabled for this device, and we don't honour > > the register allocation in that case. > > > > mental# pciconf -r pci0:7:2 4 > 0x02800000 > > Hope this helps Yup. Your PCI BIOS is buggy; it's assigning resources to the device but not bothering to set the 'enable' bit for the resource type. You can try hacking around this for now, Bill will probably fix it properly in a few days. In /sys/pci/pci.c around line 1080 you have this code (without the line numbers, obviously 8): 1082 if (type == SYS_RES_IOPORT && !pci_porten(cfg)) 1083 return 1; 1084 if (type == SYS_RES_MEMORY && !pci_memen(cfg)) 1085 return 1; Change it to read: if (type == SYS_RES_IOPORT && !pci_porten(cfg)) pci_cfgwrite(cfg, PCIR_COMMAND, cfg->cmdreg | PCIM_CMD_PORTEN, 2); if (type == SYS_RES_MEMORY && !pci_memen(cfg)) pci_cfgwrite(cfg, PCIR_COMMAND, cfg->cmdreg | PCIM_CMD_MEMEN, 2); This ignores the fact that the BIOS hasn't enabled the relevant access types, and takes care of it instead. Let me know how you go with this. Regards, -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message