]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Rollback r17113.
authorHao Wu <hao.a.wu@intel.com>
Fri, 3 Apr 2015 05:23:13 +0000 (05:23 +0000)
committerhwu1225 <hwu1225@Edk2>
Fri, 3 Apr 2015 05:23:13 +0000 (05:23 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17114 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Guid/FmpCapsule.h
MdePkg/Include/Guid/SystemResourceTable.h [deleted file]
MdePkg/Include/Protocol/FirmwareManagement.h
MdePkg/MdePkg.dec

index 35bc9ebf632eba8facc04f30b174dd74a1d1f278..4c358b82bb6d08891baad1887c3f21b2166a1b8b 100644 (file)
@@ -2,14 +2,14 @@
   Guid & data structure used for Delivering Capsules Containing Updates to Firmware\r
   Management Protocol\r
 \r
-  Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution. The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials                          \r
+  are licensed and made available under the terms and conditions of the BSD License         \r
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
 \r
   @par Revision Reference:\r
   GUIDs defined in UEFI 2.4 spec.\r
@@ -35,7 +35,7 @@ typedef struct {
 \r
   ///\r
   /// The number of drivers included in the capsule and the number of corresponding\r
-  /// offsets stored in ItemOffsetList array.\r
+  /// offsets stored in ItemOffsetList array. \r
   ///\r
   UINT16 EmbeddedDriverCount;\r
 \r
@@ -56,7 +56,7 @@ typedef struct {
   UINT32   Version;\r
 \r
   ///\r
-  /// Used to identify device firmware targeted by this update. This guid is matched by\r
+  /// Used to identifiy device firmware targeted by this update. This guid is matched by\r
   /// system firmware against ImageTypeId field within a EFI_FIRMWARE_IMAGE_DESCRIPTOR\r
   ///\r
   EFI_GUID UpdateImageTypeId;\r
@@ -73,25 +73,16 @@ typedef struct {
   UINT32   UpdateImageSize;\r
 \r
   ///\r
-  /// Size of the VendorCode bytes which optionally immediately follow binary update image in the capsule\r
+  ///Size of the VendorCode bytes which optionally immediately follow binary update image in the capsule\r
   ///\r
   UINT32   UpdateVendorCodeSize;\r
-\r
-  ///\r
-  /// The HardwareInstance to target with this update. If value is zero it means match all\r
-  /// HardwareInstances. This field allows update software to target only a single device in\r
-  /// cases where there are more than one device with the same ImageTypeId GUID.\r
-  /// This header is outside the signed data of the Authentication Info structure and\r
-  /// therefore can be modified without changing the Auth data.\r
-  ///\r
-  UINT64   UpdateHardwareInstance;\r
 } EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER;\r
 \r
 #pragma pack()\r
 \r
 \r
-#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION       0x00000001\r
-#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000002\r
+#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION       0x00000001  \r
+#define EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION 0x00000001\r
 \r
 extern EFI_GUID gEfiFmpCapsuleGuid;\r
 \r
diff --git a/MdePkg/Include/Guid/SystemResourceTable.h b/MdePkg/Include/Guid/SystemResourceTable.h
deleted file mode 100644 (file)
index a77cb92..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-/** @file\r
-  Guid & data structure used for EFI System Resource Table (ESRT)\r
-\r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution. The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-  @par Revision Reference:\r
-  GUIDs defined in UEFI 2.5 spec.\r
-\r
-**/\r
-\r
-\r
-#ifndef _SYSTEM_RESOURCE_TABLE_H__\r
-#define _SYSTEM_RESOURCE_TABLE_H__\r
-\r
-#define EFI_SYSTEM_RESOURCE_TABLE_GUID \\r
-  { \\r
-    0xb122a263, 0x3661, 0x4f68, {0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80 } \\r
-  }\r
-\r
-///\r
-/// Current Entry Version\r
-///\r
-#define EFI_SYSTEM_RESOURCE_TABLE_FIRMWARE_RESOURCE_VERSION  1\r
-\r
-///\r
-/// Firmware Type Definitions\r
-///\r
-#define ESRT_FW_TYPE_UNKNOWN         0x00000000\r
-#define ESRT_FW_TYPE_SYSTEMFIRMWARE  0x00000001\r
-#define ESRT_FW_TYPE_DEVICEFIRMWARE  0x00000002\r
-#define ESRT_FW_TYPE_UEFIDRIVER      0x00000003\r
-\r
-///\r
-/// Last Attempt Status Values\r
-///\r
-#define LAST_ATTEMPT_STATUS_SUCCESS                       0x00000000\r
-#define LAST_ATTEMPT_STATUS_ERROR_UNSUCCESSFUL            0x00000001\r
-#define LAST_ATTEMPT_STATUS_ERROR_INSUFFICIENT_RESOURCES  0x00000002\r
-#define LAST_ATTEMPT_STATUS_ERROR_INCORRECT_VERSION       0x00000003\r
-#define LAST_ATTEMPT_STATUS_ERROR_INVALID_FORMAT          0x00000004\r
-#define LAST_ATTEMPT_STATUS_ERROR_AUTH_ERROR              0x00000005\r
-#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC              0x00000006\r
-#define LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT            0x00000007\r
-\r
-typedef struct {\r
-  ///\r
-  /// The firmware class field contains a GUID that identifies a firmware component\r
-  /// that can be updated via UpdateCapsule(). This GUID must be unique within all\r
-  /// entries of the ESRT.\r
-  ///\r
-  EFI_GUID                   FwClass;\r
-  ///\r
-  /// Identifies the type of firmware resource.\r
-  ///\r
-  UINT32                     FwType;\r
-  ///\r
-  /// The firmware version field represents the current version of the firmware\r
-  /// resource, value must always increase as a larger number represents a newer\r
-  /// version.\r
-  ///\r
-  UINT32                     FwVersion;\r
-  ///\r
-  /// The lowest firmware resource version to which a firmware resource can be\r
-  /// rolled back for the given system/device. Generally this is used to protect\r
-  /// against known and fixed security issues.\r
-  ///\r
-  UINT32                     LowestSupportedFwVersion;\r
-  ///\r
-  /// The capsule flags field contains the CapsuleGuid flags (bits 0- 15) as defined\r
-  /// in the EFI_CAPSULE_HEADER that will be set in the capsule header.\r
-  ///\r
-  UINT32                     CapsuleFlags;\r
-  ///\r
-  /// The last attempt version field describes the last firmware version for which\r
-  /// an update was attempted (uses the same format as Firmware Version).\r
-  /// Last Attempt Version is updated each time an UpdateCapsule() is attempted for\r
-  /// an ESRT entry and is preserved across reboots (non-volatile). However, in\r
-  /// cases where the attempt version is not recorded due to limitations in the\r
-  /// update process, the field shall set to zero after a failed update. Similarly,\r
-  /// in the case of a removable device, this value is set to 0 in cases where the\r
-  /// device has not been updated since being added to the system.\r
-  ///\r
-  UINT32                     LastAttemptVersion;\r
-  ///\r
-  /// The last attempt status field describes the result of the last firmware update\r
-  /// attempt for the firmware resource entry.\r
-  /// LastAttemptStatus is updated each time an UpdateCapsule() is attempted for an\r
-  /// ESRT entry and is preserved across reboots (non-volatile).\r
-  /// If a firmware update has never been attempted or is unknown, for example after\r
-  /// fresh insertion of a removable device, LastAttemptStatus must be set to Success.\r
-  ///\r
-  UINT32                     LastAttemptStatus;\r
-} EFI_SYSTEM_RESOURCE_ENTRY;\r
-\r
-typedef struct {\r
-  ///\r
-  /// The number of firmware resources in the table, must not be zero.\r
-  ///\r
-  UINT32                     FwResourceCount;\r
-  ///\r
-  /// The maximum number of resource array entries that can be within the table\r
-  /// without reallocating the table, must not be zero.\r
-  ///\r
-  UINT32                     FwResourceCountMax;\r
-  ///\r
-  /// The version of the EFI_SYSTEM_RESOURCE_ENTRY entities used in this table.\r
-  /// This field should be set to 1.\r
-  ///\r
-  UINT64                     FwResourceVersion;\r
-  ///\r
-  /// Array of EFI_SYSTEM_RESOURCE_ENTRY\r
-  ///\r
-  //EFI_SYSTEM_RESOURCE_ENTRY  Entries[];\r
-} EFI_SYSTEM_RESOURCE_TABLE;\r
-\r
-extern EFI_GUID gEfiSystemResourceTableGuid;\r
-\r
-#endif\r
index 3fc10b877002e9fcbb1b07a1ed7e326f3bf20700..7ba6a7aa16c2c9f9e0fb8090f9438dd7540096b4 100644 (file)
@@ -1,25 +1,25 @@
 /** @file\r
   UEFI Firmware Management Protocol definition\r
-  Firmware Management Protocol provides an abstraction for device to provide firmware\r
-  management support. The base requirements for managing device firmware images include\r
+  Firmware Management Protocol provides an abstraction for device to provide firmware \r
+  management support. The base requirements for managing device firmware images include \r
   identifying firmware image revision level and programming the image into the device.\r
 \r
-  GetImageInfo() is the only required function. GetImage(), SetImage(),\r
-  CheckImage(), GetPackageInfo(), and SetPackageInfo() shall return\r
+  GetImageInfo() is the only required function. GetImage(), SetImage(), \r
+  CheckImage(), GetPackageInfo(), and SetPackageInfo() shall return \r
   EFI_UNSUPPORTED if not supported by the driver.\r
+    \r
+  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.<BR>  \r
+  This program and the accompanying materials                          \r
+  are licensed and made available under the terms and conditions of the BSD License         \r
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \r
 \r
-  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
-  Copyright (c) 2013 - 2014, Hewlett-Packard Development Company, L.P.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution. The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.    \r
 \r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-  @par Revision Reference:\r
-  This Protocol is introduced in UEFI Specification 2.3\r
+  @par Revision Reference:          \r
+  This Protocol is introduced in UEFI Specification 2.3      \r
 \r
 **/\r
 \r
@@ -38,85 +38,59 @@ typedef struct _EFI_FIRMWARE_MANAGEMENT_PROTOCOL EFI_FIRMWARE_MANAGEMENT_PROTOCO
 /// EFI_FIRMWARE_IMAGE_DESCRIPTOR\r
 ///\r
 typedef struct {\r
-  ///\r
-  /// A unique number identifying the firmware image within the device. The number is\r
+  /// \r
+  /// A unique number identifying the firmware image within the device.  The number is \r
   /// between 1 and DescriptorCount.\r
-  ///\r
+  /// \r
   UINT8                            ImageIndex;\r
   ///\r
-  /// A unique GUID identifying the firmware image type.\r
-  ///\r
+  /// A unique number identifying the firmware image type.  \r
+  /// \r
   EFI_GUID                         ImageTypeId;\r
-  ///\r
-  /// A unique number identifying the firmware image.\r
-  ///\r
+  /// \r
+  /// A unique number identifying the firmware image. \r
+  /// \r
   UINT64                           ImageId;\r
-  ///\r
-  /// A pointer to a null-terminated string representing the firmware image name.\r
-  ///\r
+  /// \r
+  /// A pointer to a null-terminated string representing the firmware image name.  \r
+  /// \r
   CHAR16                           *ImageIdName;\r
-  ///\r
-  /// Identifies the version of the device firmware. The format is vendor specific and new\r
+  /// \r
+  /// Identifies the version of the device firmware. The format is vendor specific and new \r
   /// version must have a greater value than an old version.\r
-  ///\r
+  /// \r
   UINT32                           Version;\r
-  ///\r
+  /// \r
   /// A pointer to a null-terminated string representing the firmware image version name.\r
-  ///\r
+  /// \r
   CHAR16                           *VersionName;\r
-  ///\r
-  /// Size of the image in bytes. If size=0, then only ImageIndex and ImageTypeId are valid.\r
-  ///\r
+  /// \r
+  /// Size of the image in bytes.  If size=0, then only ImageIndex and ImageTypeId are valid.\r
+  /// \r
   UINTN                            Size;\r
-  ///\r
-  /// Image attributes that are supported by this device. See 'Image Attribute Definitions'\r
-  /// for possible returned values of this parameter. A value of 1 indicates the attribute is\r
-  /// supported and the current setting value is indicated in AttributesSetting. A\r
-  /// value of 0 indicates the attribute is not supported and the current setting value in\r
+  /// \r
+  /// Image attributes that are supported by this device.  See 'Image Attribute Definitions' \r
+  /// for possible returned values of this parameter.  A value of 1 indicates the attribute is \r
+  /// supported and the current setting value is indicated in AttributesSetting.  A \r
+  /// value of 0 indicates the attribute is not supported and the current setting value in \r
   /// AttributesSetting is meaningless.\r
-  ///\r
+  /// \r
   UINT64                           AttributesSupported;\r
-  ///\r
-  /// Image attributes. See 'Image Attribute Definitions' for possible returned values of\r
+  /// \r
+  /// Image attributes.  See 'Image Attribute Definitions' for possible returned values of \r
   /// this parameter.\r
-  ///\r
+  /// \r
   UINT64                           AttributesSetting;\r
-  ///\r
-  /// Image compatibilities. See 'Image Compatibility Definitions' for possible returned\r
+  /// \r
+  /// Image compatibilities.  See 'Image Compatibility Definitions' for possible returned \r
   /// values of this parameter.\r
-  ///\r
+  /// \r
   UINT64                           Compatibilities;\r
   ///\r
   /// Describes the lowest ImageDescriptor version that the device will accept. Only\r
   /// present in version 2 or higher.\r
   ///\r
   UINT32                           LowestSupportedImageVersion;\r
-  ///\r
-  /// Describes the version that was last attempted to update. If no update attempted the\r
-  /// value will be 0. If the update attempted was improperly formatted and no version\r
-  /// number was available then the value will be zero. Only present in version 3 or higher.\r
-  UINT32                           LastAttemptVersion;\r
-  ///\r
-  /// Describes the status that was last attempted to update. If no update has been attempted\r
-  /// the value will be LAST_ATTEMPT_STATUS_SUCCESS. Only present in version 3 or higher.\r
-  ///\r
-  UINT32                           LastAttemptStatus;\r
-  ///\r
-  /// An optional number to identify the unique hardware instance within the system for\r
-  /// devices that may have multiple instances (Example: a plug in pci network card). This\r
-  /// number must be unique within the namespace of the ImageTypeId GUID and\r
-  /// ImageIndex. For FMP instances that have multiple descriptors for a single\r
-  /// hardware instance, all descriptors must have the same HardwareInstance value.\r
-  /// This number must be consistent between boots and should be based on some sort of\r
-  /// hardware identified unique id (serial number, etc) whenever possible. If a hardware\r
-  /// based number is not available the FMP provider may use some other characteristic\r
-  /// such as device path, bus/dev/function, slot num, etc for generating the\r
-  /// HardwareInstance. For implementations that will never have more than one\r
-  /// instance a zero can be used. A zero means the FMP provider is not able to determine a\r
-  /// unique hardware instance number or a hardware instance number is not needed. Only\r
-  /// present in version 3 or higher.\r
-  ///\r
-  UINT64                           HardwareInstance;\r
 } EFI_FIRMWARE_IMAGE_DESCRIPTOR;\r
 \r
 \r
@@ -124,26 +98,26 @@ typedef struct {
 // Image Attribute Definitions\r
 //\r
 ///\r
-/// The attribute IMAGE_ATTRIBUTE_IMAGE_UPDATABLE indicates this device supports firmware\r
+/// The attribute IMAGE_ATTRIBUTE_IMAGE_UPDATABLE indicates this device supports firmware \r
 /// image update.\r
 ///\r
 #define    IMAGE_ATTRIBUTE_IMAGE_UPDATABLE         0x0000000000000001\r
 ///\r
-/// The attribute IMAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is required\r
-/// for the new firmware image to take effect after a firmware update. The device is the device hosting\r
+/// The attribute IMAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is required \r
+/// for the new firmware image to take effect after a firmware update.  The device is the device hosting \r
 /// the firmware image.\r
-///\r
+/// \r
 #define    IMAGE_ATTRIBUTE_RESET_REQUIRED          0x0000000000000002\r
 ///\r
-/// The attribute IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication is\r
-/// required to perform the following image operations: GetImage(), SetImage(), and\r
+/// The attribute IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication is \r
+/// required to perform the following image operations: GetImage(), SetImage(), and \r
 /// CheckImage(). See 'Image Attribute - Authentication'.\r
-///\r
+/// \r
 #define    IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED 0x0000000000000004\r
 ///\r
-/// The attribute IMAGE_ATTRIBUTE_IN_USE indicates the current state of the firmware image.\r
-/// This distinguishes firmware images in a device that supports redundant images.\r
-///\r
+/// The attribute IMAGE_ATTRIBUTE_IN_USE indicates the current state of the firmware image.  \r
+/// This distinguishes firmware images in a device that supports redundant images.  \r
+/// \r
 #define    IMAGE_ATTRIBUTE_IN_USE                  0x0000000000000008\r
 ///\r
 /// The attribute IMAGE_ATTRIBUTE_UEFI_IMAGE indicates that this image is an EFI compatible image.\r
@@ -155,7 +129,7 @@ typedef struct {
 // Image Compatibility Definitions\r
 //\r
 /// Values from 0x0000000000000002 thru 0x000000000000FFFF are reserved for future assignments.\r
-/// Values from 0x0000000000010000 thru 0xFFFFFFFFFFFFFFFF are used by firmware vendor for\r
+/// Values from 0x0000000000010000 thru 0xFFFFFFFFFFFFFFFF are used by firmware vendor for \r
 /// compatibility check.\r
 ///\r
 #define   IMAGE_COMPATIBILITY_CHECK_SUPPORTED      0x0000000000000001\r
@@ -163,7 +137,7 @@ typedef struct {
 ///\r
 /// Descriptor Version exposed by GetImageInfo() function\r
 ///\r
-#define   EFI_FIRMWARE_IMAGE_DESCRIPTOR_VERSION   3\r
+#define   EFI_FIRMWARE_IMAGE_DESCRIPTOR_VERSION   2\r
 \r
 \r
 ///\r
@@ -171,14 +145,14 @@ typedef struct {
 ///\r
 typedef struct {\r
   ///\r
-  /// It is included in the signature of AuthInfo. It is used to ensure freshness/no replay.\r
-  /// It is incremented during each firmware image operation.\r
-  ///\r
+  /// It is included in the signature of AuthInfo.  It is used to ensure freshness/no replay.   \r
+  /// It is incremented during each firmware image operation.  \r
+  ///                                \r
   UINT64                                  MonotonicCount;\r
   ///\r
-  /// Provides the authorization for the firmware image operations. It is a signature across\r
-  /// the image data and the Monotonic Count value. Caller uses the private key that is\r
-  /// associated with a public key that has been provisioned via the key exchange.\r
+  /// Provides the authorization for the firmware image operations.  It is a signature across \r
+  /// the image data and the Monotonic Count value.  Caller uses the private key that is \r
+  /// associated with a public key that has been provisioned via the key exchange.  \r
   /// Because this is defined as a signature, WIN_CERTIFICATE_UEFI_GUID.CertType must\r
   /// be EFI_CERT_TYPE_PKCS7_GUID.\r
   ///\r
@@ -190,24 +164,24 @@ typedef struct {
 // ImageUpdatable Definitions\r
 //\r
 ///\r
-/// IMAGE_UPDATABLE_VALID indicates SetImage() will accept the new image and update the\r
+/// IMAGE_UPDATABLE_VALID indicates SetImage() will accept the new image and update the \r
 /// device with the new image.\r
 ///\r
 #define  IMAGE_UPDATABLE_VALID                     0x0000000000000001\r
 ///\r
-/// IMAGE_UPDATABLE_INVALID indicates SetImage() will reject the new image. No additional\r
+/// IMAGE_UPDATABLE_INVALID indicates SetImage() will reject the new image. No additional \r
 /// information is provided for the rejection.\r
 ///\r
 #define  IMAGE_UPDATABLE_INVALID                   0x0000000000000002\r
 ///\r
-/// IMAGE_UPDATABLE_INVALID_TYPE indicates SetImage() will reject the new image. The\r
+/// IMAGE_UPDATABLE_INVALID_TYPE indicates SetImage() will reject the new image. The \r
 /// rejection is due to the new image is not a firmware image recognized for this device.\r
 ///\r
 #define  IMAGE_UPDATABLE_INVALID_TYPE              0x0000000000000004\r
 ///\r
-/// IMAGE_UPDATABLE_INVALID_OLD indicates SetImage() will reject the new image. The\r
+/// IMAGE_UPDATABLE_INVALID_OLD indicates SetImage() will reject the new image. The \r
 /// rejection is due to the new image version is older than the current firmware image\r
-/// version in the device. The device firmware update policy does not support firmware\r
+/// version in the device. The device firmware update policy does not support firmware \r
 /// version downgrade.\r
 ///\r
 #define  IMAGE_UPDATABLE_INVALID_OLD               0x0000000000000008\r
@@ -217,26 +191,26 @@ typedef struct {
 // Package Attribute Definitions\r
 //\r
 ///\r
-/// The attribute PACKAGE_ATTRIBUTE_VERSION_UPDATABLE indicates this device supports the\r
+/// The attribute PACKAGE_ATTRIBUTE_VERSION_UPDATABLE indicates this device supports the \r
 /// update of the firmware package version.\r
 ///\r
 #define  PACKAGE_ATTRIBUTE_VERSION_UPDATABLE       0x0000000000000001\r
 ///\r
-/// The attribute PACKAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is\r
+/// The attribute PACKAGE_ATTRIBUTE_RESET_REQUIRED indicates a reset of the device is \r
 /// required for the new package info to take effect after an update.\r
 ///\r
 #define  PACKAGE_ATTRIBUTE_RESET_REQUIRED          0x0000000000000002\r
 ///\r
-/// The attribute PACKAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication\r
+/// The attribute PACKAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED indicates authentication \r
 /// is required to update the package info.\r
 ///\r
 #define  PACKAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED 0x0000000000000004\r
 \r
-/**\r
+/** \r
   Callback funtion to report the process of the firmware updating.\r
 \r
   @param[in]  Completion    A value between 1 and 100 indicating the current completion\r
-                            progress of the firmware update. Completion progress is\r
+                            progress of the firmware update. Completion progress is \r
                             reported as from 1 to 100 percent. A value of 0 is used by\r
                             the driver to indicate that progress reporting is not supported.\r
 \r
@@ -258,15 +232,15 @@ EFI_STATUS
   The saved copy could later been used, for example, in firmware image recovery or rollback.\r
 \r
   @param[in]      This               A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.\r
-  @param[in, out] ImageInfoSize      A pointer to the size, in bytes, of the ImageInfo buffer.\r
+  @param[in, out] ImageInfoSize      A pointer to the size, in bytes, of the ImageInfo buffer. \r
                                      On input, this is the size of the buffer allocated by the caller.\r
-                                     On output, it is the size of the buffer returned by the firmware\r
+                                     On output, it is the size of the buffer returned by the firmware \r
                                      if the buffer was large enough, or the size of the buffer needed\r
                                      to contain the image(s) information if the buffer was too small.\r
   @param[in, out] ImageInfo          A pointer to the buffer in which firmware places the current image(s)\r
                                      information. The information is an array of EFI_FIRMWARE_IMAGE_DESCRIPTORs.\r
   @param[out]     DescriptorVersion  A pointer to the location in which firmware returns the version number\r
-                                     associated with the EFI_FIRMWARE_IMAGE_DESCRIPTOR.\r
+                                     associated with the EFI_FIRMWARE_IMAGE_DESCRIPTOR. \r
   @param[out]     DescriptorCount    A pointer to the location in which firmware returns the number of\r
                                      descriptors or firmware images within this device.\r
   @param[out]     DescriptorSize     A pointer to the location in which firmware returns the size, in bytes,\r
@@ -278,17 +252,17 @@ EFI_STATUS
                                      is to be performed using PackageVersionName. A value of 0xFFFFFFFD indicates\r
                                      that package version update is in progress.\r
   @param[out]     PackageVersionName A pointer to a pointer to a null-terminated string representing the\r
-                                     package version name. The buffer is allocated by this function with\r
+                                     package version name. The buffer is allocated by this function with \r
                                      AllocatePool(), and it is the caller's responsibility to free it with a call\r
                                      to FreePool().\r
 \r
   @retval EFI_SUCCESS                The device was successfully updated with the new image.\r
-  @retval EFI_BUFFER_TOO_SMALL       The ImageInfo buffer was too small. The current buffer size\r
-                                     needed to hold the image(s) information is returned in ImageInfoSize.\r
+  @retval EFI_BUFFER_TOO_SMALL       The ImageInfo buffer was too small. The current buffer size \r
+                                     needed to hold the image(s) information is returned in ImageInfoSize.                                               \r
   @retval EFI_INVALID_PARAMETER      ImageInfoSize is NULL.\r
   @retval EFI_DEVICE_ERROR           Valid information could not be returned. Possible corrupted image.\r
 \r
-**/\r
+**/                         \r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE_INFO)(\r
@@ -303,7 +277,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Retrieves a copy of the current firmware image of the device.\r
+  Retrieves a copy of the current firmware image of the device. \r
 \r
   This function allows a copy of the current firmware image to be created and saved.\r
   The saved copy could later been used, for example, in firmware image recovery or rollback.\r
@@ -316,15 +290,15 @@ EFI_STATUS
                                  On return, points to the length of the image, in bytes.\r
 \r
   @retval EFI_SUCCESS            The device was successfully updated with the new image.\r
-  @retval EFI_BUFFER_TOO_SMALL   The buffer specified by ImageSize is too small to hold the\r
-                                 image. The current buffer size needed to hold the image is returned\r
+  @retval EFI_BUFFER_TOO_SMALL   The buffer specified by ImageSize is too small to hold the \r
+                                 image. The current buffer size needed to hold the image is returned \r
                                  in ImageSize.\r
   @retval EFI_INVALID_PARAMETER  The Image was NULL.\r
   @retval EFI_NOT_FOUND          The current image is not copied to the buffer.\r
   @retval EFI_UNSUPPORTED        The operation is not supported.\r
   @retval EFI_SECURITY_VIOLATIO  The operation could not be performed due to an authentication failure.\r
 \r
-**/\r
+**/                         \r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_GET_IMAGE)(\r
@@ -341,20 +315,20 @@ EFI_STATUS
   This function returns EFI_UNSUPPORTED if the firmware image is not updatable.\r
   If the firmware image is updatable, the function should perform the following minimal validations\r
   before proceeding to do the firmware image update.\r
-  - Validate the image authentication if image has attribute\r
-    IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED. The function returns\r
+  - Validate the image authentication if image has attribute \r
+    IMAGE_ATTRIBUTE_AUTHENTICATION_REQUIRED.  The function returns \r
     EFI_SECURITY_VIOLATION if the validation fails.\r
-  - Validate the image is a supported image for this device. The function returns EFI_ABORTED if\r
-    the image is unsupported. The function can optionally provide more detailed information on\r
+  - Validate the image is a supported image for this device.  The function returns EFI_ABORTED if \r
+    the image is unsupported.  The function can optionally provide more detailed information on \r
     why the image is not a supported image.\r
-  - Validate the data from VendorCode if not null. Image validation must be performed before\r
-    VendorCode data validation. VendorCode data is ignored or considered invalid if image\r
-    validation failed. The function returns EFI_ABORTED if the data is invalid.\r
-\r
-  VendorCode enables vendor to implement vendor-specific firmware image update policy. Null if\r
-  the caller did not specify the policy or use the default policy. As an example, vendor can implement\r
-  a policy to allow an option to force a firmware image update when the abort reason is due to the new\r
-  firmware image version is older than the current firmware image version or bad image checksum.\r
+  - Validate the data from VendorCode if not null.  Image validation must be performed before \r
+    VendorCode data validation.  VendorCode data is ignored or considered invalid if image \r
+    validation failed.  The function returns EFI_ABORTED if the data is invalid.\r
+  \r
+  VendorCode enables vendor to implement vendor-specific firmware image update policy.  Null if \r
+  the caller did not specify the policy or use the default policy.  As an example, vendor can implement \r
+  a policy to allow an option to force a firmware image update when the abort reason is due to the new \r
+  firmware image version is older than the current firmware image version or bad image checksum.  \r
   Sensitive operations such as those wiping the entire firmware image and render the device to be\r
   non-functional should be encoded in the image itself rather than passed with the VendorCode.\r
   AbortReason enables vendor to have the option to provide a more detailed description of the abort\r
@@ -365,11 +339,11 @@ EFI_STATUS
                                  The number is between 1 and DescriptorCount.\r
   @param[in]  Image              Points to the new image.\r
   @param[in]  ImageSize          Size of the new image in bytes.\r
-  @param[in]  VendorCode         This enables vendor to implement vendor-specific firmware image update policy.\r
+  @param[in]  VendorCode         This enables vendor to implement vendor-specific firmware image update policy.  \r
                                  Null indicates the caller did not specify the policy or use the default policy.\r
   @param[in]  Progress           A function used by the driver to report the progress of the firmware update.\r
   @param[out] AbortReason        A pointer to a pointer to a null-terminated string providing more\r
-                                 details for the aborted operation. The buffer is allocated by this function\r
+                                 details for the aborted operation. The buffer is allocated by this function \r
                                  with AllocatePool(), and it is the caller's responsibility to free it with a\r
                                  call to FreePool().\r
 \r
@@ -379,7 +353,7 @@ EFI_STATUS
   @retval EFI_UNSUPPORTED        The operation is not supported.\r
   @retval EFI_SECURITY_VIOLATIO  The operation could not be performed due to an authentication failure.\r
 \r
-**/\r
+**/                         \r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_SET_IMAGE)(\r
@@ -395,7 +369,7 @@ EFI_STATUS
 /**\r
   Checks if the firmware image is valid for the device.\r
 \r
-  This function allows firmware update application to validate the firmware image without\r
+  This function allows firmware update application to validate the firmware image without \r
   invoking the SetImage() first.\r
 \r
   @param[in]  This               A pointer to the EFI_FIRMWARE_MANAGEMENT_PROTOCOL instance.\r
@@ -404,14 +378,14 @@ EFI_STATUS
   @param[in]  Image              Points to the new image.\r
   @param[in]  ImageSize          Size of the new image in bytes.\r
   @param[out] ImageUpdatable     Indicates if the new image is valid for update. It also provides,\r
-                                 if available, additional information if the image is invalid.\r
+                                 if available, additional information if the image is invalid. \r
 \r
   @retval EFI_SUCCESS            The image was successfully checked.\r
   @retval EFI_INVALID_PARAMETER  The Image was NULL.\r
   @retval EFI_UNSUPPORTED        The operation is not supported.\r
   @retval EFI_SECURITY_VIOLATIO  The operation could not be performed due to an authentication failure.\r
 \r
-**/\r
+**/                         \r
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_FIRMWARE_MANAGEMENT_PROTOCOL_CHECK_IMAGE)(\r
@@ -423,7 +397,7 @@ EFI_STATUS
   );\r
 \r
 /**\r
-  Returns information about the firmware package.\r
+  Returns information about the firmware package. \r
 \r
   This function returns package information.\r
 \r
@@ -442,8 +416,8 @@ EFI_STATUS
                                        package version name. A value of 0 indicates the device does not support\r
                                        update of package version name. Length is the number of Unicode characters,\r
                                        including the terminating null character.\r
-  @param[out] AttributesSupported      Package attributes that are supported by this device. See 'Package Attribute\r
-                                       Definitions' for possible returned values of this parameter. A value of 1\r
+  @param[out] AttributesSupported      Package attributes that are supported by this device. See 'Package Attribute \r
+                                       Definitions' for possible returned values of this parameter. A value of 1 \r
                                        indicates the attribute is supported and the current setting value is\r
                                        indicated in AttributesSetting. A value of 0 indicates the attribute is not\r
                                        supported and the current setting value in AttributesSetting is meaningless.\r
@@ -479,18 +453,18 @@ EFI_STATUS
   @param[in]  ImageSize          Size of the authentication image in bytes.\r
                                  0 if authentication is not required.\r
   @param[in]  VendorCode         This enables vendor to implement vendor-specific firmware\r
-                                 image update policy.\r
+                                 image update policy.  \r
                                  Null indicates the caller did not specify this policy or use\r
                                  the default policy.\r
   @param[in]  PackageVersion     The new package version.\r
   @param[in]  PackageVersionName A pointer to the new null-terminated Unicode string representing\r
-                                 the package version name.\r
-                                 The string length is equal to or less than the value returned in\r
+                                 the package version name. \r
+                                 The string length is equal to or less than the value returned in \r
                                  PackageVersionNameMaxLen.\r
 \r
   @retval EFI_SUCCESS            The device was successfully updated with the new package\r
                                  information.\r
-  @retval EFI_INVALID_PARAMETER  The PackageVersionName length is longer than the value\r
+  @retval EFI_INVALID_PARAMETER  The PackageVersionName length is longer than the value \r
                                  returned in PackageVersionNameMaxLen.\r
   @retval EFI_UNSUPPORTED        The operation is not supported.\r
   @retval EFI_SECURITY_VIOLATIO  The operation could not be performed due to an authentication failure.\r
@@ -511,7 +485,7 @@ EFI_STATUS
 /// EFI_FIRMWARE_MANAGEMENT_PROTOCOL\r
 /// The protocol for managing firmware provides the following services.\r
 /// - Get the attributes of the current firmware image. Attributes include revision level.\r
-/// - Get a copy of the current firmware image. As an example, this service could be used by a\r
+/// - Get a copy of the current firmware image. As an example, this service could be used by a \r
 ///   management application to facilitate a firmware roll-back.\r
 /// - Program the device with a firmware image supplied by the user.\r
 /// - Label all the firmware images within a device with a single version.\r
index a0e3f4890ca11e7d699c4d8de40a72c894820f14..494dfba0394b9e5c54a63f4831f21cec23f24126 100644 (file)
   gEfiAdapterInfoNetworkBootGuid      = { 0x1FBD2960, 0x4130, 0x41E5, {0x94, 0xAC, 0xD2, 0xCF, 0x03, 0x7F, 0xB3, 0x7C }}\r
   gEfiAdapterInfoSanMacAddressGuid    = { 0x114da5ef, 0x2cf1, 0x4e12, {0x9b, 0xbb, 0xc4, 0x70, 0xb5, 0x52, 0x5, 0xd9 }}\r
 \r
-  #\r
-  # GUIDs defined in UEFI2.5\r
-  #\r
-  ## Include/Guid/SystemResourceTable.h\r
-  gEfiSystemResourceTableGuid    = { 0xb122a263, 0x3661, 0x4f68, {0x99, 0x29, 0x78, 0xf8, 0xb0, 0xd6, 0x21, 0x80 }}\r
-\r
   #\r
   # GUID defined in PI1.0\r
   #\r