summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-01 05:32:09 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2011-12-01 05:32:09 +0000
commit209e6e3174d5889640c2e906f343799fd067cd55 (patch)
treef2b1eae8d3b87b245d607b30d2239264fc89de43 /SecurityPkg/Tcg
parent21e1018b1c741911deecd1f2b25319ea414e5f3b (diff)
downloadedk2-platforms-209e6e3174d5889640c2e906f343799fd067cd55.tar.xz
Remove duplicated AML code definitions as they have been added to common header.
Signed-off-by: lzeng14 Reviewed-by: jyao1 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12807 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Tcg')
-rw-r--r--SecurityPkg/Tcg/TcgSmm/TcgSmm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/SecurityPkg/Tcg/TcgSmm/TcgSmm.c b/SecurityPkg/Tcg/TcgSmm/TcgSmm.c
index ba660c1ee6..0e18357b16 100644
--- a/SecurityPkg/Tcg/TcgSmm/TcgSmm.c
+++ b/SecurityPkg/Tcg/TcgSmm/TcgSmm.c
@@ -30,13 +30,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DxeServicesLib.h>
-//
-// AML parsing definitions
-//
-#define AML_OPREGION_OP 0x80
-#define AML_BYTE_PREFIX 0x0A
-#define AML_DWORD_PREFIX 0x0C
-
#pragma pack(1)
typedef struct {
UINT8 SoftwareSmi;
@@ -329,7 +322,7 @@ AssignOpRegion (
for (OpRegion = (AML_OP_REGION_32_8 *) (Table + 1);
OpRegion <= (AML_OP_REGION_32_8 *) ((UINT8 *) Table + Table->Length);
OpRegion = (AML_OP_REGION_32_8 *) ((UINT8 *) OpRegion + 1)) {
- if ((OpRegion->OpRegionOp == AML_OPREGION_OP) &&
+ if ((OpRegion->OpRegionOp == AML_EXT_REGION_OP) &&
(OpRegion->NameString == Name) &&
(OpRegion->RegionLen == Size) &&
(OpRegion->DWordPrefix == AML_DWORD_PREFIX) &&