From 561354b69c5ae5e73b036b382988fda02bc9fb01 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 16:05:09 +0100 Subject: usb: re-enable EHCI, share HID keyboard decoding, fix boot protocol - ehci: DEBUG_MATRIX was left true in be868a4, so every boot replaced enumeration with the one-shot diagnostic transfer matrix and returned false -- the EHCI driver never brought a device up. Default it off; flip it back on only when bisecting a controller fault. - new rsnix/src/hid.rs: boot-keyboard HID usage -> scancode-set-1 tables, the shared scancode FIFO, and a per-device report differ. UHCI now uses it instead of its own copy, so EHCI/xHCI keyboards can feed the same PS/2 decoder (`ps2::feed_scancode`). - uhci: SET_PROTOCOL now asks for the boot protocol (wValue 0) instead of report protocol (wValue 1). In report protocol the report layout is device-defined, but every driver parses boot reports. --- rsnix/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'rsnix/src/lib.rs') diff --git a/rsnix/src/lib.rs b/rsnix/src/lib.rs index 325932a..b4307a3 100644 --- a/rsnix/src/lib.rs +++ b/rsnix/src/lib.rs @@ -11,6 +11,7 @@ pub mod font; pub mod fs; pub mod gdt; pub mod gop; +pub mod hid; pub mod interrupts; pub mod klog; pub mod load; -- cgit v1.2.3