RpmcLibNull.c 1.2 KB

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