From 21b3da78f806d6765f9dffa6a84c21346f171cee Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 21 Oct 2024 18:52:06 +0200 Subject: IMP: Implement AHCI support, can detect and read AHCI disks. TODO: Add Write support to the AHCI driver. Signed-off-by: Amlal El Mahrouss --- dev/modules/AHCI/AHCI.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev/modules') diff --git a/dev/modules/AHCI/AHCI.hxx b/dev/modules/AHCI/AHCI.hxx index 084322bb..a48a8c38 100644 --- a/dev/modules/AHCI/AHCI.hxx +++ b/dev/modules/AHCI/AHCI.hxx @@ -261,10 +261,10 @@ typedef struct HbaMem final Kernel::UInt32 Cap2; // 0x24, Host capabilities extended Kernel::UInt32 Bohc; // 0x28, BIOS/OS handoff control and status - Kernel::UInt16 Resv0; - Kernel::UInt32 Resv2; + Kernel::UInt8 Resv0[0xA0 - 0x2C]; + Kernel::UInt8 Vendor[0x100 - 0xA0]; - HbaPort Ports[1]; // 1 ~ 32, 32 is the max ahci devices per controller. + HbaPort Ports[32]; // 1 ~ 32, 32 is the max ahci devices per controller. } HbaMem; typedef struct HbaCmdHeader final -- cgit v1.2.3