SchOS/kernel/drivers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz f6c4b6377f GMMOS: USB keyboards on xHCI
The third micro driver: xhci.c with everything but finding a keyboard and
reading it taken out. It does not take over the live driver's state --
the kernel may have died inside that driver -- so each controller is
halted, reset and enumerated from nothing. Of the live driver it uses
the register mapping and the scratchpad pages the controller was lent
(DCBAA entry 0, read before the reset).

Root ports, and USB 2 hubs up to two deep (power, reset, route string,
transaction translator for a slow device behind a high-speed hub). A
boot-protocol keyboard interface gets Set Configuration, Set Protocol
boot, Set Idle, one interrupt IN endpoint and a Normal TRB, re-queued
after every report. No interrupts, no hot-plug, nothing that is not a
keyboard or a hub. A static 256 KB pool instead of the DMA allocator.

Checked under QEMU with the PS/2 controller switched off (i8042=off): a
USB keyboard on a root port, and one behind a hub, both type into the
GMMOS terminal. QEMU's hub is full speed, so the transaction-translator
path is not exercised.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-25 01:23:14 +02:00
..
audio include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
bus/xhci GMMOS: USB keyboards on xHCI 2026-10-25 01:23:14 +02:00
gpu display: a 64-bit framebuffer address, no mirroring onto itself 2026-10-23 15:46:42 +02:00
net net: downloads at tens of megabits, not one 2026-10-24 15:28:32 +02:00
storage include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
usb GMMOS: I2C keyboards, and every keyboard at once 2026-10-25 01:15:50 +02:00
registry.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00