summaryrefslogtreecommitdiff
path: root/Kernel/Storage/AHCIController.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-08-27 17:13:03 +0300
committerAndreas Kling <kling@serenityos.org>2021-10-09 01:39:55 +0200
commit741c871bc1c6fd37cd2030ecec8bb3e90de31ede (patch)
treeddb3c47208dc8a1215be2ee74e1057c2f672c945 /Kernel/Storage/AHCIController.h
parent9f501d7e71aabd60fd7e0157630595df89490041 (diff)
downloadserenity-741c871bc1c6fd37cd2030ecec8bb3e90de31ede.zip
Kernel/Storage: Unify all ATA devices
There's basically no real difference in software between a SATA harddisk and IDE harddisk. The difference in the implementation is for the host bus adapter protocol and registers layout. Therefore, there's no point in putting a distinction in software to these devices. This change also greatly simplifies and removes stale APIs and removes unnecessary parameters in constructor calls, which tighten things further everywhere.
Diffstat (limited to 'Kernel/Storage/AHCIController.h')
-rw-r--r--Kernel/Storage/AHCIController.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Storage/AHCIController.h b/Kernel/Storage/AHCIController.h
index 3d8b3cdf46..5a83e58449 100644
--- a/Kernel/Storage/AHCIController.h
+++ b/Kernel/Storage/AHCIController.h
@@ -11,7 +11,7 @@
#include <AK/Types.h>
#include <Kernel/Sections.h>
#include <Kernel/Storage/AHCI.h>
-#include <Kernel/Storage/StorageController.h>
+#include <Kernel/Storage/ATAController.h>
#include <Kernel/Storage/StorageDevice.h>
namespace Kernel {
@@ -19,7 +19,7 @@ namespace Kernel {
class AsyncBlockDeviceRequest;
class AHCIPortHandler;
class AHCIPort;
-class AHCIController final : public StorageController
+class AHCIController final : public ATAController
, public PCI::Device {
friend class AHCIPortHandler;
friend class AHCIPort;
@@ -32,7 +32,7 @@ public:
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 start_request(const ATADevice&, AsyncBlockDeviceRequest&) override;
virtual void complete_current_request(AsyncDeviceRequest::RequestResult) override;
const AHCI::HBADefinedCapabilities& hba_capabilities() const { return m_capabilities; };