]> git.proxmox.com Git - mirror_edk2.git/commit - SignedCapsulePkg/Include/Library/PlatformFlashAccessLib.h
SignedCapsulePkg/PlatformFlashAccessLib: Add progress API
authorMichael D Kinney <michael.d.kinney@intel.com>
Sat, 17 Mar 2018 02:16:59 +0000 (19:16 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Mon, 28 May 2018 16:30:10 +0000 (09:30 -0700)
commit550de36633fec97d4f7467c02a33b3217f440ae9
tree61877e06cdb44509f76508626e92a6537be1fc29
parent72b0a9bed93b68a2610fb30e86819399bdc9266c
SignedCapsulePkg/PlatformFlashAccessLib: Add progress API

https://bugzilla.tianocore.org/show_bug.cgi?id=801

Add a new API to the PlatformFlashAccessLib that passes
in an optional Progress() function along with a start and
end percentage to call the Progress() function with.
If the Progress() function is not NULL, then it is the
Progress() function that was passed into the Firmware
Management Protocol SetImage() services and is used
to update the user on the progress as a firmware device
is updated with a firmware image.

Implementations of the PlatformFlashAccessLib are
recommended to call the Progress() function as work
is performed to update to contents of a firmware
storage device.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
SignedCapsulePkg/Include/Library/PlatformFlashAccessLib.h
SignedCapsulePkg/Library/PlatformFlashAccessLibNull/PlatformFlashAccessLibNull.c