From 2df7ef4bd8a237f3351048811952c4d7528bcf15 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 10 May 2025 01:29:37 -0400 Subject: kernel: ahci: Store major in HBA descriptor Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 1 + sys/include/dev/ic/ahcivar.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index fc87b71..d407540 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -665,6 +665,7 @@ ahci_init(void) struct ahci_hba hba; void *abar_vap = NULL; + hba.major = 0; lookup.pci_class = 0x01; lookup.pci_subclass = 0x06; diff --git a/sys/include/dev/ic/ahcivar.h b/sys/include/dev/ic/ahcivar.h index 4c00749..61fdbf4 100644 --- a/sys/include/dev/ic/ahcivar.h +++ b/sys/include/dev/ic/ahcivar.h @@ -78,6 +78,7 @@ struct ahci_hba { uint8_t ems : 1; uint8_t sal : 1; uint8_t sss : 1; + devmajor_t major; }; /* -- cgit v1.2.3