]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Conf/Pcd/PcdDatabaseCommonDefinitions.sample
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@448 6f19259b...
[mirror_edk2.git] / Tools / Conf / Pcd / PcdDatabaseCommonDefinitions.sample
CommitLineData
8b29c893 1//\r
2// The following definition will be generated by build tool \r
3//\r
4\r
5//\r
6// Common definitions\r
7//\r
8a43e8dd 8typedef UINT8 SKU_ID;\r
9\r
8b29c893 10#define PCD_TYPE_SHIFT 24\r
11\r
12\r
13#define PCD_TYPE_DATA (0x00 << PCD_TYPE_SHIFT)\r
14#define PCD_TYPE_HII (0x80 << PCD_TYPE_SHIFT)\r
15#define PCD_TYPE_VPD (0x40 << PCD_TYPE_SHIFT)\r
16#define PCD_TYPE_SKU_ENABLED (0x20 << PCD_TYPE_SHIFT)\r
17#define PCD_TYPE_STRING (0x10 << PCD_TYPE_SHIFT)\r
18\r
19\r
20#define PCD_DATABASE_OFFSET_MASK (~(PCD_TYPE_HII | PCD_TYPE_VPD | PCD_TYPE_SKU_ENABLED | PCD_TYPE_STRING))\r
21\r
22typedef struct {\r
23 UINT32 ExTokenNumber;\r
24 UINT32 LocalTokenNumber; // PCD Number of this particular platform build\r
25 UINT16 ExGuidIndex; // Index of GuidTable\r
26} DYNAMICEX_MAPPING;\r
27\r
28\r
29typedef struct {\r
30 UINT32 SkuDataStartOffset; //We have to use offsetof MACRO as we don't know padding done by compiler\r
31 UINT32 SkuIdTableOffset; //Offset from the PCD_DB\r
32} SKU_HEAD;\r
33\r
34\r
35typedef struct {\r
36 UINT16 GuidTableIndex; // Offset in Guid Table in units of GUID.\r
37 UINT16 StringIndex; // Offset in String Table in units of UINT16.\r
38 UINT16 Offset; // Offset in Variable\r
39} VARIABLE_HEAD ;\r
40\r
41\r
42typedef struct {\r
43 UINT32 Offset;\r
44} VPD_HEAD;\r
45\r
46typedef struct {\r
47 UINT32 LocalTokenNumber;\r
48 UINT16 TokenNumber;\r
49 UINT16 Size;\r
50} SIZEINFO;\r
51\r
52#define offsetof(s,m) (UINT32)&(((s *)0)->m)\r
53\r
54\r
55\r