SecurityPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the SecurityPkg 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: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
39de741e2d
commit
c411b485b6
@@ -18,10 +18,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define EFI_SECURE_BOOT_ENABLE_DISABLE \
|
||||
{ 0xf0a30bc7, 0xaf08, 0x4556, { 0x99, 0xc4, 0x0, 0x10, 0x9, 0xc9, 0x3a, 0x44 } }
|
||||
|
||||
extern EFI_GUID gEfiSecureBootEnableDisableGuid;
|
||||
extern EFI_GUID gEfiCertDbGuid;
|
||||
extern EFI_GUID gEfiCustomModeEnableGuid;
|
||||
extern EFI_GUID gEfiVendorKeysNvGuid;
|
||||
extern EFI_GUID gEfiSecureBootEnableDisableGuid;
|
||||
extern EFI_GUID gEfiCertDbGuid;
|
||||
extern EFI_GUID gEfiCustomModeEnableGuid;
|
||||
extern EFI_GUID gEfiVendorKeysNvGuid;
|
||||
|
||||
///
|
||||
/// "SecureBootEnable" variable for the Secure Boot feature enable/disable.
|
||||
@@ -32,9 +32,9 @@ extern EFI_GUID gEfiVendorKeysNvGuid;
|
||||
///
|
||||
/// Format: UINT8
|
||||
///
|
||||
#define EFI_SECURE_BOOT_ENABLE_NAME L"SecureBootEnable"
|
||||
#define SECURE_BOOT_ENABLE 1
|
||||
#define SECURE_BOOT_DISABLE 0
|
||||
#define EFI_SECURE_BOOT_ENABLE_NAME L"SecureBootEnable"
|
||||
#define SECURE_BOOT_ENABLE 1
|
||||
#define SECURE_BOOT_DISABLE 0
|
||||
|
||||
///
|
||||
/// "CustomMode" variable for two Secure Boot modes feature: "Custom" and "Standard".
|
||||
@@ -48,9 +48,9 @@ extern EFI_GUID gEfiVendorKeysNvGuid;
|
||||
///
|
||||
/// Format: UINT8
|
||||
///
|
||||
#define EFI_CUSTOM_MODE_NAME L"CustomMode"
|
||||
#define CUSTOM_SECURE_BOOT_MODE 1
|
||||
#define STANDARD_SECURE_BOOT_MODE 0
|
||||
#define EFI_CUSTOM_MODE_NAME L"CustomMode"
|
||||
#define CUSTOM_SECURE_BOOT_MODE 1
|
||||
#define STANDARD_SECURE_BOOT_MODE 0
|
||||
|
||||
///
|
||||
/// "VendorKeysNv" variable to record the out of band secure boot keys modification.
|
||||
@@ -62,8 +62,8 @@ extern EFI_GUID gEfiVendorKeysNvGuid;
|
||||
///
|
||||
/// Format: UINT8
|
||||
///
|
||||
#define EFI_VENDOR_KEYS_NV_VARIABLE_NAME L"VendorKeysNv"
|
||||
#define VENDOR_KEYS_VALID 1
|
||||
#define VENDOR_KEYS_MODIFIED 0
|
||||
#define EFI_VENDOR_KEYS_NV_VARIABLE_NAME L"VendorKeysNv"
|
||||
#define VENDOR_KEYS_VALID 1
|
||||
#define VENDOR_KEYS_MODIFIED 0
|
||||
|
||||
#endif // __AUTHENTICATED_VARIABLE_FORMAT_H__
|
||||
|
@@ -20,11 +20,11 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xb2360b42, 0x7173, 0x420a, { 0x86, 0x96, 0x46, 0xca, 0x6b, 0xab, 0x10, 0x60 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gMeasuredFvHobGuid;
|
||||
extern EFI_GUID gMeasuredFvHobGuid;
|
||||
|
||||
typedef struct {
|
||||
UINT32 Num;
|
||||
EFI_PLATFORM_FIRMWARE_BLOB MeasuredFvBuf[1];
|
||||
UINT32 Num;
|
||||
EFI_PLATFORM_FIRMWARE_BLOB MeasuredFvBuf[1];
|
||||
} MEASURED_HOB_DATA;
|
||||
|
||||
#endif
|
||||
|
@@ -20,37 +20,37 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define PHYSICAL_PRESENCE_VARIABLE L"PhysicalPresence"
|
||||
|
||||
typedef struct {
|
||||
UINT8 PPRequest; ///< Physical Presence request command.
|
||||
UINT8 LastPPRequest;
|
||||
UINT32 PPResponse;
|
||||
UINT8 PPRequest; ///< Physical Presence request command.
|
||||
UINT8 LastPPRequest;
|
||||
UINT32 PPResponse;
|
||||
} EFI_PHYSICAL_PRESENCE;
|
||||
|
||||
//
|
||||
// The definition of physical presence operation actions
|
||||
//
|
||||
#define PHYSICAL_PRESENCE_NO_ACTION 0
|
||||
#define PHYSICAL_PRESENCE_ENABLE 1
|
||||
#define PHYSICAL_PRESENCE_DISABLE 2
|
||||
#define PHYSICAL_PRESENCE_ACTIVATE 3
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE 4
|
||||
#define PHYSICAL_PRESENCE_CLEAR 5
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE 6
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE_DISABLE 7
|
||||
#define PHYSICAL_PRESENCE_SET_OWNER_INSTALL_TRUE 8
|
||||
#define PHYSICAL_PRESENCE_SET_OWNER_INSTALL_FALSE 9
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_OWNER_TRUE 10
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE_DISABLE_OWNER_FALSE 11
|
||||
#define PHYSICAL_PRESENCE_DEFERRED_PP_UNOWNERED_FIELD_UPGRADE 12
|
||||
#define PHYSICAL_PRESENCE_SET_OPERATOR_AUTH 13
|
||||
#define PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE 14
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_FALSE 15
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE 16
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_FALSE 19
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_TRUE 20
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR 21
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE 22
|
||||
#define PHYSICAL_PRESENCE_NO_ACTION 0
|
||||
#define PHYSICAL_PRESENCE_ENABLE 1
|
||||
#define PHYSICAL_PRESENCE_DISABLE 2
|
||||
#define PHYSICAL_PRESENCE_ACTIVATE 3
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE 4
|
||||
#define PHYSICAL_PRESENCE_CLEAR 5
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE 6
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE_DISABLE 7
|
||||
#define PHYSICAL_PRESENCE_SET_OWNER_INSTALL_TRUE 8
|
||||
#define PHYSICAL_PRESENCE_SET_OWNER_INSTALL_FALSE 9
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_OWNER_TRUE 10
|
||||
#define PHYSICAL_PRESENCE_DEACTIVATE_DISABLE_OWNER_FALSE 11
|
||||
#define PHYSICAL_PRESENCE_DEFERRED_PP_UNOWNERED_FIELD_UPGRADE 12
|
||||
#define PHYSICAL_PRESENCE_SET_OPERATOR_AUTH 13
|
||||
#define PHYSICAL_PRESENCE_CLEAR_ENABLE_ACTIVATE 14
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_FALSE 15
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_PROVISION_TRUE 16
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_FALSE 17
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_CLEAR_TRUE 18
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_FALSE 19
|
||||
#define PHYSICAL_PRESENCE_SET_NO_PPI_MAINTENANCE_TRUE 20
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR 21
|
||||
#define PHYSICAL_PRESENCE_ENABLE_ACTIVATE_CLEAR_ENABLE_ACTIVATE 22
|
||||
|
||||
//
|
||||
// This variable is used to save TPM Management Flags and corresponding operations.
|
||||
@@ -58,18 +58,17 @@ typedef struct {
|
||||
//
|
||||
#define PHYSICAL_PRESENCE_FLAGS_VARIABLE L"PhysicalPresenceFlags"
|
||||
typedef struct {
|
||||
UINT8 PPFlags;
|
||||
UINT8 PPFlags;
|
||||
} EFI_PHYSICAL_PRESENCE_FLAGS;
|
||||
|
||||
//
|
||||
// The definition bit of the TPM Management Flags
|
||||
//
|
||||
#define FLAG_NO_PPI_PROVISION BIT0
|
||||
#define FLAG_NO_PPI_CLEAR BIT1
|
||||
#define FLAG_NO_PPI_MAINTENANCE BIT2
|
||||
#define FLAG_RESET_TRACK BIT3
|
||||
#define FLAG_NO_PPI_PROVISION BIT0
|
||||
#define FLAG_NO_PPI_CLEAR BIT1
|
||||
#define FLAG_NO_PPI_MAINTENANCE BIT2
|
||||
#define FLAG_RESET_TRACK BIT3
|
||||
|
||||
extern EFI_GUID gEfiPhysicalPresenceGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -18,6 +18,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x78b9ec8b, 0xc000, 0x46c5, { 0xac, 0x93, 0x24, 0xa0, 0xc1, 0xbb, 0x0, 0xce } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gPwdCredentialProviderGuid;
|
||||
extern EFI_GUID gPwdCredentialProviderGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,7 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x5daf50a5, 0xea81, 0x4de2, {0x8f, 0x9b, 0xca, 0xbd, 0xa9, 0xcf, 0x5c, 0x14} \
|
||||
}
|
||||
|
||||
|
||||
extern EFI_GUID gSecureBootConfigFormSetGuid;
|
||||
extern EFI_GUID gSecureBootConfigFormSetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xd3fb176, 0x9569, 0x4d51, { 0xa3, 0xef, 0x7d, 0x61, 0xc6, 0x4f, 0xea, 0xba } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEfiSecurityPkgTokenSpaceGuid;
|
||||
extern EFI_GUID gEfiSecurityPkgTokenSpaceGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x6339d487, 0x26ba, 0x424b, { 0x9a, 0x5d, 0x68, 0x7e, 0x25, 0xd7, 0x40, 0xbc } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTcg2ConfigFormSetGuid;
|
||||
extern EFI_GUID gTcg2ConfigFormSetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -20,10 +20,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define TCG2_PHYSICAL_PRESENCE_VARIABLE L"Tcg2PhysicalPresence"
|
||||
|
||||
typedef struct {
|
||||
UINT8 PPRequest; ///< Physical Presence request command.
|
||||
UINT32 PPRequestParameter; ///< Physical Presence request Parameter.
|
||||
UINT8 LastPPRequest;
|
||||
UINT32 PPResponse;
|
||||
UINT8 PPRequest; ///< Physical Presence request command.
|
||||
UINT32 PPRequestParameter; ///< Physical Presence request Parameter.
|
||||
UINT8 LastPPRequest;
|
||||
UINT32 PPResponse;
|
||||
} EFI_TCG2_PHYSICAL_PRESENCE;
|
||||
|
||||
//
|
||||
@@ -32,10 +32,9 @@ typedef struct {
|
||||
//
|
||||
#define TCG2_PHYSICAL_PRESENCE_FLAGS_VARIABLE L"Tcg2PhysicalPresenceFlags"
|
||||
typedef struct {
|
||||
UINT32 PPFlags;
|
||||
UINT32 PPFlags;
|
||||
} EFI_TCG2_PHYSICAL_PRESENCE_FLAGS;
|
||||
|
||||
extern EFI_GUID gEfiTcg2PhysicalPresenceGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -14,6 +14,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0xb0f901e4, 0xc424, 0x45de, {0x90, 0x81, 0x95, 0xe2, 0xb, 0xde, 0x6f, 0xb5 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTcgConfigFormSetGuid;
|
||||
extern EFI_GUID gTcgConfigFormSetGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -19,14 +19,14 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
0x2b9ffb52, 0x1b13, 0x416f, { 0xa8, 0x7b, 0xbc, 0x93, 0xd, 0xef, 0x92, 0xa8 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTcgEventEntryHobGuid;
|
||||
extern EFI_GUID gTcgEventEntryHobGuid;
|
||||
|
||||
#define EFI_TCG_EVENT2_HOB_GUID \
|
||||
{ \
|
||||
0xd26c221e, 0x2430, 0x4c8a, { 0x91, 0x70, 0x3f, 0xcb, 0x45, 0x0, 0x41, 0x3f } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTcgEvent2EntryHobGuid;
|
||||
extern EFI_GUID gTcgEvent2EntryHobGuid;
|
||||
|
||||
///
|
||||
/// The Global ID of a GUIDed HOB used to record TPM device error.
|
||||
@@ -36,7 +36,7 @@ extern EFI_GUID gTcgEvent2EntryHobGuid;
|
||||
0xef598499, 0xb25e, 0x473a, { 0xbf, 0xaf, 0xe7, 0xe5, 0x7d, 0xce, 0x82, 0xc4 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTpmErrorHobGuid;
|
||||
extern EFI_GUID gTpmErrorHobGuid;
|
||||
|
||||
///
|
||||
/// The Global ID of a GUIDed HOB used to record TPM2 Startup Locality.
|
||||
@@ -47,7 +47,7 @@ extern EFI_GUID gTpmErrorHobGuid;
|
||||
0xef598499, 0xb25e, 0x473a, { 0xbf, 0xaf, 0xe7, 0xe5, 0x7d, 0xce, 0x82, 0xc4 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTpm2StartupLocalityHobGuid;
|
||||
extern EFI_GUID gTpm2StartupLocalityHobGuid;
|
||||
|
||||
///
|
||||
/// The Global ID of a GUIDed HOB used to record TCG 800-155 PlatformId Event.
|
||||
@@ -58,6 +58,6 @@ extern EFI_GUID gTpm2StartupLocalityHobGuid;
|
||||
0xe2c3bc69, 0x615c, 0x4b5b, { 0x8e, 0x5c, 0xa0, 0x33, 0xa9, 0xc2, 0x5e, 0xd6 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gTcg800155PlatformIdEventHobGuid;
|
||||
extern EFI_GUID gTcg800155PlatformIdEventHobGuid;
|
||||
|
||||
#endif
|
||||
|
@@ -22,11 +22,9 @@ extern EFI_GUID gEfiTpmDeviceInstanceNoneGuid;
|
||||
extern EFI_GUID gEfiTpmDeviceInstanceTpm12Guid;
|
||||
extern EFI_GUID gEfiTpmDeviceInstanceTpm20DtpmGuid;
|
||||
|
||||
|
||||
#define TPM_DEVICE_SELECTED_GUID \
|
||||
{ 0x7f4158d3, 0x74d, 0x456d, { 0x8c, 0xb2, 0x1, 0xf9, 0xc8, 0xf7, 0x9d, 0xaa } }
|
||||
|
||||
extern EFI_GUID gEfiTpmDeviceSelectedGuid;
|
||||
|
||||
#endif
|
||||
|
||||
|
@@ -14,50 +14,50 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#define MM_TPM_NVS_HOB_GUID \
|
||||
{ 0xc96c76eb, 0xbc78, 0x429c, { 0x9f, 0x4b, 0xda, 0x51, 0x78, 0xc2, 0x84, 0x57 }}
|
||||
|
||||
extern EFI_GUID gTpmNvsMmGuid;
|
||||
extern EFI_GUID gTpmNvsMmGuid;
|
||||
|
||||
#pragma pack(1)
|
||||
typedef struct {
|
||||
UINT8 SoftwareSmi;
|
||||
UINT32 Parameter;
|
||||
UINT32 Response;
|
||||
UINT32 Request;
|
||||
UINT32 RequestParameter;
|
||||
UINT32 LastRequest;
|
||||
UINT32 ReturnCode;
|
||||
UINT8 SoftwareSmi;
|
||||
UINT32 Parameter;
|
||||
UINT32 Response;
|
||||
UINT32 Request;
|
||||
UINT32 RequestParameter;
|
||||
UINT32 LastRequest;
|
||||
UINT32 ReturnCode;
|
||||
} PHYSICAL_PRESENCE_NVS;
|
||||
|
||||
typedef struct {
|
||||
UINT8 SoftwareSmi;
|
||||
UINT32 Parameter;
|
||||
UINT32 Request;
|
||||
UINT32 ReturnCode;
|
||||
UINT8 SoftwareSmi;
|
||||
UINT32 Parameter;
|
||||
UINT32 Request;
|
||||
UINT32 ReturnCode;
|
||||
} MEMORY_CLEAR_NVS;
|
||||
|
||||
typedef struct {
|
||||
PHYSICAL_PRESENCE_NVS PhysicalPresence;
|
||||
MEMORY_CLEAR_NVS MemoryClear;
|
||||
UINT32 PPRequestUserConfirm;
|
||||
UINT32 TpmIrqNum;
|
||||
BOOLEAN IsShortFormPkgLength;
|
||||
PHYSICAL_PRESENCE_NVS PhysicalPresence;
|
||||
MEMORY_CLEAR_NVS MemoryClear;
|
||||
UINT32 PPRequestUserConfirm;
|
||||
UINT32 TpmIrqNum;
|
||||
BOOLEAN IsShortFormPkgLength;
|
||||
} TCG_NVS;
|
||||
|
||||
typedef struct {
|
||||
UINT8 OpRegionOp;
|
||||
UINT32 NameString;
|
||||
UINT8 RegionSpace;
|
||||
UINT8 DWordPrefix;
|
||||
UINT32 RegionOffset;
|
||||
UINT8 BytePrefix;
|
||||
UINT8 RegionLen;
|
||||
UINT8 OpRegionOp;
|
||||
UINT32 NameString;
|
||||
UINT8 RegionSpace;
|
||||
UINT8 DWordPrefix;
|
||||
UINT32 RegionOffset;
|
||||
UINT8 BytePrefix;
|
||||
UINT8 RegionLen;
|
||||
} AML_OP_REGION_32_8;
|
||||
|
||||
typedef struct {
|
||||
UINT64 Function;
|
||||
UINT64 ReturnStatus;
|
||||
EFI_PHYSICAL_ADDRESS TargetAddress;
|
||||
UINT64 RegisteredPpSwiValue;
|
||||
UINT64 RegisteredMcSwiValue;
|
||||
UINT64 Function;
|
||||
UINT64 ReturnStatus;
|
||||
EFI_PHYSICAL_ADDRESS TargetAddress;
|
||||
UINT64 RegisteredPpSwiValue;
|
||||
UINT64 RegisteredMcSwiValue;
|
||||
} TPM_NVS_MM_COMM_BUFFER;
|
||||
#pragma pack()
|
||||
|
||||
@@ -65,4 +65,4 @@ typedef enum {
|
||||
TpmNvsMmExchangeInfo,
|
||||
} TPM_NVS_MM_FUNCTION;
|
||||
|
||||
#endif // TCG2_NVS_MM_H_
|
||||
#endif // TCG2_NVS_MM_H_
|
||||
|
Reference in New Issue
Block a user