diff options
author | Hao Wu <hao.a.wu@intel.com> | 2015-04-28 07:28:27 +0000 |
---|---|---|
committer | hwu1225 <hwu1225@Edk2> | 2015-04-28 07:28:27 +0000 |
commit | 2ca32f8d90222a39a13bfca4a81bf028895fd521 (patch) | |
tree | 57c48e5e54ae3dc2e3bd1e2851551f284eb8fd4b /MdePkg/Include/Protocol | |
parent | d4225560494fe6dd1381896312792ad7a172b34c (diff) | |
download | edk2-platforms-2ca32f8d90222a39a13bfca4a81bf028895fd521.tar.xz |
MdePkg: Add ESRT Interface Definitions
Add EFI System Resource Table (ESRT) interface (API only).
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17235 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Protocol')
-rw-r--r-- | MdePkg/Include/Protocol/FirmwareManagement.h | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/MdePkg/Include/Protocol/FirmwareManagement.h b/MdePkg/Include/Protocol/FirmwareManagement.h index 7ba6a7aa16..c4191a9fe2 100644 --- a/MdePkg/Include/Protocol/FirmwareManagement.h +++ b/MdePkg/Include/Protocol/FirmwareManagement.h @@ -8,7 +8,7 @@ CheckImage(), GetPackageInfo(), and SetPackageInfo() shall return
EFI_UNSUPPORTED if not supported by the driver.
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -44,8 +44,8 @@ typedef struct { ///
UINT8 ImageIndex;
///
- /// A unique number identifying the firmware image type.
- ///
+ /// A unique GUID identifying the firmware image type.
+ ///
EFI_GUID ImageTypeId;
///
/// A unique number identifying the firmware image.
@@ -91,6 +91,32 @@ typedef struct { /// present in version 2 or higher.
///
UINT32 LowestSupportedImageVersion;
+ ///
+ /// Describes the version that was last attempted to update. If no update attempted the
+ /// value will be 0. If the update attempted was improperly formatted and no version
+ /// number was available then the value will be zero. Only present in version 3 or higher.
+ UINT32 LastAttemptVersion;
+ ///
+ /// Describes the status that was last attempted to update. If no update has been attempted
+ /// the value will be LAST_ATTEMPT_STATUS_SUCCESS. Only present in version 3 or higher.
+ ///
+ UINT32 LastAttemptStatus;
+ ///
+ /// An optional number to identify the unique hardware instance within the system for
+ /// devices that may have multiple instances (Example: a plug in pci network card). This
+ /// number must be unique within the namespace of the ImageTypeId GUID and
+ /// ImageIndex. For FMP instances that have multiple descriptors for a single
+ /// hardware instance, all descriptors must have the same HardwareInstance value.
+ /// This number must be consistent between boots and should be based on some sort of
+ /// hardware identified unique id (serial number, etc) whenever possible. If a hardware
+ /// based number is not available the FMP provider may use some other characteristic
+ /// such as device path, bus/dev/function, slot num, etc for generating the
+ /// HardwareInstance. For implementations that will never have more than one
+ /// instance a zero can be used. A zero means the FMP provider is not able to determine a
+ /// unique hardware instance number or a hardware instance number is not needed. Only
+ /// present in version 3 or higher.
+ ///
+ UINT64 HardwareInstance;
} EFI_FIRMWARE_IMAGE_DESCRIPTOR;
@@ -137,7 +163,7 @@ typedef struct { ///
/// Descriptor Version exposed by GetImageInfo() function
///
-#define EFI_FIRMWARE_IMAGE_DESCRIPTOR_VERSION 2
+#define EFI_FIRMWARE_IMAGE_DESCRIPTOR_VERSION 3
///
|