]> 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 86332223cbfdd94681ed862bff7024e6d4668bee..451796f7f4d122ebf9337dfd63dcf1f220d317a2 100644 (file)
@@ -20,9 +20,9 @@
 #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
@@ -36,7 +36,7 @@ typedef enum {
   ///\r
   ///  8-bit access\r
   ///\r
-  EfiPeiPciCfgWidthUint8  = 0,\r
+  EfiPeiPciCfgWidthUint8 = 0,\r
   ///\r
   /// 16-bit access\r
   ///\r
@@ -60,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
@@ -114,8 +114,7 @@ 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
@@ -156,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