mirror of https://github.com/acidanthera/audk.git
SecurityPkg/Tcg: Fix various typos
Fix various typos in documentation, comments and debug strings. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Chao Zhang <chao.b.zhang@intel.com> Signed-off-by: Antoine Coeur <coeur@gmx.fr> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com> Message-Id: <20200207010831.9046-66-philmd@redhat.com> [lersek@redhat.com: replace EFI_D_xxx w/ DEBUG_xxx to shut up PatchCheck]
This commit is contained in:
parent
f9fd0c2108
commit
dd40a1f85c
|
@ -588,7 +588,7 @@ TcgAddEndTransaction(
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initial the tcg parse stucture.
|
Initial the tcg parse structure.
|
||||||
|
|
||||||
@param ParseStruct Input parse structure.
|
@param ParseStruct Input parse structure.
|
||||||
@param Buffer Input buffer data.
|
@param Buffer Input buffer data.
|
||||||
|
@ -1218,7 +1218,7 @@ TcgParseSyncSession(
|
||||||
@param HostSession Host session data.
|
@param HostSession Host session data.
|
||||||
@param AceRow Ace row info.
|
@param AceRow Ace row info.
|
||||||
@param Authority1 Authority 1 info.
|
@param Authority1 Authority 1 info.
|
||||||
@param LogicalOperator Logiccal operator info.
|
@param LogicalOperator Logical operator info.
|
||||||
@param Authority2 Authority 2 info.
|
@param Authority2 Authority 2 info.
|
||||||
|
|
||||||
@retval Return the action result.
|
@retval Return the action result.
|
||||||
|
|
|
@ -837,7 +837,7 @@ TcgAddEndTransaction(
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initial the tcg parse stucture.
|
Initial the tcg parse structure.
|
||||||
|
|
||||||
@param ParseStruct Input parse structure.
|
@param ParseStruct Input parse structure.
|
||||||
@param Buffer Input buffer data.
|
@param Buffer Input buffer data.
|
||||||
|
|
|
@ -640,7 +640,7 @@ TcgSetAuthorityEnabled(
|
||||||
@param HostSession Host session data.
|
@param HostSession Host session data.
|
||||||
@param AceRow Ace row info.
|
@param AceRow Ace row info.
|
||||||
@param Authority1 Authority 1 info.
|
@param Authority1 Authority 1 info.
|
||||||
@param LogicalOperator Logiccal operator info.
|
@param LogicalOperator Logical operator info.
|
||||||
@param Authority2 Authority 2 info.
|
@param Authority2 Authority 2 info.
|
||||||
|
|
||||||
@retval Return the action result.
|
@retval Return the action result.
|
||||||
|
|
|
@ -61,7 +61,7 @@ OnReadyToBoot (
|
||||||
Typically, there are 2 mechanism for resetting eDrive. They are:
|
Typically, there are 2 mechanism for resetting eDrive. They are:
|
||||||
1. TPer Reset through IEEE 1667 protocol.
|
1. TPer Reset through IEEE 1667 protocol.
|
||||||
2. TPer Reset through native TCG protocol.
|
2. TPer Reset through native TCG protocol.
|
||||||
This routine will detect what protocol the attached eDrive comform to, TCG or
|
This routine will detect what protocol the attached eDrive conform to, TCG or
|
||||||
IEEE 1667 protocol. Then send out TPer Reset command separately.
|
IEEE 1667 protocol. Then send out TPer Reset command separately.
|
||||||
|
|
||||||
@param[in] Ssp The pointer to EFI_STORAGE_SECURITY_COMMAND_PROTOCOL instance.
|
@param[in] Ssp The pointer to EFI_STORAGE_SECURITY_COMMAND_PROTOCOL instance.
|
||||||
|
@ -109,7 +109,7 @@ InitiateTPerReset (
|
||||||
MediaId,
|
MediaId,
|
||||||
100000000, // Timeout 10-sec
|
100000000, // Timeout 10-sec
|
||||||
0, // SecurityProtocol
|
0, // SecurityProtocol
|
||||||
0, // SecurityProtocolSpecifcData
|
0, // SecurityProtocolSpecificData
|
||||||
Len, // PayloadBufferSize,
|
Len, // PayloadBufferSize,
|
||||||
Buffer, // PayloadBuffer
|
Buffer, // PayloadBuffer
|
||||||
&XferSize
|
&XferSize
|
||||||
|
@ -145,7 +145,7 @@ InitiateTPerReset (
|
||||||
MediaId,
|
MediaId,
|
||||||
100000000, // Timeout 10-sec
|
100000000, // Timeout 10-sec
|
||||||
0, // SecurityProtocol
|
0, // SecurityProtocol
|
||||||
0, // SecurityProtocolSpecifcData
|
0, // SecurityProtocolSpecificData
|
||||||
Len, // PayloadBufferSize,
|
Len, // PayloadBufferSize,
|
||||||
Buffer, // PayloadBuffer
|
Buffer, // PayloadBuffer
|
||||||
&XferSize
|
&XferSize
|
||||||
|
@ -197,7 +197,7 @@ InitiateTPerReset (
|
||||||
MediaId,
|
MediaId,
|
||||||
100000000, // Timeout 10-sec
|
100000000, // Timeout 10-sec
|
||||||
SECURITY_PROTOCOL_TCG, // SecurityProtocol
|
SECURITY_PROTOCOL_TCG, // SecurityProtocol
|
||||||
0x0400, // SecurityProtocolSpecifcData
|
0x0400, // SecurityProtocolSpecificData
|
||||||
512, // PayloadBufferSize,
|
512, // PayloadBufferSize,
|
||||||
Buffer // PayloadBuffer
|
Buffer // PayloadBuffer
|
||||||
);
|
);
|
||||||
|
|
|
@ -1110,7 +1110,7 @@ OpalHiiGetBrowserData (
|
||||||
Set a string Value in a form.
|
Set a string Value in a form.
|
||||||
|
|
||||||
@param DestStringId The stringid which need to update.
|
@param DestStringId The stringid which need to update.
|
||||||
@param SrcAsciiStr The string nned to update.
|
@param SrcAsciiStr The string need to update.
|
||||||
|
|
||||||
@retval EFI_SUCCESS Do the required action success.
|
@retval EFI_SUCCESS Do the required action success.
|
||||||
@retval Others Other error occur.
|
@retval Others Other error occur.
|
||||||
|
|
|
@ -31,7 +31,7 @@ LockTpmPhysicalPresence (
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global defintions for lock physical presence PPI and its descriptor.
|
// Global definitions for lock physical presence PPI and its descriptor.
|
||||||
//
|
//
|
||||||
PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi = {
|
PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi = {
|
||||||
LockTpmPhysicalPresence
|
LockTpmPhysicalPresence
|
||||||
|
|
|
@ -141,7 +141,7 @@ Tcg2ConfigPeimEntryPoint (
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Even if no TPM is selected or detected, we still need intall TpmInitializationDonePpi.
|
// Even if no TPM is selected or detected, we still need install TpmInitializationDonePpi.
|
||||||
// Because TcgPei or Tcg2Pei will not run, but we still need a way to notify other driver.
|
// Because TcgPei or Tcg2Pei will not run, but we still need a way to notify other driver.
|
||||||
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
||||||
//
|
//
|
||||||
|
|
|
@ -1006,7 +1006,7 @@ PeimEntryMA (
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Only intall TpmInitializedPpi on success
|
// Only install TpmInitializedPpi on success
|
||||||
//
|
//
|
||||||
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
@ -1027,7 +1027,7 @@ Done:
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Always intall TpmInitializationDonePpi no matter success or fail.
|
// Always install TpmInitializationDonePpi no matter success or fail.
|
||||||
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
||||||
//
|
//
|
||||||
Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);
|
Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// /** @file
|
// /** @file
|
||||||
// Provides ACPI metholds for TPM 2.0 support
|
// Provides ACPI methods for TPM 2.0 support
|
||||||
//
|
//
|
||||||
// This driver implements TPM 2.0 definition block in ACPI table and
|
// This driver implements TPM 2.0 definition block in ACPI table and
|
||||||
// registers SMI callback functions for TCG2 physical presence and
|
// registers SMI callback functions for TCG2 physical presence and
|
||||||
|
|
|
@ -146,7 +146,7 @@ EFI_PEI_NOTIFY_DESCRIPTOR mNotifyList[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Record all measured Firmware Voluem Information into a Guid Hob
|
Record all measured Firmware Volume Information into a Guid Hob
|
||||||
Guid Hob payload layout is
|
Guid Hob payload layout is
|
||||||
|
|
||||||
UINT32 *************************** FIRMWARE_BLOB number
|
UINT32 *************************** FIRMWARE_BLOB number
|
||||||
|
@ -501,7 +501,7 @@ MeasureMainBios (
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Measure and record the Firmware Voluem Information once FvInfoPPI install.
|
Measure and record the Firmware Volume Information once FvInfoPPI install.
|
||||||
|
|
||||||
@param[in] PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
|
@param[in] PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
|
||||||
@param[in] NotifyDescriptor Address of the notification descriptor data structure.
|
@param[in] NotifyDescriptor Address of the notification descriptor data structure.
|
||||||
|
@ -824,7 +824,7 @@ PeimEntryMA (
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Only intall TpmInitializedPpi on success
|
// Only install TpmInitializedPpi on success
|
||||||
//
|
//
|
||||||
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
@ -845,7 +845,7 @@ Done:
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// Always intall TpmInitializationDonePpi no matter success or fail.
|
// Always install TpmInitializationDonePpi no matter success or fail.
|
||||||
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
// Other driver can know TPM initialization state by TpmInitializedPpi.
|
||||||
//
|
//
|
||||||
Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);
|
Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
## @file
|
## @file
|
||||||
# Implements ACPI metholds for the TCG feature
|
# Implements ACPI methods for the TCG feature
|
||||||
#
|
#
|
||||||
# This driver implements TPM definition block in ACPI table and registers SMI
|
# This driver implements TPM definition block in ACPI table and registers SMI
|
||||||
# callback functions for physical presence and MemoryClear to handle the requests
|
# callback functions for physical presence and MemoryClear to handle the requests
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// /** @file
|
// /** @file
|
||||||
// Implements ACPI metholds for the TCG feature
|
// Implements ACPI methods for the TCG feature
|
||||||
//
|
//
|
||||||
// This driver implements TPM definition block in ACPI table and registers SMI
|
// This driver implements TPM definition block in ACPI table and registers SMI
|
||||||
// callback functions for physical presence and MemoryClear to handle the requests
|
// callback functions for physical presence and MemoryClear to handle the requests
|
||||||
|
|
Loading…
Reference in New Issue