]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/PciCapLib.h
OvmfPkg: Apply uncrustify changes
[mirror_edk2.git] / OvmfPkg / Include / Library / PciCapLib.h
index 9f834ccb6eb8879ad03d314449c58679cdae4b06..4badb0a914f1b71c5220c2bd21cf9aa209221996 100644 (file)
@@ -50,7 +50,7 @@ typedef struct PCI_CAP_DEV PCI_CAP_DEV;
 **/\r
 typedef\r
 RETURN_STATUS\r
-(EFIAPI *PCI_CAP_DEV_READ_CONFIG) (\r
+(EFIAPI *PCI_CAP_DEV_READ_CONFIG)(\r
   IN  PCI_CAP_DEV *PciDevice,\r
   IN  UINT16      SourceOffset,\r
   OUT VOID        *DestinationBuffer,\r
@@ -85,7 +85,7 @@ RETURN_STATUS
 **/\r
 typedef\r
 RETURN_STATUS\r
-(EFIAPI *PCI_CAP_DEV_WRITE_CONFIG) (\r
+(EFIAPI *PCI_CAP_DEV_WRITE_CONFIG)(\r
   IN PCI_CAP_DEV *PciDevice,\r
   IN UINT16      DestinationOffset,\r
   IN VOID        *SourceBuffer,\r
@@ -97,8 +97,8 @@ RETURN_STATUS
 // config space accessors.\r
 //\r
 struct PCI_CAP_DEV {\r
-  PCI_CAP_DEV_READ_CONFIG  ReadConfig;\r
-  PCI_CAP_DEV_WRITE_CONFIG WriteConfig;\r
+  PCI_CAP_DEV_READ_CONFIG     ReadConfig;\r
+  PCI_CAP_DEV_WRITE_CONFIG    WriteConfig;\r
 };\r
 \r
 //\r
@@ -126,26 +126,26 @@ typedef enum {
 // Public data structure that PciCapGetInfo() fills in about a PCI_CAP object.\r
 //\r
 typedef struct {\r
-  PCI_CAP_DOMAIN Domain;\r
-  UINT16         CapId;\r
+  PCI_CAP_DOMAIN    Domain;\r
+  UINT16            CapId;\r
   //\r
   // The capability identified by Domain and CapId may have multiple instances\r
   // in config space. NumInstances provides the total count of occurrences of\r
   // the capability. It is always positive.\r
   //\r
-  UINT16 NumInstances;\r
+  UINT16            NumInstances;\r
   //\r
   // Instance is the serial number, in capabilities list traversal order (not\r
   // necessarily config space offset order), of the one capability instance\r
   // that PciCapGetInfo() is reporting about. Instance is always smaller than\r
   // NumInstances.\r
   //\r
-  UINT16 Instance;\r
+  UINT16            Instance;\r
   //\r
   // The offset in config space at which the capability header of the\r
   // capability instance starts.\r
   //\r
-  UINT16 Offset;\r
+  UINT16            Offset;\r
   //\r
   // The deduced maximum size of the capability instance, including the\r
   // capability header. This hint is an upper bound, calculated -- without\r
@@ -154,15 +154,14 @@ typedef struct {
   // capability, and (b) from the end of the config space identified by Domain,\r
   // whichever is lower.\r
   //\r
-  UINT16 MaxSizeHint;\r
+  UINT16    MaxSizeHint;\r
   //\r
   // The version number of the capability instance. Always zero when Domain is\r
   // PciCapNormal.\r
   //\r
-  UINT8 Version;\r
+  UINT8     Version;\r
 } PCI_CAP_INFO;\r
 \r
-\r
 /**\r
   Parse the capabilities lists (both normal and extended, as applicable) of a\r
   PCI device.\r
@@ -198,11 +197,10 @@ typedef struct {
 RETURN_STATUS\r
 EFIAPI\r
 PciCapListInit (\r
-  IN  PCI_CAP_DEV  *PciDevice,\r
-  OUT PCI_CAP_LIST **CapList\r
+  IN  PCI_CAP_DEV   *PciDevice,\r
+  OUT PCI_CAP_LIST  **CapList\r
   );\r
 \r
-\r
 /**\r
   Free the resources used by CapList.\r
 \r
@@ -212,10 +210,9 @@ PciCapListInit (
 VOID\r
 EFIAPI\r
 PciCapListUninit (\r
-  IN PCI_CAP_LIST *CapList\r
+  IN PCI_CAP_LIST  *CapList\r
   );\r
 \r
-\r
 /**\r
   Locate a capability instance in the parsed capabilities lists.\r
 \r
@@ -252,14 +249,13 @@ PciCapListUninit (
 RETURN_STATUS\r
 EFIAPI\r
 PciCapListFindCap (\r
-  IN  PCI_CAP_LIST   *CapList,\r
-  IN  PCI_CAP_DOMAIN Domain,\r
-  IN  UINT16         CapId,\r
-  IN  UINT16         Instance,\r
-  OUT PCI_CAP        **Cap    OPTIONAL\r
+  IN  PCI_CAP_LIST    *CapList,\r
+  IN  PCI_CAP_DOMAIN  Domain,\r
+  IN  UINT16          CapId,\r
+  IN  UINT16          Instance,\r
+  OUT PCI_CAP         **Cap    OPTIONAL\r
   );\r
 \r
-\r
 /**\r
   Locate the first instance of the capability given by (Domain, CapId) such\r
   that the instance's Version is greater than or equal to MinVersion.\r
@@ -296,14 +292,13 @@ PciCapListFindCap (
 RETURN_STATUS\r
 EFIAPI\r
 PciCapListFindCapVersion (\r
-  IN  PCI_CAP_LIST   *CapList,\r
-  IN  PCI_CAP_DOMAIN Domain,\r
-  IN  UINT16         CapId,\r
-  IN  UINT8          MinVersion,\r
-  OUT PCI_CAP        **Cap      OPTIONAL\r
+  IN  PCI_CAP_LIST    *CapList,\r
+  IN  PCI_CAP_DOMAIN  Domain,\r
+  IN  UINT16          CapId,\r
+  IN  UINT8           MinVersion,\r
+  OUT PCI_CAP         **Cap      OPTIONAL\r
   );\r
 \r
-\r
 /**\r
   Get information about a PCI Capability instance.\r
 \r
@@ -321,11 +316,10 @@ PciCapListFindCapVersion (
 RETURN_STATUS\r
 EFIAPI\r
 PciCapGetInfo (\r
-  IN  PCI_CAP      *Cap,\r
-  OUT PCI_CAP_INFO *Info\r
+  IN  PCI_CAP       *Cap,\r
+  OUT PCI_CAP_INFO  *Info\r
   );\r
 \r
-\r
 /**\r
   Read a slice of a capability instance.\r
 \r
@@ -365,14 +359,13 @@ PciCapGetInfo (
 RETURN_STATUS\r
 EFIAPI\r
 PciCapRead (\r
-  IN  PCI_CAP_DEV *PciDevice,\r
-  IN  PCI_CAP     *Cap,\r
-  IN  UINT16      SourceOffsetInCap,\r
-  OUT VOID        *DestinationBuffer,\r
-  IN  UINT16      Size\r
+  IN  PCI_CAP_DEV  *PciDevice,\r
+  IN  PCI_CAP      *Cap,\r
+  IN  UINT16       SourceOffsetInCap,\r
+  OUT VOID         *DestinationBuffer,\r
+  IN  UINT16       Size\r
   );\r
 \r
-\r
 /**\r
   Write a slice of a capability instance.\r
 \r
@@ -413,11 +406,11 @@ PciCapRead (
 RETURN_STATUS\r
 EFIAPI\r
 PciCapWrite (\r
-  IN PCI_CAP_DEV *PciDevice,\r
-  IN PCI_CAP     *Cap,\r
-  IN UINT16      DestinationOffsetInCap,\r
-  IN VOID        *SourceBuffer,\r
-  IN UINT16      Size\r
+  IN PCI_CAP_DEV  *PciDevice,\r
+  IN PCI_CAP      *Cap,\r
+  IN UINT16       DestinationOffsetInCap,\r
+  IN VOID         *SourceBuffer,\r
+  IN UINT16       Size\r
   );\r
 \r
 #endif // __PCI_CAP_LIB_H__\r