mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Kernel: Add a method to gather the devices count of a Storage controller
Also, change device() method to be const.
This commit is contained in:
parent
e3b3805abf
commit
6a691306b5
5 changed files with 19 additions and 7 deletions
|
@ -114,11 +114,11 @@ NonnullOwnPtr<IDEChannel> IDEChannel::create(const IDEController& controller, IO
|
|||
return make<IDEChannel>(controller, io_group, type, force_pio);
|
||||
}
|
||||
|
||||
RefPtr<StorageDevice> IDEChannel::master_device()
|
||||
RefPtr<StorageDevice> IDEChannel::master_device() const
|
||||
{
|
||||
return m_master;
|
||||
}
|
||||
RefPtr<StorageDevice> IDEChannel::slave_device()
|
||||
RefPtr<StorageDevice> IDEChannel::slave_device() const
|
||||
{
|
||||
return m_slave;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue