uhci: Reserve some frames for control/bulk transfers

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
Tormod Volden
2026-08-18 15:50:31 +02:00
committed by Lionel Debroux
parent 6c9536afba
commit b6a9eda8db
+3 -2
View File
@@ -608,10 +608,11 @@ bool uhci_probe(uint16_t io_base, usb_hcd_t *hcd)
}
// Re-initialise the frame list to execute the periodic schedule.
for (int i = 0; i < UHCI_FL_LENGTH; i++) {
// Leave the last slots for any control or bulk transfers
for (int i = 0; i < UHCI_FL_LENGTH - 96; i++) {
write32(&fl[i], UHCI_LP_TERMINATE);
}
for (int i = 0; i < UHCI_FL_LENGTH; i += min_interval) {
for (int i = 0; i < UHCI_FL_LENGTH - 96; i += min_interval) {
write32(&fl[i], first_qh_ptr);
}