summaryrefslogtreecommitdiff
path: root/sys/include/dev/ic/ahcivar.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-13 23:39:55 -0400
committerIan Moffett <ian@osmora.org>2025-05-14 00:11:59 -0400
commite809a715316a820a330999444d305da53ec541bc (patch)
tree9afdfc7eaddb61cbf8e38671816f41dbb0a72c77 /sys/include/dev/ic/ahcivar.h
parentaa0327ef3f8d919f31e4d3a3c5e3b71a18f0faa6 (diff)
kernel: ahci: Add /ctl/sdx/bsize control file
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev/ic/ahcivar.h')
-rw-r--r--sys/include/dev/ic/ahcivar.h3
1 files changed, 3 insertions, 0 deletions
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 <sys/types.h>
#include <sys/device.h>
#include <dev/ic/ahciregs.h>
+#include <fs/ctlfs.h>
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