1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Kernel/USB: Implement test transfer

We can now test a _very_ basic transaction via `do_debug_transfer()`.
This function merely attaches some TDs to the LSCTRL queue head
and points some input and output buffers. We then sense an interrupt
with USBSTS value of 1, meaning Interrupt On Completion
(of the transaction). At this point, the input buffer is filled with
some data.
This commit is contained in:
Jesse Buhagiar 2021-01-04 21:56:43 +11:00 committed by Andreas Kling
parent 3fb7e98e42
commit 6df15aca7e
4 changed files with 95 additions and 7 deletions

View file

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