From e6ea8b94bf9fbf4e0715d2d723fa978975c5bc5b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 8 May 2025 02:03:07 -0400 Subject: kernel: ahci: Initialize each HBA port Signed-off-by: Ian Moffett --- sys/include/dev/ic/ahcivar.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/include') 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 #include +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; }; -- cgit v1.2.3