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
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?