From def5182fdeb9ea60df0d3de6365dfa368943c3f0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 22 May 2025 21:47:22 -0400 Subject: kernel: ahci: Create a DCDR per HBA device Optimize reading of logical blocks within SATA drives by giving each device descriptor a drive cache descriptor ring. Signed-off-by: Ian Moffett --- sys/include/dev/ic/ahcivar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/include/dev') diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h index fa24812..a23a654 100644 --- a/sys/include/dev/ic/ahcivar.h +++ b/sys/include/dev/ic/ahcivar.h @@ -33,9 +33,12 @@ #include #include #include +#include #include #include +#define AHCI_DCDR_CAP 16 + struct ahci_cmd_hdr; extern const struct ctlops g_sata_bsize_ops; @@ -100,6 +103,7 @@ struct hba_device { struct hba_port *io; struct ahci_hba *hba; struct ahci_cmd_hdr *cmdlist; + struct dcdr *dcdr; void *fra; dev_t dev; }; -- cgit v1.2.3