From 08d925bce8a18361655a56bf5b38d6f9e9134b8a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 26 May 2025 01:49:45 -0400 Subject: kernel: ahci: Detect max SATA sector count Signed-off-by: Ian Moffett --- sys/include/dev/ic/ahcivar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/include/dev/ic/ahcivar.h') diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h index a23a654..67f2efe 100644 --- a/sys/include/dev/ic/ahcivar.h +++ b/sys/include/dev/ic/ahcivar.h @@ -96,6 +96,7 @@ struct ahci_hba { * @io: Memory mapped port registers * @hba: HBA descriptor * @cmdlist: Command list [p] + * @nlba: Max number of addressable blocks * @fra: FIS receive area [p] * @dev: Device minor number. */ @@ -104,6 +105,7 @@ struct hba_device { struct ahci_hba *hba; struct ahci_cmd_hdr *cmdlist; struct dcdr *dcdr; + uint32_t nlba; void *fra; dev_t dev; }; -- cgit v1.2.3