]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
SecurityPkg/PeiTpmMeasurementLib: Add PEI instance.
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibDTpm / Tpm2Tis.c
index d2ce8d1f095db2f751cca3248d3849d9d399eb39..9a809612b3d9d3e421174f1e342a6b3a62aaecd5 100644 (file)
@@ -22,7 +22,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 #define TIS_TIMEOUT_MAX             (90000 * 1000)  // 90s\r
 \r
 //\r
-// Max TPM command/reponse length\r
+// Max TPM command/response length\r
 //\r
 #define TPMCMDBUFLENGTH             0x500\r
 \r
@@ -77,11 +77,11 @@ TisPcWaitRegisterBits (
 }\r
 \r
 /**\r
-  Get BurstCount by reading the burstCount field of a TIS regiger\r
+  Get BurstCount by reading the burstCount field of a TIS register\r
   in the time of default TIS_TIMEOUT_D.\r
 \r
   @param[in]  TisReg                Pointer to TIS register.\r
-  @param[out] BurstCount            Pointer to a buffer to store the got BurstConut.\r
+  @param[out] BurstCount            Pointer to a buffer to store the got BurstCount.\r
 \r
   @retval     EFI_SUCCESS           Get BurstCount.\r
   @retval     EFI_INVALID_PARAMETER TisReg is NULL or BurstCount is NULL.\r
@@ -303,7 +303,7 @@ Tpm2TisTpmCommand (
                TIS_TIMEOUT_B\r
                );\r
     //\r
-    // Do not clear CANCEL bit here bicoz Writes of 0 to this bit are ignored\r
+    // Do not clear CANCEL bit here because Writes of 0 to this bit are ignored\r
     //\r
     if (EFI_ERROR (Status)) {\r
       //\r
@@ -340,7 +340,7 @@ Tpm2TisTpmCommand (
     DEBUG ((EFI_D_VERBOSE, "\n"));\r
   );\r
   //\r
-  // Check the reponse data header (tag,parasize and returncode )\r
+  // Check the response data header (tag,parasize and returncode )\r
   //\r
   CopyMem (&Data16, BufferOut, sizeof (UINT16));\r
   // TPM2 should not use this RSP_COMMAND\r