]>
Commit | Line | Data |
---|---|---|
d21c2cd0 JW |
1 | /** @file\r |
2 | NULL RpmcLib instance for build purpose.\r | |
3 | \r | |
4 | Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-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 | |
6c8dd15c | 15 | @param[in] CounterIndex The RPMC index\r |
d21c2cd0 JW |
16 | @param[out] CounterValue A pointer to a buffer to store the RPMC value.\r |
17 | \r | |
18 | @retval EFI_SUCCESS The operation completed successfully.\r | |
19 | @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r | |
20 | @retval EFI_UNSUPPORTED The operation is un-supported.\r | |
21 | **/\r | |
22 | EFI_STATUS\r | |
23 | EFIAPI\r | |
24 | RequestMonotonicCounter (\r | |
6c8dd15c | 25 | IN UINT8 CounterIndex,\r |
d21c2cd0 JW |
26 | OUT UINT32 *CounterValue\r |
27 | )\r | |
28 | {\r | |
29 | ASSERT (FALSE);\r | |
30 | return EFI_UNSUPPORTED;\r | |
31 | }\r | |
32 | \r | |
33 | /**\r | |
34 | Increments the monotonic counter in the SPI flash device by 1.\r | |
35 | \r | |
6c8dd15c NM |
36 | @param[in] CounterIndex The RPMC index\r |
37 | \r | |
d21c2cd0 JW |
38 | @retval EFI_SUCCESS The operation completed successfully.\r |
39 | @retval EFI_DEVICE_ERROR A device error occurred while attempting to update the counter.\r | |
40 | @retval EFI_UNSUPPORTED The operation is un-supported.\r | |
41 | **/\r | |
42 | EFI_STATUS\r | |
43 | EFIAPI\r | |
44 | IncrementMonotonicCounter (\r | |
6c8dd15c | 45 | IN UINT8 CounterIndex\r |
d21c2cd0 JW |
46 | )\r |
47 | {\r | |
48 | ASSERT (FALSE);\r | |
49 | return EFI_UNSUPPORTED;\r | |
50 | }\r | |
51 | \r |