diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-22 13:14:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-22 13:21:27 -0400 |
commit | 43a29889202e63369e52e13939c59dae28bf199a (patch) | |
tree | 4a71743dc9604dbdcc40e141da47be302e8297ae /src/sys/include/io | |
parent | 1e3f7e5ac3beb6f5952a561563e62cb34207eae1 (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.h | 4 |
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; }; |