1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

Kernel/USB: Add basic root port detection/management

We can now read/write to the two root ports exposed to the
UHCI controller, and detect when a device is plugged in or
out via a kernel process that constantly scans the port
for any changes. This is very basic, but is a bit of fun to see
the kernel detecting hardware on the fly :^)
This commit is contained in:
Jesse Buhagiar 2021-01-03 00:12:54 +11:00 committed by Andreas Kling
parent a5f895d251
commit 770a729e59
3 changed files with 65 additions and 1 deletions

View file

@ -247,6 +247,7 @@ void init_stage2(void*)
}
USB::UHCIController::detect();
USB::UHCIController::the().spawn_port_proc();
E1000NetworkAdapter::detect();
RTL8139NetworkAdapter::detect();