mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +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:
parent
627cfe017c
commit
2718d7c74c
6 changed files with 96 additions and 25 deletions
|
@ -106,6 +106,7 @@ public:
|
|||
|
||||
public:
|
||||
static NonnullRefPtr<IDEChannel> create(const IDEController&, IOAddressGroup, ChannelType type);
|
||||
static NonnullRefPtr<IDEChannel> create(const IDEController&, u8 irq, IOAddressGroup, ChannelType type);
|
||||
virtual ~IDEChannel() override;
|
||||
|
||||
RefPtr<StorageDevice> master_device() const;
|
||||
|
@ -117,6 +118,7 @@ public:
|
|||
|
||||
private:
|
||||
void complete_current_request(AsyncDeviceRequest::RequestResult);
|
||||
void initialize();
|
||||
|
||||
protected:
|
||||
enum class LBAMode : u8 {
|
||||
|
@ -131,6 +133,7 @@ protected:
|
|||
};
|
||||
|
||||
IDEChannel(const IDEController&, IOAddressGroup, ChannelType type);
|
||||
IDEChannel(const IDEController&, u8 irq, IOAddressGroup, ChannelType type);
|
||||
//^ IRQHandler
|
||||
virtual void handle_irq(const RegisterState&) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue