1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:27:34 +00:00

Kernel/Storage: Add support for IDE controllers in PCI native mode

Also handle native and compatibility channel modes together, so if only
one IDE channel was set to work on PCI native mode, we need to handle it
separately, so the other channel continue to operate with the legacy IO
ports and interrupt line.
This commit is contained in:
Liav A 2021-03-27 21:44:25 +03:00 committed by Andreas Kling
parent 627cfe017c
commit 2718d7c74c
6 changed files with 96 additions and 25 deletions

View file

@ -53,8 +53,11 @@ public:
virtual void complete_current_request(AsyncDeviceRequest::RequestResult) override;
bool is_bus_master_capable() const;
bool is_pci_native_mode_enabled() const;
private:
bool is_pci_native_mode_enabled_on_primary_channel() const;
bool is_pci_native_mode_enabled_on_secondary_channel() const;
IDEController(PCI::Address address, bool force_pio);
RefPtr<StorageDevice> device_by_channel_and_position(u32 index) const;