XHCI fix device hotplug, introduce xhci port status change queue
This commit is contained in:
@@ -70,6 +70,12 @@ struct xhci_pdevice {
|
||||
uint8_t endpoint0_cycle_bit;
|
||||
};
|
||||
|
||||
struct xhci_port_status_change {
|
||||
struct list_node_link port_changes_link;
|
||||
uint8_t port;
|
||||
uint32_t portsc;
|
||||
};
|
||||
|
||||
struct xhci {
|
||||
struct device* device;
|
||||
|
||||
@@ -113,6 +119,7 @@ struct xhci {
|
||||
atomic_bool pending;
|
||||
uint8_t last_slot_id;
|
||||
uint8_t last_cmpl_code;
|
||||
struct list_node_link* port_changes;
|
||||
|
||||
spin_lock_t setup_lock;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user