aboutsummaryrefslogtreecommitdiff
path: root/sys/include/dev/ic/ahciregs.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-07 17:51:56 -0400
committerIan Moffett <ian@osmora.org>2025-05-07 17:55:22 -0400
commit3995e22535551eda05c64872a5c6e04c7581adb7 (patch)
treeded627ef95d528c2fddbf1d8bffe0251a05a8b2e /sys/include/dev/ic/ahciregs.h
parent256407ae283fa132873de685731070b44794c527 (diff)
kernel: ahci: Implement initial HBA port logic
- Implement logic to scan the HBA for ports - Implement logic to stop HBA ports - Add ahci_init_port() stub Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/ic/ahciregs.h')
-rw-r--r--sys/include/dev/ic/ahciregs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/dev/ic/ahciregs.h b/sys/include/dev/ic/ahciregs.h
index 4a4dc65..973c761 100644
--- a/sys/include/dev/ic/ahciregs.h
+++ b/sys/include/dev/ic/ahciregs.h
@@ -122,6 +122,8 @@ struct hba_memspace {
*/
#define AHCI_CAP_NP(CAP) (CAP & 0x1F) /* Number of ports */
#define AHCI_CAP_NCS(CAP) ((CAP >> 8) & 0x1F) /* Number of command slots */
+#define AHCI_CAP_EMS(CAP) ((CAP >> 6) & 1) /* Enclosure management support */
+#define AHCI_CAP_SAL(CAP) ((CAP >> 25) & 1) /* Supports activity LED */
/*
* Device detection (DET) and Interface power