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
@@ -24,7 +24,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
@param Pec TRUE if Packet Error Checking is enabled. Otherwise FALSE.
|
||||
|
||||
**/
|
||||
#define SMBUS_LIB_ADDRESS(SlaveAddress,Command,Length,Pec) \
|
||||
#define SMBUS_LIB_ADDRESS(SlaveAddress, Command, Length, Pec) \
|
||||
( ((Pec) ? BIT22: 0) | \
|
||||
(((SlaveAddress) & 0x7f) << 1) | \
|
||||
(((Command) & 0xff) << 8) | \
|
||||
@@ -36,35 +36,35 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC
|
||||
**/
|
||||
#define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress) (((SmBusAddress) >> 1) & 0x7f)
|
||||
#define SMBUS_LIB_SLAVE_ADDRESS(SmBusAddress) (((SmBusAddress) >> 1) & 0x7f)
|
||||
|
||||
/**
|
||||
Macro that returns the SMBUS Command value from an SmBusAddress Parameter value.
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC
|
||||
**/
|
||||
#define SMBUS_LIB_COMMAND(SmBusAddress) (((SmBusAddress) >> 8) & 0xff)
|
||||
#define SMBUS_LIB_COMMAND(SmBusAddress) (((SmBusAddress) >> 8) & 0xff)
|
||||
|
||||
/**
|
||||
Macro that returns the SMBUS Data Length value from an SmBusAddress Parameter value.
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC
|
||||
**/
|
||||
#define SMBUS_LIB_LENGTH(SmBusAddress) (((SmBusAddress) >> 16) & 0x3f)
|
||||
#define SMBUS_LIB_LENGTH(SmBusAddress) (((SmBusAddress) >> 16) & 0x3f)
|
||||
|
||||
/**
|
||||
Macro that returns the SMBUS PEC value from an SmBusAddress Parameter value.
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC
|
||||
**/
|
||||
#define SMBUS_LIB_PEC(SmBusAddress) ((BOOLEAN) (((SmBusAddress) & BIT22) != 0))
|
||||
#define SMBUS_LIB_PEC(SmBusAddress) ((BOOLEAN) (((SmBusAddress) & BIT22) != 0))
|
||||
|
||||
/**
|
||||
Macro that returns the set of reserved bits from an SmBusAddress Parameter value.
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address, SMBUS Command, SMBUS Data Length, and PEC
|
||||
**/
|
||||
#define SMBUS_LIB_RESERVED(SmBusAddress) ((SmBusAddress) & ~(BIT23 - 2))
|
||||
#define SMBUS_LIB_RESERVED(SmBusAddress) ((SmBusAddress) & ~(BIT23 - 2))
|
||||
|
||||
/**
|
||||
Executes an SMBUS quick read command.
|
||||
@@ -93,8 +93,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
VOID
|
||||
EFIAPI
|
||||
SmBusQuickRead (
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -124,8 +124,8 @@ SmBusQuickRead (
|
||||
VOID
|
||||
EFIAPI
|
||||
SmBusQuickWrite (
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
IN UINTN SmBusAddress,
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -487,5 +487,4 @@ SmBusBlockProcessCall (
|
||||
OUT RETURN_STATUS *Status OPTIONAL
|
||||
);
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user