summaryrefslogtreecommitdiff
path: root/src/sys/include/io
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-22 13:14:11 -0400
committerIan Moffett <ian@osmora.org>2025-09-22 13:21:27 -0400
commit43a29889202e63369e52e13939c59dae28bf199a (patch)
tree4a71743dc9604dbdcc40e141da47be302e8297ae /src/sys/include/io
parent1e3f7e5ac3beb6f5952a561563e62cb34207eae1 (diff)
kern: ahci: Add initial port bring-up logic
This commit introduces this initial bring-up logic for ports on the HBA. We have allocated the command headers and each FIS RX area for each respective command slot. More work to be done but this lays the groundwork Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/io')
-rw-r--r--src/sys/include/io/ic/ahcivar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/include/io/ic/ahcivar.h b/src/sys/include/io/ic/ahcivar.h
index c3cb70d..b13b6a3 100644
--- a/src/sys/include/io/ic/ahcivar.h
+++ b/src/sys/include/io/ic/ahcivar.h
@@ -56,11 +56,15 @@ struct ahci_hba {
*
* @parent: Parent HBA this port belongs to
* @io: Port register space
+ * @cmdlist: Command list base
+ * @fis_rx: FIS recieve area
* @portno: Port number
*/
struct ahci_port {
volatile struct ahci_hba *parent;
volatile struct hba_port *io;
+ dma_addr_t cmdlist;
+ dma_addr_t fis_rx;
uint32_t portno;
TAILQ_ENTRY(ahci_port) link;
};