Subject: usb-question
To: None <current-users@netbsd.org>
From: Love <lha@stacken.kth.se>
List: current-users
Date: 09/20/2000 09:34:59
I'm trying to figure out how usb works in NetBSD, but I'm a little bit
puzzled. If the ioctl(USB_GET_INTERFACE_DESC) returns 2 endpoints,
shouldn't it be possible to open /dev/ugen0.01 and /dev/ugen0.02 ?

This is with NetBSD 1.5C.

Love

: lha@nutcracker ; dmesg | grep ugen0
ugen0 at uhub0 port 1
ugen0: vendor 0x0573 product 0x4d11, rev 1.00/1.00, addr 2
: lha@nutcracker ; ./usbctl /dev/ugen0.00 
Configuration:
type:               2
numInterfaces:      1
Configuration:      1
Configuration idx:  0
Attributes:         128 bus-powered
Max power:          500 mA
numEndpoints:       2		<- result of USB_GET_INTERFACE_DESC
: lha@nutcracker ; ./usbctl /dev/ugen0.01
usbctl: open(/dev/ugen0.01): Device not configured
: lha@nutcracker ; ./usbctl /dev/ugen0.02
usbctl: open(/dev/ugen0.01): Device not configured