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:
parent
9b75b1be5f
commit
a73bd0fff8
14 changed files with 1 additions and 47 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue