]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg/Tcg: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:08:18 +0000 (02:08 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
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]

14 files changed:
SecurityPkg/Include/Library/TcgStorageCoreLib.h
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCore.c
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageUtil.c
SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.c
SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.c
SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.c
SecurityPkg/Tcg/Opal/OpalPassword/OpalHii.h
SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.c
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPeim.c
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c
SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.uni
SecurityPkg/Tcg/TcgPei/TcgPei.c
SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
SecurityPkg/Tcg/TcgSmm/TcgSmm.uni

index c25a56a14ca2fcef8d9d44bebb93af470e670181..01a44c667c801377f9ce23aff5eb78369a3ea1ef 100644 (file)
@@ -588,7 +588,7 @@ TcgAddEndTransaction(
   );\r
 \r
 /**\r
-  Initial the tcg parse stucture.\r
+  Initial the tcg parse structure.\r
 \r
   @param    ParseStruct    Input parse structure.\r
   @param    Buffer         Input buffer data.\r
@@ -1218,7 +1218,7 @@ TcgParseSyncSession(
   @param     HostSession       Host session data.\r
   @param     AceRow            Ace row info.\r
   @param     Authority1        Authority 1 info.\r
-  @param     LogicalOperator   Logiccal operator info.\r
+  @param     LogicalOperator   Logical operator info.\r
   @param     Authority2        Authority 2 info.\r
 \r
   @retval    Return the action result.\r
index f9c57a13f2e4905fa1467b04e3cb5b6c3ff1c6fb..660f79effd53c0f90fd8c5e5658734847760f252 100644 (file)
@@ -837,7 +837,7 @@ TcgAddEndTransaction(
 }\r
 \r
 /**\r
-  Initial the tcg parse stucture.\r
+  Initial the tcg parse structure.\r
 \r
   @param    ParseStruct    Input parse structure.\r
   @param    Buffer         Input buffer data.\r
index b6d5cf9890a06e5e193814d761824f6ce77b7d9a..ff331bfc8ad9f6e4462c93bb336151c7c14ca82d 100644 (file)
@@ -640,7 +640,7 @@ TcgSetAuthorityEnabled(
   @param     HostSession       Host session data.\r
   @param     AceRow            Ace row info.\r
   @param     Authority1        Authority 1 info.\r
-  @param     LogicalOperator   Logiccal operator info.\r
+  @param     LogicalOperator   Logical operator info.\r
   @param     Authority2        Authority 2 info.\r
 \r
   @retval    Return the action result.\r
index 97e819edf4d59b46fbbedc30fce0528d306b418c..1bf49f2d0fb8fa8cee62c19e39b6d0ca5801940e 100644 (file)
@@ -61,7 +61,7 @@ OnReadyToBoot (
   Typically, there are 2 mechanism for resetting eDrive. They are:\r
   1. TPer Reset through IEEE 1667 protocol.\r
   2. TPer Reset through native TCG protocol.\r
-  This routine will detect what protocol the attached eDrive comform to, TCG or\r
+  This routine will detect what protocol the attached eDrive conform to, TCG or\r
   IEEE 1667 protocol. Then send out TPer Reset command separately.\r
 \r
   @param[in] Ssp      The pointer to EFI_STORAGE_SECURITY_COMMAND_PROTOCOL instance.\r
@@ -109,7 +109,7 @@ InitiateTPerReset (
                   MediaId,\r
                   100000000,                    // Timeout 10-sec\r
                   0,                            // SecurityProtocol\r
-                  0,                            // SecurityProtocolSpecifcData\r
+                  0,                            // SecurityProtocolSpecificData\r
                   Len,                          // PayloadBufferSize,\r
                   Buffer,                       // PayloadBuffer\r
                   &XferSize\r
@@ -145,7 +145,7 @@ InitiateTPerReset (
                   MediaId,\r
                   100000000,                    // Timeout 10-sec\r
                   0,                            // SecurityProtocol\r
-                  0,                            // SecurityProtocolSpecifcData\r
+                  0,                            // SecurityProtocolSpecificData\r
                   Len,                          // PayloadBufferSize,\r
                   Buffer,                       // PayloadBuffer\r
                   &XferSize\r
@@ -197,7 +197,7 @@ InitiateTPerReset (
                     MediaId,\r
                     100000000,                    // Timeout 10-sec\r
                     SECURITY_PROTOCOL_TCG,        // SecurityProtocol\r
-                    0x0400,                       // SecurityProtocolSpecifcData\r
+                    0x0400,                       // SecurityProtocolSpecificData\r
                     512,                          // PayloadBufferSize,\r
                     Buffer                        // PayloadBuffer\r
                     );\r
index 6bec54b93217a8fec7ec91a4fcf25e40020d0cf2..b5b6aec98cafd4b101bacda13479698430e54a8a 100644 (file)
@@ -2583,7 +2583,7 @@ OpalDriverGetDriverDeviceName(
   @param ImageHandle     Image Handle this driver.\r
   @param SystemTable     Pointer to SystemTable.\r
 \r
-  @retval EFI_SUCCESS     This function always complete successfully.\r
+  @retval EFI_SUCCESS    This function always complete successfully.\r
 **/\r
 EFI_STATUS\r
 EFIAPI\r
