Kevin O'Connor wrote:
On Thu, Aug 20, 2009 at 02:06:07PM +0200, Stefan Reinauer wrote:
Harrison, Jon (SELEX GALILEO, UK) schrieb:
I'm now trying to decide whether I fancy my chances of adding CBFS support to FILO or USB keyboard to SeaBIOS more !!!
USB keyboard support for SeaBIOS will require that you emulate a standard PS/2 keyboard (io 0x60/0x62) interface in system management mode (SMM), passing the commands on to a USB stack (There is one in libpayload which should probably be used. It's the stack that is used in FILO for USB keyboard support, too). Right now there is only a SMM handler for i945/i82801gx, and it has no USB keyboard legacy emulation, but it can show you quite well what needs to be done to implement an SMM handler for a coreboot platform.
I believe it is possible to add USB keyboard support to SeaBIOS without requiring SMM mode. I believe a regular usb keyboard driver will work fine.
Hm.. Last thing I heard is that most boot loaders don't call intXX functions but read int 0x60/0x64. I don't have definite numbers on that, though. I suppose if a normal driver would work, we could hook up another int in Jason's usbrom and we're good?
Stefan