FmpDependencyDeviceLib.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /** @file
  2. Null instance of FmpDependencyDeviceLib.
  3. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #include <PiDxe.h>
  7. #include <Library/FmpDependencyDeviceLib.h>
  8. /**
  9. Save dependency to Fmp device.
  10. @param[in] Depex Fmp dependency.
  11. @param[in] DepexSize Size, in bytes, of the Fmp dependency.
  12. @retval EFI_SUCCESS Save Fmp dependency succeeds.
  13. @retval EFI_UNSUPPORTED Save Fmp dependency is not supported.
  14. @retval Others Save Fmp dependency fails.
  15. **/
  16. EFI_STATUS
  17. EFIAPI
  18. SaveFmpDependency (
  19. IN EFI_FIRMWARE_IMAGE_DEP *Depex,
  20. IN UINT32 DepexSize
  21. )
  22. {
  23. return EFI_UNSUPPORTED;
  24. }
  25. /**
  26. Get dependency from the Fmp device.
  27. This caller is responsible for freeing the dependency buffer.
  28. @param[out] DepexSize Size, in bytes, of the dependency.
  29. @retval The pointer to dependency.
  30. @retval NULL
  31. **/
  32. EFI_FIRMWARE_IMAGE_DEP *
  33. EFIAPI
  34. GetFmpDependency (
  35. OUT UINT32 *DepexSize
  36. )
  37. {
  38. return NULL;
  39. }