Closed thejpster closed 1 year ago
Desktop BIOS now has HID support. Here we will need a byte buffer of PS/2 scan codes, and the pc-keyboard crate to decode into key events. We will poll the BMC whenever we do an OS operation and the BMC interrupt is high. The BMC will hold the keyboard clock line low whenever its internal scan code buffer fills up (stopping any more scan codes being generated). A partial scan code code would be regenerated, but a repeated F0 or E0 prefix can be discarded easily enough (they are never used as actual scan codes).
This is WIP. SPI comms on the BMC craps out after a while though.
It's in!
Talk to the BMC to get key events.