Kernel: Make sure USB class driver is deinitialized before xhci device
This commit is contained in:
@@ -61,6 +61,9 @@ namespace Kernel
|
||||
{}
|
||||
virtual ~USBDevice() = default;
|
||||
|
||||
// Class drivers have to be destroyed before derived class destructor is called
|
||||
void destroy() { m_class_drivers.clear(); }
|
||||
|
||||
BAN::ErrorOr<void> initialize();
|
||||
|
||||
const BAN::Vector<ConfigurationDescriptor>& configurations() { return m_descriptor.configurations; }
|
||||
|
||||
@@ -46,7 +46,8 @@ namespace Kernel
|
||||
|
||||
void port_updater_task();
|
||||
|
||||
BAN::ErrorOr<void> initialize_slot(int port_index);
|
||||
BAN::ErrorOr<uint8_t> initialize_slot(int port_index);
|
||||
void deinitialize_slot(uint8_t slot_id);
|
||||
|
||||
BAN::ErrorOr<XHCI::TRB> send_command(const XHCI::TRB&);
|
||||
void advance_command_enqueue();
|
||||
|
||||
Reference in New Issue
Block a user