diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 07:38:52 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-22 07:42:26 +0100 |
| commit | 36dee4f0d8ea806b2f061ed66a89e812ab007ed2 (patch) | |
| tree | 8fe0f6895abb96eb40ee390d6411099b4decf489 /src/kernel/StorageKit/AHCI.h | |
| parent | f7023f6a08e117d483b5928fd4301062a3384abf (diff) | |
feat: test: Add `kout` test and rename DeviceInterface to IDevice in KernelKit.
introduce UserPtr and unburden vettable by removing the IVettable helper.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/StorageKit/AHCI.h')
| -rw-r--r-- | src/kernel/StorageKit/AHCI.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/kernel/StorageKit/AHCI.h b/src/kernel/StorageKit/AHCI.h index 82bd9747..d29cb0fc 100644 --- a/src/kernel/StorageKit/AHCI.h +++ b/src/kernel/StorageKit/AHCI.h @@ -13,11 +13,11 @@ namespace Kernel { /// @brief AHCIDeviceInterface class /// @details This class is used to send and receive data from the AHCI device. -/// @note The class is derived from the DeviceInterface class. +/// @note The class is derived from the IDevice class. class AHCIDeviceInterface NE_DEVICE<IMountpoint*> { public: - explicit AHCIDeviceInterface(void (*out)(DeviceInterface* self, IMountpoint* out), - void (*in)(DeviceInterface* self, IMountpoint* in)); + explicit AHCIDeviceInterface(void (*out)(IDevice* self, IMountpoint* out), + void (*in)(IDevice* self, IMountpoint* in)); virtual ~AHCIDeviceInterface() override; @@ -28,12 +28,10 @@ class AHCIDeviceInterface NE_DEVICE<IMountpoint*> { const Char* Name() const override; const UInt16& GetPortsImplemented(); - - Void SetPortsImplemented(const UInt16& pi); + Void SetPortsImplemented(const UInt16& pi); const UInt32& GetIndex(); - - Void SetIndex(const UInt32& drv); + Void SetIndex(const UInt32& drv); public: AHCIDeviceInterface& operator<<(IMountpoint* Data) override; |
