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
@@ -13,7 +13,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#ifndef __PCI_CF8_LIB_H__
|
||||
#define __PCI_CF8_LIB_H__
|
||||
|
||||
|
||||
/**
|
||||
Macro that converts PCI Bus, PCI Device, PCI Function and PCI Register to an
|
||||
address that can be passed to the PCI Library functions.
|
||||
@@ -30,7 +29,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
@return The encode PCI address.
|
||||
|
||||
**/
|
||||
#define PCI_CF8_LIB_ADDRESS(Bus,Device,Function,Offset) \
|
||||
#define PCI_CF8_LIB_ADDRESS(Bus, Device, Function, Offset) \
|
||||
(((Offset) & 0xfff) | (((Function) & 0x07) << 12) | (((Device) & 0x1f) << 15) | (((Bus) & 0xff) << 20))
|
||||
|
||||
/**
|
||||
@@ -80,7 +79,7 @@ PciCf8RegisterForRuntimeAccess (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8Read8 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -103,8 +102,8 @@ PciCf8Read8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8Write8 (
|
||||
IN UINTN Address,
|
||||
IN UINT8 Value
|
||||
IN UINTN Address,
|
||||
IN UINT8 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -131,8 +130,8 @@ PciCf8Write8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8Or8 (
|
||||
IN UINTN Address,
|
||||
IN UINT8 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT8 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -159,8 +158,8 @@ PciCf8Or8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8And8 (
|
||||
IN UINTN Address,
|
||||
IN UINT8 AndData
|
||||
IN UINTN Address,
|
||||
IN UINT8 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -189,9 +188,9 @@ PciCf8And8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8AndThenOr8 (
|
||||
IN UINTN Address,
|
||||
IN UINT8 AndData,
|
||||
IN UINT8 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT8 AndData,
|
||||
IN UINT8 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -219,9 +218,9 @@ PciCf8AndThenOr8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8BitFieldRead8 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -252,10 +251,10 @@ PciCf8BitFieldRead8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8BitFieldWrite8 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 Value
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -289,10 +288,10 @@ PciCf8BitFieldWrite8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8BitFieldOr8 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -326,10 +325,10 @@ PciCf8BitFieldOr8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8BitFieldAnd8 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 AndData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -367,11 +366,11 @@ PciCf8BitFieldAnd8 (
|
||||
UINT8
|
||||
EFIAPI
|
||||
PciCf8BitFieldAndThenOr8 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 AndData,
|
||||
IN UINT8 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT8 AndData,
|
||||
IN UINT8 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -394,7 +393,7 @@ PciCf8BitFieldAndThenOr8 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8Read16 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -418,8 +417,8 @@ PciCf8Read16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8Write16 (
|
||||
IN UINTN Address,
|
||||
IN UINT16 Value
|
||||
IN UINTN Address,
|
||||
IN UINT16 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -447,8 +446,8 @@ PciCf8Write16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8Or16 (
|
||||
IN UINTN Address,
|
||||
IN UINT16 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT16 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -476,8 +475,8 @@ PciCf8Or16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8And16 (
|
||||
IN UINTN Address,
|
||||
IN UINT16 AndData
|
||||
IN UINTN Address,
|
||||
IN UINT16 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -507,9 +506,9 @@ PciCf8And16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8AndThenOr16 (
|
||||
IN UINTN Address,
|
||||
IN UINT16 AndData,
|
||||
IN UINT16 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT16 AndData,
|
||||
IN UINT16 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -538,9 +537,9 @@ PciCf8AndThenOr16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8BitFieldRead16 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -572,10 +571,10 @@ PciCf8BitFieldRead16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8BitFieldWrite16 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 Value
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -610,10 +609,10 @@ PciCf8BitFieldWrite16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8BitFieldOr16 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -648,10 +647,10 @@ PciCf8BitFieldOr16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8BitFieldAnd16 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 AndData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -690,11 +689,11 @@ PciCf8BitFieldAnd16 (
|
||||
UINT16
|
||||
EFIAPI
|
||||
PciCf8BitFieldAndThenOr16 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 AndData,
|
||||
IN UINT16 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT16 AndData,
|
||||
IN UINT16 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -717,7 +716,7 @@ PciCf8BitFieldAndThenOr16 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8Read32 (
|
||||
IN UINTN Address
|
||||
IN UINTN Address
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -741,8 +740,8 @@ PciCf8Read32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8Write32 (
|
||||
IN UINTN Address,
|
||||
IN UINT32 Value
|
||||
IN UINTN Address,
|
||||
IN UINT32 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -770,8 +769,8 @@ PciCf8Write32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8Or32 (
|
||||
IN UINTN Address,
|
||||
IN UINT32 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT32 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -799,8 +798,8 @@ PciCf8Or32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8And32 (
|
||||
IN UINTN Address,
|
||||
IN UINT32 AndData
|
||||
IN UINTN Address,
|
||||
IN UINT32 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -830,9 +829,9 @@ PciCf8And32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8AndThenOr32 (
|
||||
IN UINTN Address,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
IN UINTN Address,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -861,9 +860,9 @@ PciCf8AndThenOr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8BitFieldRead32 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -895,10 +894,10 @@ PciCf8BitFieldRead32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8BitFieldWrite32 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 Value
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 Value
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -933,10 +932,10 @@ PciCf8BitFieldWrite32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8BitFieldOr32 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -971,10 +970,10 @@ PciCf8BitFieldOr32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8BitFieldAnd32 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -1013,11 +1012,11 @@ PciCf8BitFieldAnd32 (
|
||||
UINT32
|
||||
EFIAPI
|
||||
PciCf8BitFieldAndThenOr32 (
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
IN UINTN Address,
|
||||
IN UINTN StartBit,
|
||||
IN UINTN EndBit,
|
||||
IN UINT32 AndData,
|
||||
IN UINT32 OrData
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -1047,9 +1046,9 @@ PciCf8BitFieldAndThenOr32 (
|
||||
UINTN
|
||||
EFIAPI
|
||||
PciCf8ReadBuffer (
|
||||
IN UINTN StartAddress,
|
||||
IN UINTN Size,
|
||||
OUT VOID *Buffer
|
||||
IN UINTN StartAddress,
|
||||
IN UINTN Size,
|
||||
OUT VOID *Buffer
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -1080,9 +1079,9 @@ PciCf8ReadBuffer (
|
||||
UINTN
|
||||
EFIAPI
|
||||
PciCf8WriteBuffer (
|
||||
IN UINTN StartAddress,
|
||||
IN UINTN Size,
|
||||
IN VOID *Buffer
|
||||
IN UINTN StartAddress,
|
||||
IN UINTN Size,
|
||||
IN VOID *Buffer
|
||||
);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user