Re: bus_alloc_resouce() failure for OPTi 82C861

2002-03-08 Thread FUJITA Kazutoshi

From: M. Warner Losh [EMAIL PROTECTED]
Subject: Re: bus_alloc_resouce() failure for OPTi 82C861
Date: Thu, 07 Mar 2002 01:37:13 -0700 (MST)
Message-ID: [EMAIL PROTECTED]

 : [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

 : 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.

Thanks for your advice.
I tried to work around like pccbb driver does, it seems work.

[boot message]
ohci0: OPTi 82C861 (FireLink) USB controller irq 10 at device 5.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: OPTi 82C861 (FireLink) USB controller on ohci0
usb0: USB revision 1.0
uhub0: OPTi OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered


TIA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



bus_alloc_resouce() failure for OPTi 82C861

2002-03-07 Thread FUJITA Kazutoshi

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?


TIA

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: bus_alloc_resouce() failure for OPTi 82C861

2002-03-07 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
FUJITA Kazutoshi [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message