Subject: how to enable a new cardbus/pccard device? (ATEN USB 2.0 card)
To: None <netbsd-help@netbsd.org>
From: George Michaelson <ggm@apnic.net>
List: netbsd-help
Date: 01/22/2003 12:44:32
I bought an ATEN USB2.0 32bit cardbus card, model PU-212.

when inserted into my NetBSD-current host with cardbus enabled
in the kernel, it hangs, both for cold-boot inserted, and a hot
insert into a running system. no messages.

In FreeBSD 5.0, the device is safe, but not recognized. the probe
details in dmesg are:

 cardbus0: Resource not specified in CIS: id=10, size=1000
 cardbus0: <unknown card> (vendor=0x1033, dev=0x0035) at 0.0 irq 10
 cardbus0: Resource not specified in CIS: id=10, size=1000
 cardbus0: <unknown card> (vendor=0x1033, dev=0x0035) at 0.1 irq 10
 cardbus0: Resource not specified in CIS: id=10, size=100
 cardbus0: <unknown card> (vendor=0x1033, dev=0x00e0) at 0.2 irq 10
 cbb0: CardBus card activation failed

so I know its vendor:device 0x1033:0035 with a second sub-device instance
at 0x00e0 (two USB ports, so two sub devices I guess)

In RedHat 8.0, the device is fully recognized and functional. I am able
to use a USB devs checker to see its an NEC chipset (unknown details) driving
the USB component. the dmesg probe in this case is:

 cs: cb_alloc(bus 2): vendor 0x1033, device 0x0035
 PCI: Enabling device 02:00.0 (0000 -> 0002)
 PCI: Enabling device 02:00.1 (0000 -> 0002)
 PCI: Enabling device 02:00.2 (0000 -> 0002)
 PCI: Setting latency timer of device 02:00.0 to 64
 usb-ohci.c: USB OHCI at membase 0xd09ab000, IRQ 10
 usb-ohci.c: usb-02:00.0, PCI device 1033:0035
 usb.c: new USB bus registered, assigned bus number 2
 hub.c: USB hub found
 hub.c: 3 ports detected
 PCI: Setting latency timer of device 02:00.1 to 64
 usb-ohci.c: USB OHCI at membase 0xd09b3000, IRQ 10
 usb-ohci.c: usb-02:00.1, PCI device 1033:0035
 usb.c: new USB bus registered, assigned bus number 3
 hub.c: USB hub found
 hub.c: 2 ports detected
 hcd.c: ehci-hcd @ 02:00.2, PCI device 1033:00e0
 hcd.c: irq 10, pci mem d09c6000
 usb.c: new USB bus registered, assigned bus number 4
 ehci-hcd.c: USB 2.0 support enabled, EHCI rev 0.95
 hub.c: USB hub found
 hub.c: 5 ports detected
 
(actually, removal can hang Linux, but insertion and cold boot is safe)

Can somebody explain to me how I can go about constructing a valid
cardbus/pccard entry for this device?

cheers

	-George