]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/PciCfg2.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Ppi / PciCfg2.h
index 95702c60f0d5037d032bd0b9ab4c38d7e83c43b3..451796f7f4d122ebf9337dfd63dcf1f220d317a2 100644 (file)
@@ -1,17 +1,11 @@
 /** @file\r
   This file declares PciCfg2 PPI.\r
 \r
-  This ppi Provides platform or chipset-specific access to \r
+  This ppi Provides platform or chipset-specific access to\r
   the PCI configuration space for a specific PCI segment.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
   This PPI is introduced in PI Version 1.0.\r
 #define EFI_PEI_PCI_CFG2_PPI_GUID \\r
   { 0x57a449a, 0x1fdc, 0x4c06, { 0xbf, 0xc9, 0xf5, 0x3f, 0x6a, 0x99, 0xbb, 0x92 } }\r
 \r
-typedef struct _EFI_PEI_PCI_CFG2_PPI   EFI_PEI_PCI_CFG2_PPI;\r
+typedef struct _EFI_PEI_PCI_CFG2_PPI EFI_PEI_PCI_CFG2_PPI;\r
 \r
-#define EFI_PEI_PCI_CFG_ADDRESS(bus,dev,func,reg) \\r
+#define EFI_PEI_PCI_CFG_ADDRESS(bus, dev, func, reg) \\r
   (UINT64) ( \\r
   (((UINTN) bus) << 24) | \\r
   (((UINTN) dev) << 16) | \\r
   (((UINTN) func) << 8) | \\r
-  (((UINTN) (reg)) < 256 ? ((UINTN) (reg)) : (UINT64) (LShiftU64 ((UINT64) (reg), 32))));\r
+  (((UINTN) (reg)) < 256 ? ((UINTN) (reg)) : (UINT64) (LShiftU64 ((UINT64) (reg), 32))))\r
 \r
 ///\r
 /// EFI_PEI_PCI_CFG_PPI_WIDTH\r
@@ -42,7 +36,7 @@ typedef enum {
   ///\r
   ///  8-bit access\r
   ///\r
-  EfiPeiPciCfgWidthUint8  = 0,\r
+  EfiPeiPciCfgWidthUint8 = 0,\r
   ///\r
   /// 16-bit access\r
   ///\r
@@ -66,26 +60,26 @@ typedef struct {
   /// 8-bit register offset within the PCI configuration space for a given device's function\r
   /// space.\r
   ///\r
-  UINT8   Register;\r
+  UINT8     Register;\r
   ///\r
   /// Only the 3 least-significant bits are used to encode one of 8 possible functions within a\r
   /// given device.\r
   ///\r
-  UINT8   Function;\r
+  UINT8     Function;\r
   ///\r
   /// Only the 5 least-significant bits are used to encode one of 32 possible devices.\r
   ///\r
-  UINT8   Device;\r
+  UINT8     Device;\r
   ///\r
   /// 8-bit value to encode between 0 and 255 buses.\r
   ///\r
-  UINT8   Bus;\r
+  UINT8     Bus;\r
   ///\r
   /// Register number in PCI configuration space. If this field is zero, then Register is used\r
   /// for the register number. If this field is non-zero, then Register is ignored and this field\r
   /// is used for the register number.\r
   ///\r
-  UINT32  ExtendedRegister;\r
+  UINT32    ExtendedRegister;\r
 } EFI_PEI_PCI_CFG_PPI_PCI_ADDRESS;\r
 \r
 /**\r
@@ -120,11 +114,10 @@ EFI_STATUS
   IN        EFI_PEI_PCI_CFG_PPI_WIDTH Width,\r
   IN        UINT64                    Address,\r
   IN OUT    VOID                      *Buffer\r
-);\r
-\r
+  );\r
 \r
 /**\r
-  Performs a read-modify-write operation on the contents \r
+  Performs a read-modify-write operation on the contents\r
   from a given location in the PCI configuration space.\r
 \r
   @param  PeiServices     An indirect pointer to the PEI Services Table\r
@@ -162,23 +155,22 @@ EFI_STATUS
   IN        UINT64                    Address,\r
   IN        VOID                      *SetBits,\r
   IN        VOID                      *ClearBits\r
-);\r
+  );\r
 \r
 ///\r
 /// The EFI_PEI_PCI_CFG_PPI interfaces are used to abstract accesses to PCI\r
 /// controllers behind a PCI root bridge controller.\r
 ///\r
 struct _EFI_PEI_PCI_CFG2_PPI {\r
-  EFI_PEI_PCI_CFG2_PPI_IO  Read;\r
-  EFI_PEI_PCI_CFG2_PPI_IO  Write;\r
-  EFI_PEI_PCI_CFG2_PPI_RW  Modify;\r
+  EFI_PEI_PCI_CFG2_PPI_IO    Read;\r
+  EFI_PEI_PCI_CFG2_PPI_IO    Write;\r
+  EFI_PEI_PCI_CFG2_PPI_RW    Modify;\r
   ///\r
   /// The PCI bus segment which the specified functions will access.\r
   ///\r
-  UINT16                  Segment;\r
+  UINT16                     Segment;\r
 };\r
 \r
-\r
-extern EFI_GUID gEfiPciCfg2PpiGuid;\r
+extern EFI_GUID  gEfiPciCfg2PpiGuid;\r
 \r
 #endif\r