From e809a715316a820a330999444d305da53ec541bc Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 13 May 2025 23:39:55 -0400 Subject: kernel: ahci: Add /ctl/sdx/bsize control file Signed-off-by: Ian Moffett --- sys/include/dev/ic/ahcivar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h index 43c421a..fa24812 100644 --- a/sys/include/dev/ic/ahcivar.h +++ b/sys/include/dev/ic/ahcivar.h @@ -34,8 +34,10 @@ #include #include #include +#include struct ahci_cmd_hdr; +extern const struct ctlops g_sata_bsize_ops; struct ata_identity { uint16_t rsvd0 : 1; @@ -216,6 +218,7 @@ struct ahci_fis_h2d { #define AHCI_FIS_SIZE 256 #define AHCI_CMDTAB_SIZE 256 #define AHCI_CMDENTRY_SIZE 32 +#define AHCI_SECTOR_SIZE 512 /* AHCI FIS types */ #define FIS_TYPE_H2D 0x27 -- cgit v1.2.3