Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Mar 2002 01:37:13 -0700 (MST)
From:      "M. Warner Losh" <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
Message-ID:  <20020307.013713.112719491.imp@village.org>
In-Reply-To: <20020307.173524.71090447.fujita@soum.co.jp>
References:  <20020307.173524.71090447.fujita@soum.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20020307.173524.71090447.fujita@soum.co.jp>
            FUJITA Kazutoshi <fujita@soum.co.jp> 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: <OPTi 82C861 (FireLink) USB controller> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020307.013713.112719491.imp>