FmpDependencyDeviceLib.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /** @file
  2. Provides firmware device specific services to support saving dependency to
  3. firmware device and getting dependency from firmware device.
  4. Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef __FMP_DEPENDENCY_DEVICE_LIB__
  8. #define __FMP_DEPENDENCY_DEVICE_LIB__
  9. #include <PiDxe.h>
  10. #include <Protocol/FirmwareManagement.h>
  11. /**
  12. Save dependency to Fmp device.
  13. @param[in] Depex Fmp dependency.
  14. @param[in] DepexSize Size, in bytes, of the Fmp dependency.
  15. @retval EFI_SUCCESS Save Fmp dependency succeeds.
  16. @retval EFI_UNSUPPORTED Save Fmp dependency is not supported.
  17. @retval Others Save Fmp dependency fails.
  18. **/
  19. EFI_STATUS
  20. EFIAPI
  21. SaveFmpDependency (
  22. IN EFI_FIRMWARE_IMAGE_DEP *Depex,
  23. IN UINT32 DepexSize
  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. #endif