diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 06:59:25 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-27 06:59:25 +0000 |
commit | 13c310654c058ae70f8e95b9a47f03fc9d42c7da (patch) | |
tree | fbb9237cca2279246bfebbbdc5aafbe183365f27 /MdePkg/Include/Base.h | |
parent | 88a19367979a28e41e88ef2c9637a0f41d1c3bc6 (diff) | |
download | edk2-platforms-13c310654c058ae70f8e95b9a47f03fc9d42c7da.tar.xz |
added EFI_SIGNATURE_XX in Base.h, and updated the industry header files to use them.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6252 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Base.h')
-rw-r--r-- | MdePkg/Include/Base.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index fa6d0d5df2..8ddb52a5ac 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -1,5 +1,4 @@ /** @file
-
Root include file for Mde Package Base type modules
This is the include file for any module of type base. Base modules only use
@@ -282,5 +281,13 @@ typedef INTN RETURN_STATUS; #define RETURN_WARN_WRITE_FAILURE ENCODE_WARNING (3)
#define RETURN_WARN_BUFFER_TOO_SMALL ENCODE_WARNING (4)
+//
+// Define macros to build data structure signatures from characters.
+//
+#define SIGNATURE_16(A, B) ((A) | (B << 8))
+#define SIGNATURE_32(A, B, C, D) (SIGNATURE_16 (A, B) | (SIGNATURE_16 (C, D) << 16))
+#define SIGNATURE_64(A, B, C, D, E, F, G, H) \
+ (SIGNATURE_32 (A, B, C, D) | ((UINT64) (SIGNATURE_32 (E, F, G, H)) << 32))
+
#endif
|