kernel/ATA: Pass extra information to DeviceRegistry
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This is needed since merging e7d482e
from main.
This commit is contained in:
parent
1e586ee982
commit
176864f623
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user