OvmfPkg: Apply uncrustify changes

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the OvmfPkg package

Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
Michael Kubacki
2021-12-05 14:54:09 -08:00
committed by mergify[bot]
parent d1050b9dff
commit ac0a286f4d
445 changed files with 30894 additions and 26369 deletions

View File

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