1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

Kernel: Remove type from StorageDevice class

This commit is contained in:
Jean-Baptiste Boric 2021-04-11 18:53:01 +02:00 committed by Andreas Kling
parent 9b75b1be5f
commit a73bd0fff8
14 changed files with 1 additions and 47 deletions

View file

@ -37,16 +37,8 @@ namespace Kernel {
class StorageDevice : public BlockDevice {
friend class StorageManagement;
AK_MAKE_ETERNAL
public:
enum class Type : u8 {
Ramdisk,
IDE,
SATA,
NVMe,
};
public:
virtual Type type() const = 0;
virtual u64 max_addressable_block() const { return m_max_addressable_block; }
NonnullRefPtr<StorageController> controller() const;