mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
Fix ICC build error.
Signed-off-by: lzeng14 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11939 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
51a0c5f28c
commit
61a02ac974
@ -456,7 +456,7 @@ SataControllerStart (
|
|||||||
// A maximum of 32 ports can be supported. A value of '0h', indicating one port, is the minimum requirement.
|
// A maximum of 32 ports can be supported. A value of '0h', indicating one port, is the minimum requirement.
|
||||||
//
|
//
|
||||||
Data32 = AhciReadReg (PciIo, R_AHCI_CAP);
|
Data32 = AhciReadReg (PciIo, R_AHCI_CAP);
|
||||||
SataPrivateData->IdeInit.ChannelCount = (UINT8) (Data32 & B_AHCI_CAP_NPS) + 1;
|
SataPrivateData->IdeInit.ChannelCount = (UINT8) (Data32 & B_AHCI_CAP_NPS + 1)
|
||||||
SataPrivateData->DeviceCount = AHCI_MAX_DEVICES;
|
SataPrivateData->DeviceCount = AHCI_MAX_DEVICES;
|
||||||
if ((Data32 & B_AHCI_CAP_SPM) == B_AHCI_CAP_SPM) {
|
if ((Data32 & B_AHCI_CAP_SPM) == B_AHCI_CAP_SPM) {
|
||||||
SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES;
|
SataPrivateData->DeviceCount = AHCI_MULTI_MAX_DEVICES;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user