mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
https://bugzilla.tianocore.org/show_bug.cgi?id=801 Based on content from the following branch/commits: https://github.com/Microsoft/MS_UEFI/tree/share/MsCapsuleSupport Add the DisplayUpdateProgressLib class that is used to inform the user of progress during updates of firmware images in firmware devices. A platform specific instance of this library can be used to customize how the user is informed of progress. Add the EDK II Firmware Management Progress Protocol. This is an optional protocol that must be installed onto the same handle as a Firmware Management Protocol. This new protocol provides the color of a progress bar that allows different firmware devices to use different colors during a firmware update. It also provides a watchdog timer value in seconds that is armed each time the Progress() service passed into Firmware Management Protocol SetImage() is called. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
56 lines
1.8 KiB
C
56 lines
1.8 KiB
C
/** @file
|
|
EDK II Firmware Management Progress Protocol.
|
|
|
|
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
|
|
This program and the accompanying materials are licensed and made available under
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
|
The full text of the license may be found at
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
**/
|
|
|
|
#ifndef __EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL_H__
|
|
#define __EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL_H__
|
|
|
|
#include <Protocol/GraphicsOutput.h>
|
|
|
|
///
|
|
/// EDK II Firmware Management Progress Protocol GUID value
|
|
///
|
|
#define EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL_GUID \
|
|
{ \
|
|
0x1849bda2, 0x6952, 0x4e86, { 0xa1, 0xdb, 0x55, 0x9a, 0x3c, 0x47, 0x9d, 0xf1 } \
|
|
}
|
|
|
|
///
|
|
/// EDK II Firmware Management Progress Protocol structure
|
|
///
|
|
typedef struct {
|
|
///
|
|
/// The version of this structure. Initial version value is 0x00000001.
|
|
///
|
|
UINT32 Version;
|
|
///
|
|
/// The foreground color of a progress bar that is used by the Progress()
|
|
/// function that is passed into the Firmware Management Protocol SetImage()
|
|
/// service is called.
|
|
///
|
|
EFI_GRAPHICS_OUTPUT_BLT_PIXEL_UNION ProgressBarForegroundColor;
|
|
///
|
|
/// The time in seconds to arm the watchdog timer each time the Progress()
|
|
/// function passed into the Firmware Management Protocol SetImage() service
|
|
/// is called.
|
|
///
|
|
UINTN WatchdogSeconds;
|
|
} EDKII_FIRMWARE_MANAGEMENT_PROGRESS_PROTOCOL;
|
|
|
|
///
|
|
/// EDK II Firmware Management Progress Protocol GUID variable.
|
|
///
|
|
extern EFI_GUID gEdkiiFirmwareManagementProgressProtocolGuid;
|
|
|
|
#endif
|