diff options
author | Michael Kubacki <michael.kubacki@microsoft.com> | 2021-12-05 14:54:09 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | ac0a286f4d747a4c6c603a7b225917293cbe1e9f (patch) | |
tree | 32654f2b35755afc961e2c97296b2dec5762da75 /OvmfPkg/Library/XenHypercallLib | |
parent | d1050b9dff1cace252aff86630bfdb59dff5f507 (diff) | |
download | edk2-ac0a286f4d747a4c6c603a7b225917293cbe1e9f.tar.gz edk2-ac0a286f4d747a4c6c603a7b225917293cbe1e9f.tar.bz2 edk2-ac0a286f4d747a4c6c603a7b225917293cbe1e9f.zip |
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>
Diffstat (limited to 'OvmfPkg/Library/XenHypercallLib')
-rw-r--r-- | OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c | 18 | ||||
-rw-r--r-- | OvmfPkg/Library/XenHypercallLib/XenHypercall.c | 45 |
2 files changed, 38 insertions, 25 deletions
diff --git a/OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c b/OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c index f779e46470..dcc6575250 100644 --- a/OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c +++ b/OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c @@ -11,7 +11,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include <Library/DebugLib.h>
#include <Guid/XenInfo.h>
-STATIC VOID *HyperPage;
+STATIC VOID *HyperPage;
/**
Check if the Xen Hypercall library is able to make calls to the Xen
@@ -38,30 +38,30 @@ XenHypercallIsAvailable ( INTN
EFIAPI
__XenHypercall2 (
- IN VOID *HypercallAddr,
- IN OUT INTN Arg1,
- IN OUT INTN Arg2
+ IN VOID *HypercallAddr,
+ IN OUT INTN Arg1,
+ IN OUT INTN Arg2
);
/**
Library constructor: retrieves the Hyperpage address
from the gEfiXenInfoGuid HOB
**/
-
RETURN_STATUS
EFIAPI
XenHypercallLibInit (
VOID
)
{
- EFI_HOB_GUID_TYPE *GuidHob;
- EFI_XEN_INFO *XenInfo;
+ EFI_HOB_GUID_TYPE *GuidHob;
+ EFI_XEN_INFO *XenInfo;
GuidHob = GetFirstGuidHob (&gEfiXenInfoGuid);
if (GuidHob == NULL) {
return RETURN_NOT_FOUND;
}
- XenInfo = (EFI_XEN_INFO *) GET_GUID_HOB_DATA (GuidHob);
+
+ XenInfo = (EFI_XEN_INFO *)GET_GUID_HOB_DATA (GuidHob);
HyperPage = XenInfo->HyperPages;
return RETURN_SUCCESS;
}
@@ -86,5 +86,5 @@ XenHypercall2 ( {
ASSERT (HyperPage != NULL);
- return __XenHypercall2 ((UINT8*)HyperPage + HypercallID * 32, Arg1, Arg2);
+ return __XenHypercall2 ((UINT8 *)HyperPage + HypercallID * 32, Arg1, Arg2);
}
diff --git a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c b/OvmfPkg/Library/XenHypercallLib/XenHypercall.c index 265aa766d0..65b14a11f4 100644 --- a/OvmfPkg/Library/XenHypercallLib/XenHypercall.c +++ b/OvmfPkg/Library/XenHypercallLib/XenHypercall.c @@ -34,43 +34,56 @@ XenHypercallLibConstruct ( UINT64
EFIAPI
XenHypercallHvmGetParam (
- IN UINT32 Index
+ IN UINT32 Index
)
{
- xen_hvm_param_t Parameter;
- INTN Error;
+ xen_hvm_param_t Parameter;
+ INTN Error;
Parameter.domid = DOMID_SELF;
Parameter.index = Index;
- Error = XenHypercall2 (__HYPERVISOR_hvm_op,
- HVMOP_get_param, (INTN) &Parameter);
+ Error = XenHypercall2 (
+ __HYPERVISOR_hvm_op,
+ HVMOP_get_param,
+ (INTN)&Parameter
+ );
if (Error != 0) {
- DEBUG ((DEBUG_ERROR,
- "XenHypercall: Error %Ld trying to get HVM parameter %d\n",
- (INT64)Error, Index));
+ DEBUG ((
+ DEBUG_ERROR,
+ "XenHypercall: Error %Ld trying to get HVM parameter %d\n",
+ (INT64)Error,
+ Index
+ ));
return 0;
}
+
return Parameter.value;
}
INTN
EFIAPI
XenHypercallMemoryOp (
- IN UINTN Operation,
- IN OUT VOID *Arguments
+ IN UINTN Operation,
+ IN OUT VOID *Arguments
)
{
- return XenHypercall2 (__HYPERVISOR_memory_op,
- Operation, (INTN) Arguments);
+ return XenHypercall2 (
+ __HYPERVISOR_memory_op,
+ Operation,
+ (INTN)Arguments
+ );
}
INTN
EFIAPI
XenHypercallEventChannelOp (
- IN INTN Operation,
- IN OUT VOID *Arguments
+ IN INTN Operation,
+ IN OUT VOID *Arguments
)
{
- return XenHypercall2 (__HYPERVISOR_event_channel_op,
- Operation, (INTN) Arguments);
+ return XenHypercall2 (
+ __HYPERVISOR_event_channel_op,
+ Operation,
+ (INTN)Arguments
+ );
}
|