Add ATA drive support #27
@ -727,7 +727,7 @@ Result<void> ATADevice::create(SharedPtr<ATA::Drive> drive)
|
||||
{
|
||||
auto device = TRY(adopt_shared_if_nonnull(new (std::nothrow) ATADevice()));
|
||||
device->m_drive = drive;
|
||||
return DeviceRegistry::register_special_device(DeviceRegistry::Disk, next_minor++, device);
|
||||
return DeviceRegistry::register_special_device(DeviceRegistry::Disk, next_minor++, device, "cdrom", 0400);
|
||||
}
|
||||
|
||||
Result<u64> ATADevice::read(u8* buf, usize offset, usize size) const
|
||||
|
Loading…
Reference in New Issue
Block a user