1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +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

@ -44,17 +44,10 @@ class AsyncBlockDeviceRequest;
class StorageDevice;
class StorageController : public RefCounted<StorageController> {
AK_MAKE_ETERNAL
public:
enum class Type : u8 {
Ramdisk,
IDE,
AHCI,
NVMe
};
public:
virtual ~StorageController() = default;
virtual Type type() const = 0;
virtual RefPtr<StorageDevice> device(u32 index) const = 0;
virtual size_t devices_count() const = 0;