usb: Port reset logic is now on a timer

This commit is contained in:
Cacodemon345
2023-05-01 16:55:49 +06:00
parent 2684befe7b
commit ea5b9cdbf8
2 changed files with 29 additions and 4 deletions

View File

@@ -39,6 +39,8 @@ typedef struct usb_t
int uhci_enable, ohci_enable;
uint32_t ohci_mem_base;
mem_mapping_t ohci_mmio_mapping;
pc_timer_t ohci_frame_timer;
pc_timer_t ohci_port_reset_timer[2];
usb_params_t* usb_params;
} usb_t;