1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

Kernel: Export both interface type and command set of a StorageDevice

This commit is contained in:
Liav A 2022-04-22 16:15:41 +03:00 committed by Andreas Kling
parent 6ff1aeb64d
commit 7db6b77e75
6 changed files with 54 additions and 0 deletions

View file

@ -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

View file

@ -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