From e537d5c1300febed070dc6a4fbc1103d9df1b340 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 16 Aug 2006 10:52:14 +0000 Subject: [PATCH] Embeded autogenerated code in Java code instead of getting them from a real file. Hence, remove the template code from the PCD/Conf directory. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1295 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Pcd/PcdDatabaseCommonDefinitions.sample | 69 ------------------- .../Conf/Pcd/PcdDatabaseDxeDefinitions.sample | 16 ----- .../Conf/Pcd/PcdDatabasePeiDefinitions.sample | 8 --- 3 files changed, 93 deletions(-) delete mode 100644 Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample delete mode 100644 Tools/Conf/Pcd/PcdDatabaseDxeDefinitions.sample delete mode 100644 Tools/Conf/Pcd/PcdDatabasePeiDefinitions.sample diff --git a/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample b/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample deleted file mode 100644 index 7df1a5a6f4..0000000000 --- a/Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample +++ /dev/null @@ -1,69 +0,0 @@ -// -// The following definition will be generated by build tool -// - -// -// Common definitions -// -typedef UINT8 SKU_ID; - -#define PCD_TYPE_SHIFT 28 - -#define PCD_TYPE_DATA (0x0 << PCD_TYPE_SHIFT) -#define PCD_TYPE_HII (0x8 << PCD_TYPE_SHIFT) -#define PCD_TYPE_VPD (0x4 << PCD_TYPE_SHIFT) -#define PCD_TYPE_SKU_ENABLED (0x2 << PCD_TYPE_SHIFT) -#define PCD_TYPE_STRING (0x1 << PCD_TYPE_SHIFT) - -#define PCD_TYPE_ALL_SET (PCD_TYPE_DATA | PCD_TYPE_HII | PCD_TYPE_VPD | PCD_TYPE_SKU_ENABLED | PCD_TYPE_STRING) - -#define PCD_DATUM_TYPE_SHIFT 24 - -#define PCD_DATUM_TYPE_POINTER (0x0 << PCD_DATUM_TYPE_SHIFT) -#define PCD_DATUM_TYPE_UINT8 (0x1 << PCD_DATUM_TYPE_SHIFT) -#define PCD_DATUM_TYPE_UINT16 (0x2 << PCD_DATUM_TYPE_SHIFT) -#define PCD_DATUM_TYPE_UINT32 (0x4 << PCD_DATUM_TYPE_SHIFT) -#define PCD_DATUM_TYPE_UINT64 (0x8 << PCD_DATUM_TYPE_SHIFT) - -#define PCD_DATUM_TYPE_ALL_SET (PCD_DATUM_TYPE_POINTER | \ - PCD_DATUM_TYPE_UINT8 | \ - PCD_DATUM_TYPE_UINT16 | \ - PCD_DATUM_TYPE_UINT32 | \ - PCD_DATUM_TYPE_UINT64) - - -#define PCD_DATABASE_OFFSET_MASK (~(PCD_TYPE_ALL_SET | PCD_DATUM_TYPE_ALL_SET)) - -typedef struct { - UINT32 ExTokenNumber; - UINT16 LocalTokenNumber; // PCD Number of this particular platform build - UINT16 ExGuidIndex; // Index of GuidTable -} DYNAMICEX_MAPPING; - - -typedef struct { - UINT32 SkuDataStartOffset; //We have to use offsetof MACRO as we don't know padding done by compiler - UINT32 SkuIdTableOffset; //Offset from the PCD_DB -} SKU_HEAD; - - -typedef struct { - UINT16 GuidTableIndex; // Offset in Guid Table in units of GUID. - UINT16 StringIndex; // Offset in String Table in units of UINT16. - UINT16 Offset; // Offset in Variable - UINT16 DefaultValueOffset; // Offset of the Default Value -} VARIABLE_HEAD ; - - -typedef struct { - UINT32 Offset; -} VPD_HEAD; - -typedef UINT16 STRING_HEAD; - -typedef UINT16 SIZE_INFO; - -#define offsetof(s,m) (UINT32) (UINTN) &(((s *)0)->m) - - - diff --git a/Tools/Conf/Pcd/PcdDatabaseDxeDefinitions.sample b/Tools/Conf/Pcd/PcdDatabaseDxeDefinitions.sample deleted file mode 100644 index be2bc0e1e4..0000000000 --- a/Tools/Conf/Pcd/PcdDatabaseDxeDefinitions.sample +++ /dev/null @@ -1,16 +0,0 @@ - -typedef struct { - DXE_PCD_DATABASE_INIT Init; - DXE_PCD_DATABASE_UNINIT Uninit; -} DXE_PCD_DATABASE; - - -typedef struct { - PEI_PCD_DATABASE PeiDb; - DXE_PCD_DATABASE DxeDb; -} PCD_DATABASE; - -#define DXE_NEX_TOKEN_NUMBER (DXE_LOCAL_TOKEN_NUMBER - DXE_EX_TOKEN_NUMBER) - -#define PCD_TOTAL_TOKEN_NUMBER (PEI_LOCAL_TOKEN_NUMBER + DXE_LOCAL_TOKEN_NUMBER) - diff --git a/Tools/Conf/Pcd/PcdDatabasePeiDefinitions.sample b/Tools/Conf/Pcd/PcdDatabasePeiDefinitions.sample deleted file mode 100644 index 86ae4fca7e..0000000000 --- a/Tools/Conf/Pcd/PcdDatabasePeiDefinitions.sample +++ /dev/null @@ -1,8 +0,0 @@ - -typedef struct { - PEI_PCD_DATABASE_INIT Init; - PEI_PCD_DATABASE_UNINIT Uninit; -} PEI_PCD_DATABASE; - -#define PEI_NEX_TOKEN_NUMBER (PEI_LOCAL_TOKEN_NUMBER - PEI_EX_TOKEN_NUMBER) -