usb: hub class driver

This commit is contained in:
Matheus
2026-05-13 12:04:17 -03:00
parent 53f444eb2f
commit 9c45a41abe
8 changed files with 598 additions and 20 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ void xhci_handle_port_change_event(xhci_ctrl_t *xhci, int global_port) {
usb_hub_event_disconnect(&hub->hub, local_port);
usb_hub_event_connect(&hub->hub, local_port);
} else if (reset_event) {
usb_hub_event_reset(&hub->hub, local_port);
usb_hub_event_reset(&hub->hub, local_port, USB_SPEED_UNKNOWN);
}
xhci->portregs[global_port - 1].portsc = (portsc & XHCI_PORTSC_PRESERVE_BITS) |