mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +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
|
@ -45,9 +45,10 @@ public:
|
|||
virtual ~IDEController() override;
|
||||
|
||||
virtual Type type() const override { return Type::IDE; }
|
||||
virtual RefPtr<StorageDevice> device(u32 index) override;
|
||||
virtual RefPtr<StorageDevice> device(u32 index) const override;
|
||||
virtual bool reset() override;
|
||||
virtual bool shutdown() override;
|
||||
virtual size_t devices_count() const override;
|
||||
virtual void start_request(const StorageDevice&, AsyncBlockDeviceRequest&) override;
|
||||
virtual void complete_current_request(AsyncDeviceRequest::RequestResult) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue