X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OptionRomPkg%2FAtapiPassThruDxe%2FAtapiPassThru.c;fp=OptionRomPkg%2FAtapiPassThruDxe%2FAtapiPassThru.c;h=43b18113d255ed236c0a931eaa2ade274cd03789;hp=8e18910379b43e0d4075c64362ae1c12f6d95741;hb=5781db0852b91fd68d9d691dff30f525d75acb12;hpb=5f52bc92fe918ff7648a84ea33746cef32fa9e1a diff --git a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c index 8e18910379..43b18113d2 100644 --- a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c +++ b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c @@ -822,7 +822,7 @@ Returns: // // disable Interrupt // - DeviceControlValue |= bit (1); + DeviceControlValue |= BIT1; WritePortB ( AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Alt.DeviceControl, @@ -922,7 +922,7 @@ Returns: // // bit7 and bit5 are both set to 1 for backward compatibility // - DeviceSelect = (UINT8) (((bit (7) | bit (5)) | (Target << 4))); + DeviceSelect = (UINT8) (((BIT7 | BIT5) | (Target << 4))); WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Head, DeviceSelect); Command = ATAPI_SOFT_RESET_CMD; @@ -1336,7 +1336,7 @@ Returns: // // disable Interrupt // - DeviceControlValue |= bit (1); + DeviceControlValue |= BIT1; WritePortB ( AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Alt.DeviceControl, @@ -1438,7 +1438,7 @@ Returns: // // bit7 and bit5 are both set to 1 for backward compatibility // - DeviceSelect = (UINT8) (((bit (7) | bit (5)) | (TargetId << 4))); + DeviceSelect = (UINT8) ((BIT7 | BIT5) | (TargetId << 4)); WritePortB (AtapiScsiPrivate->PciIo, AtapiScsiPrivate->IoPort->Head, DeviceSelect); Command = ATAPI_SOFT_RESET_CMD;