diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-19 13:41:28 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-08-19 13:41:28 +0000 |
commit | 56bed2f41022afcbadecc9f2d537bd31c3d44cbc (patch) | |
tree | 628a9e4f7c3ebcc760bd7b88643242f696ec1ad6 | |
parent | 16cb6ecafea77cea519dcd3305320a7af8433c3f (diff) | |
download | edk2-platforms-56bed2f41022afcbadecc9f2d537bd31c3d44cbc.tar.xz |
1. Fix a UEFI errata to add UINT32 Reserved field in MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH to ensure all field are natural aligned. This is non-backward compatibility in binary level.
2. Swap the order of MEDIA_FW_VOL_FILEPATH_DEVICE_PATH and MEDIA_FW_VOL_DEVICE_PATH with the UEFI spec update.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9138 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/Protocol/DevicePath.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/MdePkg/Include/Protocol/DevicePath.h b/MdePkg/Include/Protocol/DevicePath.h index 8a6f339c16..e10f5ba2a5 100644 --- a/MdePkg/Include/Protocol/DevicePath.h +++ b/MdePkg/Include/Protocol/DevicePath.h @@ -879,34 +879,34 @@ typedef struct { ///
/// PIWG Firmware Volume Device Path SubType
///
-#define MEDIA_PIWG_FW_VOL_DP 0x7
+#define MEDIA_PIWG_FW_FILE_DP 0x06
///
-/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
+/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
///
typedef struct {
EFI_DEVICE_PATH_PROTOCOL Header;
///
- /// Firmware volume name.
+ /// Firmware file name
///
- EFI_GUID FvName;
-} MEDIA_FW_VOL_DEVICE_PATH;
+ EFI_GUID FvFileName;
+} MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
///
/// PIWG Firmware Volume Device Path SubType
///
-#define MEDIA_PIWG_FW_FILE_DP 0x6
+#define MEDIA_PIWG_FW_VOL_DP 0x07
///
-/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
+/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
///
typedef struct {
EFI_DEVICE_PATH_PROTOCOL Header;
///
- /// Firmware file name
+ /// Firmware volume name.
///
- EFI_GUID FvFileName;
-} MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
+ EFI_GUID FvName;
+} MEDIA_FW_VOL_DEVICE_PATH;
///
/// Media relative offset range device path
@@ -918,6 +918,7 @@ typedef struct { ///
typedef struct {
EFI_DEVICE_PATH_PROTOCOL Header;
+ UINT32 Reserved;
UINT64 StartingOffset;
UINT64 EndingOffset;
} MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;
|