26 Aug 2011 15:49
Porting USB stack -- questions on ioconf.c
Pow, Christopher (SWCOE <Christopher.Pow <at> honeywell.com>
2011-08-26 13:49:35 GMT
2011-08-26 13:49:35 GMT
I am porting the USB stack of NetBSD to a different OS/platform and have some questions regarding the content of ioconf.c. I am expecting to support mass storage, keyboard, mouse (generic HID). I have the stack up and running except for being able to unplug and re-plug devices. For example, when I plug in a keyboard, I get: Found uhidev0 and uhub0 port 2 configuration 1 interface 0 Dell Dell QuietKey Keyboard, rev 1.10/1.55, addr 2, iclass 3/1 Found uhid0 at uhidev0 : input=8, output=1,feature=0 Then when I un-plug it: detached detached uhidev0: at uhub0 port 2 (addr 2) disconnected Then when I plug it back in: Found ugen0 at uhub0 port 2 Dell Dell QuietKey Keyboard, rev 1.10/1.55, addr 2, iclass 3/1 I had to hack together ioconf.c to get this far...so I'm *sure* my ioconf.c is a total mess. However I've been unable to find anything resembling useful-including searching through the code for "config"-to help figure out what I need to have in ioconf.c. Hopefully someone out there can give me some pointers as to how the tables in ioconf.c relate and how they should be set up differently than what I've got...? Here's my ioconf.c:(Continue reading)
RSS Feed