From 6249f2078e0c024dc2cd52436ba11baf6f70bc2a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 3 Mar 2025 05:46:44 +0100 Subject: ADD: AHCI: New AHCI Driver API, and refactor AHCIDeviceInterface class from SK. NEXT: System Call Table for Kernel to User interaction. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/StorageKit/AHCI.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dev/Kernel/StorageKit') diff --git a/dev/Kernel/StorageKit/AHCI.h b/dev/Kernel/StorageKit/AHCI.h index c68ba5d2..ce0f91c3 100644 --- a/dev/Kernel/StorageKit/AHCI.h +++ b/dev/Kernel/StorageKit/AHCI.h @@ -31,6 +31,7 @@ namespace NeOS { return this->fPortsImplemented; } + Void SetPi(const UInt16& pi) { MUST_PASS(pi > 0); @@ -41,6 +42,7 @@ namespace NeOS { return this->fDriveIndex; } + Void SetIndex(const UInt32& drv) { this->fDriveIndex = drv; @@ -52,6 +54,6 @@ namespace NeOS UInt32 fDriveIndex{0U}; }; - Bool sk_init_ahci_device(BOOL atapi); + UInt16 sk_init_ahci_device(BOOL atapi); AHCIDeviceInterface sk_acquire_ahci_device(Int32 drv_index); } // namespace NeOS -- cgit v1.2.3