usb: Add ability to attach and detach devices for real

This commit is contained in:
Cacodemon345
2023-05-08 22:30:28 +06:00
parent 2fac3e5dc5
commit 50b0fe4990
2 changed files with 32 additions and 19 deletions

View File

@@ -123,6 +123,7 @@ typedef struct
/* Global variables. */
extern const device_t usb_device;
extern usb_t* usb_device_inst;
/* Functions. */
extern void uhci_update_io_mapping(usb_t *dev, uint8_t base_l, uint8_t base_h, int enable);