diff options
author | Ian Moffett <ian@osmora.org> | 2025-05-22 21:47:22 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-05-22 21:47:22 -0400 |
commit | def5182fdeb9ea60df0d3de6365dfa368943c3f0 (patch) | |
tree | f9f38a2c828ec0f9edeb2f90c164274bd686768b /sys/include/dev/ic | |
parent | c8503e1a71ab992e46940ee5482db01235100d4b (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/ic')
-rw-r--r-- | sys/include/dev/ic/ahcivar.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <sys/param.h> #include <sys/types.h> #include <sys/device.h> +#include <dev/dcdr/cache.h> #include <dev/ic/ahciregs.h> #include <fs/ctlfs.h> +#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; }; |