mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
MdePkg,SecurityPkg: Fix Spelling Errors in TCG/TPM Definitions
Fix spelling errors in definitions in TcgPhysicalPresence.h, TcgStorageOpal.h, Tpm12.h, and Tpm2Acpi.h. Update consumer in SecurityPkg. Temporary backward-compatible aliases are provided for the old misspelled macro and enum names. Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
This commit is contained in:
parent
4e5672043b
commit
81b7c2912b
8 changed files with 50 additions and 35 deletions
|
|
@ -731,7 +731,7 @@ OpalPyrite2GetActiveDataRemovalMechanism (
|
|||
return TcgResultFailure;
|
||||
}
|
||||
|
||||
if (RecvActiveDataRemovalMechanism >= ResearvedMechanism) {
|
||||
if (RecvActiveDataRemovalMechanism >= ReservedMechanism) {
|
||||
return TcgResultFailure;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1081,7 +1081,7 @@ OpalUtilGetDataRemovalMechanismLists (
|
|||
|
||||
ASSERT (Descriptor.RemovalMechanism != 0);
|
||||
|
||||
for (Index = 0; Index < ResearvedMechanism; Index++) {
|
||||
for (Index = 0; Index < ReservedMechanism; Index++) {
|
||||
BitValue = (BOOLEAN)BitFieldRead8 (Descriptor.RemovalMechanism, Index, Index);
|
||||
|
||||
if (BitValue == 0) {
|
||||
|
|
@ -1110,7 +1110,7 @@ GetRevertTimeOut (
|
|||
UINT16 BaseComId;
|
||||
UINT32 MsidLength;
|
||||
UINT8 Msid[OPAL_MSID_LENGTH];
|
||||
UINT32 RemovalMechanishLists[ResearvedMechanism];
|
||||
UINT32 RemovalMechanishLists[ReservedMechanism];
|
||||
UINT8 ActiveDataRemovalMechanism;
|
||||
|
||||
TcgResult = OpalGetSupportedAttributesInfo (Session, &SupportedAttributes, &BaseComId);
|
||||
|
|
|
|||
|
|
@ -1261,7 +1261,7 @@ OpalDiskInitialize (
|
|||
TCG_RESULT TcgResult;
|
||||
OPAL_SESSION Session;
|
||||
UINT8 ActiveDataRemovalMechanism;
|
||||
UINT32 RemovalMechanishLists[ResearvedMechanism];
|
||||
UINT32 RemovalMechanishLists[ReservedMechanism];
|
||||
|
||||
ZeroMem (&Dev->OpalDisk, sizeof (OPAL_DISK));
|
||||
Dev->OpalDisk.Sscp = Dev->Sscp;
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ PublishTpm2 (
|
|||
mTpm2AcpiTemplate.AddressOfControlArea = PcdGet64 (PcdTpmBaseAddress) + 0x40;
|
||||
mTpm2AcpiTemplate.FfaParameters.Flags = 0x00; // Notifications Not Supported
|
||||
mTpm2AcpiTemplate.FfaParameters.Attributes = (EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_CRB_REGION_SIZE_4KB << EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_CRB_REGION_SIZE_SHIFT) |
|
||||
(EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_MEM_TYPE_NOT_CACHABLE << EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_MEM_TYPE_SHIFT);
|
||||
(EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_MEM_TYPE_NOT_CACHEABLE << EFI_TPM2_ACPI_TABLE_ARM_FFA_PARAMETER_ATTR_MEM_TYPE_SHIFT);
|
||||
mTpm2AcpiTemplate.FfaParameters.PartitionId = PartitionId; // Partition ID
|
||||
ControlArea = (EFI_TPM2_ACPI_CONTROL_AREA *)(UINTN)mTpm2AcpiTemplate.AddressOfControlArea;
|
||||
ControlArea->CommandSize = 0xF80;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue