diff options
Diffstat (limited to 'Kernel/Devices/USB/UHCIController.h')
-rw-r--r-- | Kernel/Devices/USB/UHCIController.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Devices/USB/UHCIController.h b/Kernel/Devices/USB/UHCIController.h index 8ebbc90798..9731877372 100644 --- a/Kernel/Devices/USB/UHCIController.h +++ b/Kernel/Devices/USB/UHCIController.h @@ -26,6 +26,7 @@ class UHCIController final : public PCI::Device { public: static void detect(); static UHCIController& the(); + virtual ~UHCIController() override; virtual const char* purpose() const override { return "UHCI"; } @@ -39,6 +40,9 @@ public: KResultOr<size_t> submit_control_transfer(Transfer& transfer); + RefPtr<USB::Device> const get_device_at_port(USB::Device::PortNumber); + RefPtr<USB::Device> const get_device_from_address(u8 device_address); + private: UHCIController(PCI::Address, PCI::ID); @@ -89,6 +93,8 @@ private: OwnPtr<Region> m_framelist; OwnPtr<Region> m_qh_pool; OwnPtr<Region> m_td_pool; + + Array<RefPtr<USB::Device>, 2> m_devices; // Devices connected to the root ports (of which there are two) }; } |