kernel/ATA: Pass extra information to DeviceRegistry
All checks were successful
continuous-integration/drone/pr Build is passing

This is needed since merging e7d482e from main.
This commit is contained in:
apio 2023-05-17 20:45:25 +02:00
parent 090c73910e
commit 6e22261116
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -727,7 +727,7 @@ Result<void> ATADevice::create(SharedPtr<ATA::Drive> drive)
{ {
auto device = TRY(adopt_shared_if_nonnull(new (std::nothrow) ATADevice())); auto device = TRY(adopt_shared_if_nonnull(new (std::nothrow) ATADevice()));
device->m_drive = drive; 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 Result<u64> ATADevice::read(u8* buf, usize offset, usize size) const