From 43a29889202e63369e52e13939c59dae28bf199a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 22 Sep 2025 13:14:11 -0400 Subject: 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 --- src/sys/include/io/ic/ahcivar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sys/include/io/ic') 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; }; -- cgit v1.2.3