]>
git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c
697e493a7cea8e7802babe7c50fa6e3ceebd3007
2 NULL RpmcLib instance for build purpose.
4 Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/DebugLib.h>
10 #include <Library/RpmcLib.h>
13 Requests the monotonic counter from the designated RPMC counter.
15 @param[in] CounterIndex The RPMC index
16 @param[out] CounterValue A pointer to a buffer to store the RPMC value.
18 @retval EFI_SUCCESS The operation completed successfully.
19 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
20 @retval EFI_UNSUPPORTED The operation is un-supported.
24 RequestMonotonicCounter (
25 IN UINT8 CounterIndex
,
26 OUT UINT32
*CounterValue
30 return EFI_UNSUPPORTED
;
34 Increments the monotonic counter in the SPI flash device by 1.
36 @param[in] CounterIndex The RPMC index
38 @retval EFI_SUCCESS The operation completed successfully.
39 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.
40 @retval EFI_UNSUPPORTED The operation is un-supported.
44 IncrementMonotonicCounter (
49 return EFI_UNSUPPORTED
;