X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=DuetPkg%2FPciBusNoEnumerationDxe%2FPciIo.c;fp=DuetPkg%2FPciBusNoEnumerationDxe%2FPciIo.c;h=e96cd891ba7d889fec37d4ffe1b938085250dbb0;hp=759c61a83c3df67fc630818e8f00f45d847330e9;hb=b29a823d91ac4d8abd87e58172e32d7b0b43be8d;hpb=10b48963c887398c0fd3313de0996808d51b1afc diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciIo.c b/DuetPkg/PciBusNoEnumerationDxe/PciIo.c index 759c61a83c..e96cd891ba 100644 --- a/DuetPkg/PciBusNoEnumerationDxe/PciIo.c +++ b/DuetPkg/PciBusNoEnumerationDxe/PciIo.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2005 - 2007, Intel Corporation +Copyright (c) 2005 - 2009, 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 @@ -571,7 +571,7 @@ Returns: PCI_IO_DEVICE *PciIoDevice; if (Buffer == NULL){ - return EFI_INVALID_PARAMETER; + return EFI_INVALID_PARAMETER; } PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This); @@ -624,7 +624,7 @@ Returns: PCI_IO_DEVICE *PciIoDevice; if (Buffer == NULL){ - return EFI_INVALID_PARAMETER; + return EFI_INVALID_PARAMETER; } PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This); @@ -677,7 +677,7 @@ Returns: PCI_IO_DEVICE *PciIoDevice; if (Buffer == NULL){ - return EFI_INVALID_PARAMETER; + return EFI_INVALID_PARAMETER; } PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This); @@ -730,7 +730,7 @@ Returns: PCI_IO_DEVICE *PciIoDevice; if (Buffer == NULL){ - return EFI_INVALID_PARAMETER; + return EFI_INVALID_PARAMETER; } PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This); @@ -1074,7 +1074,7 @@ Returns: PCI_IO_DEVICE *PciIoDevice; if( HostAddress == NULL ){ - return EFI_INVALID_PARAMETER; + return EFI_INVALID_PARAMETER; } PciIoDevice = PCI_IO_DEVICE_FROM_PCI_IO_THIS (This); @@ -1282,21 +1282,21 @@ Returns: return EFI_SUCCESS; case EfiPciIoAttributeOperationEnable: - if(Attributes & ~(PciIoDevice->Supports)) { - return EFI_UNSUPPORTED; - } - NewAttributes = PciIoDevice->Attributes | Attributes; + if(Attributes & ~(PciIoDevice->Supports)) { + return EFI_UNSUPPORTED; + } + NewAttributes = PciIoDevice->Attributes | Attributes; break; case EfiPciIoAttributeOperationDisable: - if(Attributes & ~(PciIoDevice->Supports)) { - return EFI_UNSUPPORTED; - } + if(Attributes & ~(PciIoDevice->Supports)) { + return EFI_UNSUPPORTED; + } NewAttributes = PciIoDevice->Attributes & (~Attributes); break; case EfiPciIoAttributeOperationSet: - if(Attributes & ~(PciIoDevice->Supports)) { - return EFI_UNSUPPORTED; - } + if(Attributes & ~(PciIoDevice->Supports)) { + return EFI_UNSUPPORTED; + } NewAttributes = Attributes; break; default: