From owner-freebsd-current Thu Mar 7 0:37:32 2002 Delivered-To: freebsd-current@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 3B0C037B402; Thu, 7 Mar 2002 00:37:25 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g278bOi90443; Thu, 7 Mar 2002 01:37:24 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g278bNL91517; Thu, 7 Mar 2002 01:37:23 -0700 (MST) (envelope-from imp@village.org) Date: Thu, 07 Mar 2002 01:37:13 -0700 (MST) Message-Id: <20020307.013713.112719491.imp@village.org> To: fujita@soum.co.jp Cc: freebsd-current@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG Subject: Re: bus_alloc_resouce() failure for OPTi 82C861 From: "M. Warner Losh" In-Reply-To: <20020307.173524.71090447.fujita@soum.co.jp> References: <20020307.173524.71090447.fujita@soum.co.jp> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20020307.173524.71090447.fujita@soum.co.jp> FUJITA Kazutoshi writes: : Hi there, : : I installed -CURRENT on my old PC(ThinkPad235 aka Chandra2), : but its USB device doesn't work. : (it works on Windows environment) : : [boot message] : ohci0: irq 10 at device 5.0 on pci0 : ohci0: Could not map memory : device_probe_and_attach: ohci0 attach returned 6 : : : in source code, sys/pci/ohci_pci.c : : rid = PCI_CBMEM; : sc->io_res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid, : 0, ~0, 1, RF_ACTIVE); : if (!sc->io_res) { : device_printf(self, "Could not map memory\n"); : return ENXIO; : } : : It seems the function bus_alloc_resource() returns NULL. : : How can I avoid this failure? You can't. However, you can work around it like the pccbb driver does. It would be better if these things were handled in the pci bus layer, but someone would need to implement that. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message