1 /*++
2 
3   Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>
4 
5 
6   This program and the accompanying materials are licensed and made available under
7 
8   the terms and conditions of the BSD License that accompanies this distribution.
9 
10   The full text of the license may be found at
11 
12   http://opensource.org/licenses/bsd-license.php.
13 
14 
15 
16   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
17 
18   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 
20 
21 
22 
23 Module Name:
24 
25   ItkData.h
26 
27 Abstract:
28 
29 --*/
30 
31 #ifndef _ITKDATAHUB_GUID_H_
32 #define _ITKDATAHUB_GUID_H_
33 
34 //
35 // This GUID is for the ITK related data found in the Data Hub {E7060843-A336-4d5b-9598-13402F5D7375}
36 //
37 #define ITK_DATA_HUB_GUID \
38   { 0xe7060843, 0xa336, 0x4d5b, 0x95, 0x98, 0x13, 0x40, 0x2f, 0x5d, 0x73, 0x75 }
39 
40 extern EFI_GUID gItkDataHubGuid;
41 
42 //
43 // This GUID is for the ITK related data found in a Variable  {3812723D-7E48-4e29-BC27-F5A39AC94EF1}
44 //
45 #define ITK_DATA_VAR_GUID \
46   { 0x3812723d, 0x7e48, 0x4e29, 0xbc, 0x27, 0xf5, 0xa3, 0x9a, 0xc9, 0x4e, 0xf1 }
47 
48 extern EFI_GUID gItkDataVarGuid;
49 
50 #define ITK_DATA_VAR_NAME L"ItkDataVar"
51 
52 extern CHAR16 gItkDataVarName[];
53 
54 #define ITK_BIOS_MOD_VAR_NAME L"ItkBiosModVar"
55 
56 extern CHAR16 gItkBiosModVarName[];
57 
58 #pragma pack(1)
59 typedef struct {
60   UINT32    Type;
61   UINT32    RecordLength;
62 } EFI_ITK_DATA_HEADER;
63 
64 typedef struct {
65   EFI_ITK_DATA_HEADER   ItkHeader;
66   UINT32                HecetaAddress;
67 } EFI_ITK_HECETA_ADDRESS;
68 
69 typedef struct {
70   UINT16    VarEqName;
71   UINT16    VarEqValue;
72 } EFI_ITK_VAR_EQ_RECORD;
73 
74 typedef struct {
75   EFI_ITK_DATA_HEADER   ItkHeader;
76   EFI_ITK_VAR_EQ_RECORD VarEqRecord[0x10000];
77 } EFI_ITK_VAR_EQ;
78 #pragma pack()
79 
80 #define EFI_ITK_HECETA_ADDRESS_TYPE    1
81 #define EFI_ITK_MOBILE_BIOS_TYPE       2
82 #define EFI_ITK_VAR_EQ_TYPE            3
83 
84 #endif
85