summaryrefslogtreecommitdiff
path: root/src/sys/include/io/ic/ahciregs.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-21 16:53:03 -0400
committerIan Moffett <ian@osmora.org>2025-09-21 16:53:24 -0400
commite6e0bb0d435b3410d520baea60652af05cae8232 (patch)
treebd36cc276a02bf951e6663fb3c8b403ef7e1b5df /src/sys/include/io/ic/ahciregs.h
parentd88c40fc062f28c63ae7bc3836407df3470287a3 (diff)
kern: ahci: Only support 64-bit HBAs for now
Abort if the host controller does not support 64-bit addressing Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/io/ic/ahciregs.h')
-rw-r--r--src/sys/include/io/ic/ahciregs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/include/io/ic/ahciregs.h b/src/sys/include/io/ic/ahciregs.h
index cb212ea..a62df04 100644
--- a/src/sys/include/io/ic/ahciregs.h
+++ b/src/sys/include/io/ic/ahciregs.h
@@ -134,6 +134,7 @@ struct hba_memspace {
#define AHCI_CAP_EMS(CAP) ((CAP >> 6) & 1) /* Enclosure management support */
#define AHCI_CAP_SAL(CAP) ((CAP >> 25) & 1) /* Supports activity LED */
#define AHCI_CAP_SSS(CAP) ((CAP >> 27) & 1) /* Supports staggered spin up */
+#define AHCI_CAP_S64A(CAP) ((CAP >> 31) & 1) /* Supports 64-bit addressing */
/*
* Device detection (DET) and Interface power