XHCI fix device hotplug, introduce xhci port status change queue
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 4m1s
Build documentation / build-and-deploy (push) Successful in 2m47s

This commit is contained in:
2026-03-31 17:16:58 +02:00
parent e41e62af38
commit 8f1e24653d
2 changed files with 43 additions and 16 deletions

View File

@@ -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;
};