MdePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdePkg 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: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
1436aea4d5
commit
2f88bd3a12
@@ -26,7 +26,7 @@
|
||||
UINT64
|
||||
EFIAPI
|
||||
IoRead64 (
|
||||
IN UINTN Port
|
||||
IN UINTN Port
|
||||
)
|
||||
{
|
||||
ASSERT (FALSE);
|
||||
@@ -52,15 +52,14 @@ IoRead64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
IoWrite64 (
|
||||
IN UINTN Port,
|
||||
IN UINT64 Value
|
||||
IN UINTN Port,
|
||||
IN UINT64 Value
|
||||
)
|
||||
{
|
||||
ASSERT (FALSE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Reads an 8-bit MMIO register.
|
||||
|
||||
@@ -78,18 +77,19 @@ IoWrite64 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
MmioRead8 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
)
|
||||
{
|
||||
UINT8 Value;
|
||||
BOOLEAN Flag;
|
||||
UINT8 Value;
|
||||
BOOLEAN Flag;
|
||||
|
||||
Flag = FilterBeforeMmIoRead (FilterWidth8, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
Value = *(volatile UINT8*)Address;
|
||||
Value = *(volatile UINT8 *)Address;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoRead (FilterWidth8, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -113,18 +113,19 @@ MmioRead8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
MmioWrite8 (
|
||||
IN UINTN Address,
|
||||
IN UINT8 Value
|
||||
IN UINTN Address,
|
||||
IN UINT8 Value
|
||||
)
|
||||
{
|
||||
BOOLEAN Flag;
|
||||
BOOLEAN Flag;
|
||||
|
||||
Flag = FilterBeforeMmIoWrite (FilterWidth8, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
*(volatile UINT8*)Address = Value;
|
||||
*(volatile UINT8 *)Address = Value;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoWrite (FilterWidth8, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -148,19 +149,20 @@ MmioWrite8 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
MmioRead16 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
)
|
||||
{
|
||||
UINT16 Value;
|
||||
BOOLEAN Flag;
|
||||
UINT16 Value;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 1) == 0);
|
||||
Flag = FilterBeforeMmIoRead (FilterWidth16, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
Value = *(volatile UINT16*)Address;
|
||||
Value = *(volatile UINT16 *)Address;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoRead (FilterWidth16, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -185,20 +187,21 @@ MmioRead16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
MmioWrite16 (
|
||||
IN UINTN Address,
|
||||
IN UINT16 Value
|
||||
IN UINTN Address,
|
||||
IN UINT16 Value
|
||||
)
|
||||
{
|
||||
BOOLEAN Flag;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 1) == 0);
|
||||
|
||||
Flag = FilterBeforeMmIoWrite (FilterWidth16, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
*(volatile UINT16*)Address = Value;
|
||||
*(volatile UINT16 *)Address = Value;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoWrite (FilterWidth16, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -222,20 +225,21 @@ MmioWrite16 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
MmioRead32 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
)
|
||||
{
|
||||
UINT32 Value;
|
||||
BOOLEAN Flag;
|
||||
UINT32 Value;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 3) == 0);
|
||||
|
||||
Flag = FilterBeforeMmIoRead (FilterWidth32, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
Value = *(volatile UINT32*)Address;
|
||||
Value = *(volatile UINT32 *)Address;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoRead (FilterWidth32, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -260,20 +264,21 @@ MmioRead32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
MmioWrite32 (
|
||||
IN UINTN Address,
|
||||
IN UINT32 Value
|
||||
IN UINTN Address,
|
||||
IN UINT32 Value
|
||||
)
|
||||
{
|
||||
BOOLEAN Flag;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 3) == 0);
|
||||
|
||||
Flag = FilterBeforeMmIoWrite (FilterWidth32, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
*(volatile UINT32*)Address = Value;
|
||||
*(volatile UINT32 *)Address = Value;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoWrite (FilterWidth32, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -297,20 +302,21 @@ MmioWrite32 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
MmioRead64 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
)
|
||||
{
|
||||
UINT64 Value;
|
||||
BOOLEAN Flag;
|
||||
UINT64 Value;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 7) == 0);
|
||||
|
||||
Flag = FilterBeforeMmIoRead (FilterWidth64, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
Value = *(volatile UINT64*)Address;
|
||||
Value = *(volatile UINT64 *)Address;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoRead (FilterWidth64, Address, &Value);
|
||||
|
||||
return Value;
|
||||
@@ -333,22 +339,22 @@ MmioRead64 (
|
||||
UINT64
|
||||
EFIAPI
|
||||
MmioWrite64 (
|
||||
IN UINTN Address,
|
||||
IN UINT64 Value
|
||||
IN UINTN Address,
|
||||
IN UINT64 Value
|
||||
)
|
||||
{
|
||||
BOOLEAN Flag;
|
||||
BOOLEAN Flag;
|
||||
|
||||
ASSERT ((Address & 7) == 0);
|
||||
|
||||
Flag = FilterBeforeMmIoWrite (FilterWidth64, Address, &Value);
|
||||
if (Flag) {
|
||||
MemoryFence ();
|
||||
*(volatile UINT64*)Address = Value;
|
||||
*(volatile UINT64 *)Address = Value;
|
||||
MemoryFence ();
|
||||
}
|
||||
|
||||
FilterAfterMmIoWrite (FilterWidth64, Address, &Value);
|
||||
|
||||
return Value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user