]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c
SecurityPkg: Add RPMC Index to the RpmcLib
[mirror_edk2.git] / SecurityPkg / Library / RpmcLibNull / RpmcLibNull.c
index e1dd09eb10a0075682babd78b86e13bd873cd363..697e493a7cea8e7802babe7c50fa6e3ceebd3007 100644 (file)
@@ -12,6 +12,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 /**\r
   Requests the monotonic counter from the designated RPMC counter.\r
 \r
+  @param[in]    CounterIndex            The RPMC index\r
   @param[out]   CounterValue            A pointer to a buffer to store the RPMC value.\r
 \r
   @retval       EFI_SUCCESS             The operation completed successfully.\r
@@ -21,6 +22,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 EFI_STATUS\r
 EFIAPI\r
 RequestMonotonicCounter (\r
+  IN  UINT8   CounterIndex,\r
   OUT UINT32  *CounterValue\r
   )\r
 {\r
@@ -31,6 +33,8 @@ RequestMonotonicCounter (
 /**\r
   Increments the monotonic counter in the SPI flash device by 1.\r
 \r
+  @param[in]    CounterIndex            The RPMC index\r
+\r
   @retval       EFI_SUCCESS             The operation completed successfully.\r
   @retval       EFI_DEVICE_ERROR        A device error occurred while attempting to update the counter.\r
   @retval       EFI_UNSUPPORTED         The operation is un-supported.\r
@@ -38,7 +42,7 @@ RequestMonotonicCounter (
 EFI_STATUS\r
 EFIAPI\r
 IncrementMonotonicCounter (\r
-  VOID\r
+  IN  UINT8   CounterIndex\r
   )\r
 {\r
   ASSERT (FALSE);\r