mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:25:07 +00:00
Kernel/Storage: Remove InterfaceType enum
This enum was created to help put distinction between the commandset and the interface type, as ATAPI devices are simply ATA devices utilizing the SCSI commandset. Because we don't support ATAPI, putting such type of distinction is pointless, so let's remove this for now.
This commit is contained in:
parent
c85f81bc9d
commit
c3eaa73113
8 changed files with 5 additions and 41 deletions
|
@ -71,23 +71,6 @@ StringView StorageDevice::command_set_to_string_view() const
|
|||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
StringView StorageDevice::interface_type_to_string_view() const
|
||||
{
|
||||
switch (interface_type()) {
|
||||
case InterfaceType::PlainMemory:
|
||||
return "memory"sv;
|
||||
case InterfaceType::SCSI:
|
||||
return "scsi"sv;
|
||||
case InterfaceType::ATA:
|
||||
return "ata"sv;
|
||||
case InterfaceType::NVMe:
|
||||
return "nvme"sv;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
ErrorOr<size_t> StorageDevice::read(OpenFileDescription&, u64 offset, UserOrKernelBuffer& outbuf, size_t len)
|
||||
{
|
||||
u64 index = offset >> block_size_log();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue