X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OptionRomPkg%2FAtapiPassThruDxe%2FAtapiPassThru.c;h=d2a9d7b11e51245cdc2ee4e914a275074e2d1013;hp=8e18910379b43e0d4075c64362ae1c12f6d95741;hb=2b649f74775d0efd1e75c91f77c3045ae6249cb4;hpb=ba31c2e08e5c3925b4c21b454ee7ee2c7366657c diff --git a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c index 8e18910379..d2a9d7b11e 100644 --- a/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c +++ b/OptionRomPkg/AtapiPassThruDxe/AtapiPassThru.c @@ -1,6 +1,6 @@ /** @file - Copyright (c) 2006, Intel Corporation - All rights reserved. This program and the accompanying materials + Copyright (c) 2006, Intel Corporation. All rights reserved.
+ This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -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;