]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/Library/RpmcLibNull/RpmcLibNull.c
SecurityPkg: Apply uncrustify changes
[mirror_edk2.git] / SecurityPkg / Library / RpmcLibNull / RpmcLibNull.c
CommitLineData
d21c2cd0
JW
1/** @file\r
2 NULL RpmcLib instance for build purpose.\r
3\r
4Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
5SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9#include <Library/DebugLib.h>\r
10#include <Library/RpmcLib.h>\r
11\r
12/**\r
13 Requests the monotonic counter from the designated RPMC counter.\r
14\r
15 @param[out] CounterValue A pointer to a buffer to store the RPMC value.\r
16\r
17 @retval EFI_SUCCESS The operation completed successfully.\r
18 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r
19 @retval EFI_UNSUPPORTED The operation is un-supported.\r
20**/\r
21EFI_STATUS\r
22EFIAPI\r
23RequestMonotonicCounter (\r
24 OUT UINT32 *CounterValue\r
25 )\r
26{\r
27 ASSERT (FALSE);\r
28 return EFI_UNSUPPORTED;\r
29}\r
30\r
31/**\r
32 Increments the monotonic counter in the SPI flash device by 1.\r
33\r
34 @retval EFI_SUCCESS The operation completed successfully.\r
35 @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r
36 @retval EFI_UNSUPPORTED The operation is un-supported.\r
37**/\r
38EFI_STATUS\r
39EFIAPI\r
40IncrementMonotonicCounter (\r
e9d62eff 41 VOID\r
d21c2cd0
JW
42 )\r
43{\r
44 ASSERT (FALSE);\r
45 return EFI_UNSUPPORTED;\r
46}\r