summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-28 23:53:41 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-28 23:53:41 +0000
commit2bf0d83532cd830560fd6a7e9ac0409b08f1e7e7 (patch)
treecab45f2c25d3faabea7de11306a964257523ee12 /MdePkg
parent52302d4dee589a5df43a464420c9fe68ba83937d (diff)
downloadedk2-platforms-2bf0d83532cd830560fd6a7e9ac0409b08f1e7e7.tar.xz
Add the fixed checksum value 0xAA of FFS header according to the latest PI spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10124 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Pi/PiFirmwareFile.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/MdePkg/Include/Pi/PiFirmwareFile.h b/MdePkg/Include/Pi/PiFirmwareFile.h
index 6b61de1bd3..12e80fdd67 100644
--- a/MdePkg/Include/Pi/PiFirmwareFile.h
+++ b/MdePkg/Include/Pi/PiFirmwareFile.h
@@ -1,7 +1,7 @@
/** @file
The firmware file related definitions in PI.
- Copyright (c) 2006 - 2009, Intel Corporation
+ Copyright (c) 2006 - 2010, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -38,7 +38,7 @@ typedef union {
/// and the checksum is calculated such that the entire file sums to zero.
/// If the FFS_ATTRIB_CHECKSUM bit of the Attributes field is cleared to zero,
/// the IntegrityCheck.Checksum.File field must be initialized with a value of
- /// 0x55AA. The IntegrityCheck.Checksum.File field is valid any time the
+ /// 0xAA. The IntegrityCheck.Checksum.File field is valid any time the
/// EFI_FILE_DATA_VALID bit is set in the State field.
///
UINT8 File;
@@ -49,6 +49,12 @@ typedef union {
UINT16 Checksum16;
} EFI_FFS_INTEGRITY_CHECK;
+///
+/// FFS_FIXED_CHECKSUM is the checksum value used when the
+/// FFS_ATTRIB_CHECKSUM attribute bit is clear
+///
+#define FFS_FIXED_CHECKSUM 0xAA
+
typedef UINT8 EFI_FV_FILETYPE;
typedef UINT8 EFI_FFS_FILE_ATTRIBUTES;
typedef UINT8 EFI_FFS_FILE_STATE;