mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
Kernel: Remove type from StorageDevice class
This commit is contained in:
parent
9b75b1be5f
commit
a73bd0fff8
Notes:
sideshowbarker
2024-07-18 20:25:08 +09:00
Author: https://github.com/boricj
Commit: a73bd0fff8
Pull-request: https://github.com/SerenityOS/serenity/pull/6295
14 changed files with 1 additions and 47 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue