diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-22 13:11:08 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-22 13:11:08 -0400 |
commit | 38043245f0b186421c355cce327d2567dd19f8e9 (patch) | |
tree | 2bf15a30878e791a3fed4e30ef00077428ebb6da /src/sys/io/ic | |
parent | 3b0bc702963dab4248fc67c379e658aca4604eca (diff) |
kern: ahci: Keep track of number of command slots
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/io/ic')
-rw-r--r-- | src/sys/io/ic/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/io/ic/ahci.c b/src/sys/io/ic/ahci.c index 5cc675f..9c56993 100644 --- a/src/sys/io/ic/ahci.c +++ b/src/sys/io/ic/ahci.c @@ -285,6 +285,7 @@ ahci_hba_init(struct ahci_hba *hba) cap = mmio_read32(&io->cap); hba->pi = mmio_read32(&io->pi); hba->nport = AHCI_CAP_NP(cap) + 1; + hba->nslots = AHCI_CAP_NCS(cap) + 1; /* Only support 64-bit addressing as of now */ if (AHCI_CAP_S64A(cap) == 0) { |