summaryrefslogtreecommitdiff
path: root/src/sys/include/io/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-21 14:12:27 -0400
committerIan Moffett <ian@osmora.org>2025-09-21 14:12:27 -0400
commit561ad1494cad32243fa256af8acb755466ef12a7 (patch)
tree3eaac3a5d0fcaf0080760cada788cbcb9955dff9 /src/sys/include/io/ic
parent384ec033b8fbf26db2b390218541e9bd2a2e4cf6 (diff)
kern: ahci: Scan for implemented ports with PI reg
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/io/ic')
-rw-r--r--src/sys/include/io/ic/ahcivar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sys/include/io/ic/ahcivar.h b/src/sys/include/io/ic/ahcivar.h
index b045c9d..250630c 100644
--- a/src/sys/include/io/ic/ahcivar.h
+++ b/src/sys/include/io/ic/ahcivar.h
@@ -34,6 +34,12 @@
struct ahci_hba {
volatile struct hba_memspace *io;
+ uint32_t pi;
+ uint32_t nport;
+};
+
+struct ahci_port {
+ volatile struct hba_port *io;
};
#define AHCI_TIMEOUT 500