diff options
author | Liav A <liavalb@gmail.com> | 2022-04-22 16:15:41 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-15 12:29:23 +0200 |
commit | 7db6b77e7545f4224a4ebd2f0a97b753d291b4de (patch) | |
tree | a776cd3a2af9724b7143ab0a2cea21515a782025 /Kernel/Storage/ATA | |
parent | 6ff1aeb64dd4790598b108f77abbf7e8fed163a0 (diff) | |
download | serenity-7db6b77e7545f4224a4ebd2f0a97b753d291b4de.zip |
Kernel: Export both interface type and command set of a StorageDevice
Diffstat (limited to 'Kernel/Storage/ATA')
-rw-r--r-- | Kernel/Storage/ATA/ATADiskDevice.h | 1 | ||||
-rw-r--r-- | Kernel/Storage/ATA/ATAPIDiscDevice.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Storage/ATA/ATADiskDevice.h b/Kernel/Storage/ATA/ATADiskDevice.h index 4f08973ca8..5d611e0120 100644 --- a/Kernel/Storage/ATA/ATADiskDevice.h +++ b/Kernel/Storage/ATA/ATADiskDevice.h @@ -26,6 +26,7 @@ public: virtual CommandSet command_set() const override { return CommandSet::ATA; } private: + virtual InterfaceType interface_type() const override { return InterfaceType::ATA; } ATADiskDevice(ATAController const&, Address, MinorNumber, u16, u16, u64, NonnullOwnPtr<KString>); // ^DiskDevice diff --git a/Kernel/Storage/ATA/ATAPIDiscDevice.h b/Kernel/Storage/ATA/ATAPIDiscDevice.h index bfb80befe9..daed2e9c7e 100644 --- a/Kernel/Storage/ATA/ATAPIDiscDevice.h +++ b/Kernel/Storage/ATA/ATAPIDiscDevice.h @@ -26,6 +26,7 @@ public: virtual CommandSet command_set() const override { return CommandSet::SCSI; } private: + virtual InterfaceType interface_type() const override { return InterfaceType::ATA; } ATAPIDiscDevice(ATAController const&, Address, MinorNumber, u16, u64, NonnullOwnPtr<KString>); // ^DiskDevice |