Kernel/AHCI: Get BOH and NVMP from extended capabilities

It was accidentally getting it from the regular capabilities.
This commit is contained in:
Luke 2021-05-15 18:20:49 +01:00 committed by Andreas Kling
parent 88a997871e
commit 174fdddc2b

View file

@ -116,8 +116,8 @@ AHCI::HBADefinedCapabilities AHCIController::capabilities() const
(capabilities & (u32)(AHCI::HBACapabilities::SSNTF)) != 0,
(capabilities & (u32)(AHCI::HBACapabilities::SNCQ)) != 0,
(capabilities & (u32)(AHCI::HBACapabilities::S64A)) != 0,
(capabilities & (u32)(AHCI::HBACapabilitiesExtended::BOH)) != 0,
(capabilities & (u32)(AHCI::HBACapabilitiesExtended::NVMP)) != 0,
(extended_capabilities & (u32)(AHCI::HBACapabilitiesExtended::BOH)) != 0,
(extended_capabilities & (u32)(AHCI::HBACapabilitiesExtended::NVMP)) != 0,
(extended_capabilities & (u32)(AHCI::HBACapabilitiesExtended::APST)) != 0,
(extended_capabilities & (u32)(AHCI::HBACapabilitiesExtended::SDS)) != 0,
(extended_capabilities & (u32)(AHCI::HBACapabilitiesExtended::SADM)) != 0,