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:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -17,9 +17,8 @@
|
||||
|
||||
#include "QemuFwCfgLibInternal.h"
|
||||
|
||||
STATIC BOOLEAN mQemuFwCfgSupported = FALSE;
|
||||
STATIC BOOLEAN mQemuFwCfgDmaSupported;
|
||||
|
||||
STATIC BOOLEAN mQemuFwCfgSupported = FALSE;
|
||||
STATIC BOOLEAN mQemuFwCfgDmaSupported;
|
||||
|
||||
/**
|
||||
Returns a boolean indicating if the firmware configuration interface
|
||||
@@ -40,21 +39,20 @@ QemuFwCfgIsAvailable (
|
||||
return InternalQemuFwCfgIsAvailable ();
|
||||
}
|
||||
|
||||
|
||||
RETURN_STATUS
|
||||
EFIAPI
|
||||
QemuFwCfgInitialize (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
UINT32 Signature;
|
||||
UINT32 Revision;
|
||||
UINT32 Signature;
|
||||
UINT32 Revision;
|
||||
|
||||
//
|
||||
// Enable the access routines while probing to see if it is supported.
|
||||
// For probing we always use the IO Port (IoReadFifo8()) access method.
|
||||
//
|
||||
mQemuFwCfgSupported = TRUE;
|
||||
mQemuFwCfgSupported = TRUE;
|
||||
mQemuFwCfgDmaSupported = FALSE;
|
||||
|
||||
QemuFwCfgSelectItem (QemuFwCfgItemSignature);
|
||||
@@ -65,7 +63,8 @@ QemuFwCfgInitialize (
|
||||
DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision));
|
||||
if ((Signature != SIGNATURE_32 ('Q', 'E', 'M', 'U')) ||
|
||||
(Revision < 1)
|
||||
) {
|
||||
)
|
||||
{
|
||||
DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n"));
|
||||
mQemuFwCfgSupported = FALSE;
|
||||
return RETURN_SUCCESS;
|
||||
@@ -87,10 +86,10 @@ QemuFwCfgInitialize (
|
||||
DEBUG ((DEBUG_INFO, "QemuFwCfg interface (DMA) is supported.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
return RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Returns a boolean indicating if the firmware configuration interface is
|
||||
available for library-internal purposes.
|
||||
@@ -140,17 +139,19 @@ InternalQemuFwCfgDmaIsAvailable (
|
||||
**/
|
||||
VOID
|
||||
InternalQemuFwCfgDmaBytes (
|
||||
IN UINT32 Size,
|
||||
IN OUT VOID *Buffer OPTIONAL,
|
||||
IN UINT32 Control
|
||||
IN UINT32 Size,
|
||||
IN OUT VOID *Buffer OPTIONAL,
|
||||
IN UINT32 Control
|
||||
)
|
||||
{
|
||||
volatile FW_CFG_DMA_ACCESS Access;
|
||||
UINT32 AccessHigh, AccessLow;
|
||||
UINT32 Status;
|
||||
volatile FW_CFG_DMA_ACCESS Access;
|
||||
UINT32 AccessHigh, AccessLow;
|
||||
UINT32 Status;
|
||||
|
||||
ASSERT (Control == FW_CFG_DMA_CTL_WRITE || Control == FW_CFG_DMA_CTL_READ ||
|
||||
Control == FW_CFG_DMA_CTL_SKIP);
|
||||
ASSERT (
|
||||
Control == FW_CFG_DMA_CTL_WRITE || Control == FW_CFG_DMA_CTL_READ ||
|
||||
Control == FW_CFG_DMA_CTL_SKIP
|
||||
);
|
||||
|
||||
if (Size == 0) {
|
||||
return;
|
||||
@@ -177,7 +178,7 @@ InternalQemuFwCfgDmaBytes (
|
||||
//
|
||||
AccessHigh = (UINT32)RShiftU64 ((UINTN)&Access, 32);
|
||||
AccessLow = (UINT32)(UINTN)&Access;
|
||||
IoWrite32 (FW_CFG_IO_DMA_ADDRESS, SwapBytes32 (AccessHigh));
|
||||
IoWrite32 (FW_CFG_IO_DMA_ADDRESS, SwapBytes32 (AccessHigh));
|
||||
IoWrite32 (FW_CFG_IO_DMA_ADDRESS + 4, SwapBytes32 (AccessLow));
|
||||
|
||||
//
|
||||
@@ -198,4 +199,3 @@ InternalQemuFwCfgDmaBytes (
|
||||
//
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user