index ef117d3d031eb3b069c45efd63eefb1f21d33bac..211e75537a075f63fc975f6631afc7399a77a000 100644 (file)
@@ -1110,7 +1110,7 @@ OpalHiiGetBrowserData (
   Set a string Value in a form.\r
 \r
   @param      DestStringId   The stringid which need to update.\r
-  @param      SrcAsciiStr    The string nned to update.\r
+  @param      SrcAsciiStr    The string need to update.\r
 \r
   @retval  EFI_SUCCESS       Do the required action success.\r
   @retval  Others            Other error occur.\r
@@ -1164,7 +1164,7 @@ HiiSetFormString(
 \r
   @param Dev                  The Opal device.\r
 \r
-  @retval EFI_SUCCESS          Initialize the device success.\r
+  @retval EFI_SUCCESS         Initialize the device success.\r
   @retval EFI_DEVICE_ERROR    Get info from device failed.\r
 \r
 **/\r
@@ -1220,7 +1220,7 @@ OpalDiskInitialize (
 \r
   @param OpalDisk                The Opal device.\r
 \r
-  @retval EFI_SUCCESS             Get ownership success.\r
+  @retval EFI_SUCCESS            Get ownership success.\r
   @retval EFI_ACCESS_DENIED      Has send BlockSID command, can't change ownership.\r
   @retval EFI_INVALID_PARAMETER  Not get Msid info before get ownership info.\r
 \r
@@ -1254,7 +1254,7 @@ OpalDiskUpdateOwnerShip (
 \r
   @param OpalDisk                The Opal device.\r
 \r
-  @retval EFI_SUCCESS             Initialize the device success.\r
+  @retval EFI_SUCCESS            Initialize the device success.\r
   @retval EFI_DEVICE_ERROR       Get info from device failed.\r
   @retval EFI_INVALID_PARAMETER  Not get Msid info before get ownership info.\r
   @retval EFI_ACCESS_DENIED      Has send BlockSID command, can't change ownership.\r
index 0543a2ce493d34d6e0fb740b25319ff041c38cf9..557c1f8d68da7f62ef3ce0a3242fedd47baf890e 100644 (file)
@@ -247,7 +247,7 @@ GetDiskNameStringId(
 \r
   @param OpalDisk                The Opal device.\r
 \r
-  @retval EFI_SUCCESS             Initialize the device success.\r
+  @retval EFI_SUCCESS            Initialize the device success.\r
   @retval EFI_DEVICE_ERROR       Get info from device failed.\r
   @retval EFI_INVALID_PARAMETER  Not get Msid info before get ownership info.\r
 \r
@@ -348,7 +348,7 @@ HiiUninstall(
 \r
   @param Dev                  The Opal device.\r
 \r
-  @retval EFI_SUCCESS          Initialize the device success.\r
+  @retval EFI_SUCCESS         Initialize the device success.\r
   @retval EFI_DEVICE_ERROR    Get info from device failed.\r
 \r
 **/\r
@@ -362,7 +362,7 @@ OpalDiskInitialize (
 \r
   @param OpalDisk                The Opal device.\r
 \r
-  @retval EFI_SUCCESS             Get ownership success.\r
+  @retval EFI_SUCCESS            Get ownership success.\r
   @retval EFI_ACCESS_DENIED      Has send BlockSID command, can't change ownership.\r
   @retval EFI_INVALID_PARAMETER  Not get Msid info before get ownership info.\r
 \r
index 83c3ad50d1a249a2a95cb71130b738b7b726b9a6..89c1be0417ed6f75c176dd56ea618c4ef7083051 100644 (file)
@@ -31,7 +31,7 @@ LockTpmPhysicalPresence (
   );\r
 \r
 //\r
-// Global defintions for lock physical presence PPI and its descriptor.\r
+// Global definitions for lock physical presence PPI and its descriptor.\r
 //\r
 PEI_LOCK_PHYSICAL_PRESENCE_PPI    mLockPhysicalPresencePpi = {\r
   LockTpmPhysicalPresence\r
index e0d0a207e1bf8da48edacfcd0b7ed3b549616095..0f9bad724ebfdb744508121f292fe252452dbaa9 100644 (file)
@@ -141,7 +141,7 @@ Tcg2ConfigPeimEntryPoint (
   ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
-  // Even if no TPM is selected or detected, we still need intall TpmInitializationDonePpi.\r
+  // Even if no TPM is selected or detected, we still need install TpmInitializationDonePpi.\r
   // Because TcgPei or Tcg2Pei will not run, but we still need a way to notify other driver.\r
   // Other driver can know TPM initialization state by TpmInitializedPpi.\r
   //\r
index 3788063cc9e8267c0e4719e401a198af2e5744ab..7e94a8e1ed1a1607626e52423e58765dd71c2848 100644 (file)
@@ -1006,7 +1006,7 @@ PeimEntryMA (
     }\r
 \r
     //\r
-    // Only intall TpmInitializedPpi on success\r
+    // Only install TpmInitializedPpi on success\r
     //\r
     Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);\r
     ASSERT_EFI_ERROR (Status);\r
@@ -1027,7 +1027,7 @@ Done:
       );\r
   }\r
   //\r
-  // Always intall TpmInitializationDonePpi no matter success or fail.\r
+  // Always install TpmInitializationDonePpi no matter success or fail.\r
   // Other driver can know TPM initialization state by TpmInitializedPpi.\r
   //\r
   Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);\r
index dbb4924c0d9978ccbe29db5ce87ca9dd303e8d07..d6e047d74577de07ea6664e9801aa289e45864ff 100644 (file)
@@ -1,5 +1,5 @@
 // /** @file\r
-// Provides ACPI metholds for TPM 2.0 support\r
+// Provides ACPI methods for TPM 2.0 support\r
 //\r
 // This driver implements TPM 2.0 definition block in ACPI table and\r
 // registers SMI callback functions for TCG2 physical presence and\r
index 284fc394f063d9d2e49c5710da488fe7e8c96075..a9a808c9ecf35702825311dbc6c807845531828e 100644 (file)
@@ -146,7 +146,7 @@ EFI_PEI_NOTIFY_DESCRIPTOR           mNotifyList[] = {
 };\r
 \r
 /**\r
-  Record all measured Firmware Voluem Information into a Guid Hob\r
+  Record all measured Firmware Volume Information into a Guid Hob\r
   Guid Hob payload layout is\r
 \r
      UINT32 *************************** FIRMWARE_BLOB number\r
@@ -501,7 +501,7 @@ MeasureMainBios (
 }\r
 \r
 /**\r
-  Measure and record the Firmware Voluem Information once FvInfoPPI install.\r
+  Measure and record the Firmware Volume Information once FvInfoPPI install.\r
 \r
   @param[in] PeiServices       An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.\r
   @param[in] NotifyDescriptor  Address of the notification descriptor data structure.\r
@@ -824,7 +824,7 @@ PeimEntryMA (
     }\r
 \r
     //\r
-    // Only intall TpmInitializedPpi on success\r
+    // Only install TpmInitializedPpi on success\r
     //\r
     Status = PeiServicesInstallPpi (&mTpmInitializedPpiList);\r
     ASSERT_EFI_ERROR (Status);\r
@@ -845,7 +845,7 @@ Done:
       );\r
   }\r
   //\r
-  // Always intall TpmInitializationDonePpi no matter success or fail.\r
+  // Always install TpmInitializationDonePpi no matter success or fail.\r
   // Other driver can know TPM initialization state by TpmInitializedPpi.\r
   //\r
   Status2 = PeiServicesInstallPpi (&mTpmInitializationDonePpiList);\r
index 40827041cae4d9bebb3b50e458b3094686b9a218..29f9c15b0e02562606b74d008fb29f724202406a 100644 (file)
@@ -1,5 +1,5 @@
 ## @file\r
-#  Implements ACPI metholds for the TCG feature\r
+#  Implements ACPI methods for the TCG feature\r
 #\r
 #  This driver implements TPM definition block in ACPI table and registers SMI\r
 #  callback functions for physical presence and MemoryClear to handle the requests\r
index 807163367023c941edd37296950d9c8c930dcde2..a3abb3addf0c1d86c77124ffab14809c5e7a3dc8 100644 (file)
@@ -1,5 +1,5 @@
 // /** @file\r
-// Implements ACPI metholds for the TCG feature\r
+// Implements ACPI methods for the TCG feature\r
 //\r
 // This driver implements TPM definition block in ACPI table and registers SMI\r
 // callback functions for physical presence and MemoryClear to handle the requests\r