Greetings,
It would be handy to be able to rescue a machine with a USB NIC.
I'm not sure what it'll take for OHCI yet, but my new hardware has it, so I'll fine out soon enough.
IIRC, OHCI does more in hardware, so it may actually be easier than uhci.
G'day, sjames
-------------------------steven james, director of research, linux labs ... ........ ..... .... 230 peachtree st nw ste 2701 the original linux labs atlanta.ga.us 30303 -since 1995 http://www.linuxlabs.com office 404.577.7747 fax 404.577.7743 -----------------------------------------------------------------------
On Sun, 1 Feb 2004, Peter Lister wrote:
On Sat, 2004-01-31 at 08:02, Steven James wrote:
It souuldn't be too painful to link it in to other loaders and call the ll_read_block function.
block_fill_inbuf.c best demonstrates the interface to the USB stack. init_bytes() shows getting the bus enumerated and finding an appropriate boot device and usb_read() shows grabbing the blocks.
Really, it's just a matter of calling usb_poll(0 in a loop until you see a device you want or it quits finding new devices. usb_poll just checks all known hubs for connect events and enumerates the device that was connected. It returns 1 if it processed an event, 0 for no events and -1 for an error (retryable).
The Etherboot guys are champing at the bit for USB, and anything which advances the work is very useful. I'm sure that with this and the Linux usb ethernet dongle source, there'll be something soon.
Dumb question - how much work is it to add OHCI?