summaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-08 02:03:07 -0400
committerIan Moffett <ian@osmora.org>2025-05-08 02:03:07 -0400
commite6ea8b94bf9fbf4e0715d2d723fa978975c5bc5b (patch)
treebf93338380079375caa8ad304e74a62208527d41 /sys/include/dev
parent35cdb5152c51ac2bb240421e79cff1496ff94d94 (diff)
kernel: ahci: Initialize each HBA port
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r--sys/include/dev/ic/ahcivar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h
index 1d8fbe9..98fdf81 100644
--- a/sys/include/dev/ic/ahcivar.h
+++ b/sys/include/dev/ic/ahcivar.h
@@ -34,6 +34,8 @@
#include <sys/types.h>
#include <dev/ic/ahciregs.h>
+struct ahci_cmd_hdr;
+
/*
* AHCI Host Bus Adapter
*
@@ -56,13 +58,20 @@ struct ahci_hba {
/*
* A device attached to a physical HBA port.
*
+ * [d]: Dynalloc'd memory
+ * [p]: Paged memory (allocated pageframe)
+ *
* @io: Memory mapped port registers
* @hba: HBA descriptor
+ * @cmdlist: Command list [p]
+ * @fra: FIS receive area [p]
* @dev: Device minor number.
*/
struct hba_device {
struct hba_port *io;
struct ahci_hba *hba;
+ struct ahci_cmd_hdr *cmdlist;
+ void *fra;
dev_t dev;
};