]>
Commit | Line | Data |
---|---|---|
c1d93242 JY |
1 | /** @file\r |
2 | Header file for NV data structure definition.\r | |
3 | \r | |
4 | Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef __TREE_CONFIG_NV_DATA_H__\r | |
16 | #define __TREE_CONFIG_NV_DATA_H__\r | |
17 | \r | |
18 | #include <Guid/HiiPlatformSetupFormset.h>\r | |
19 | #include <Guid/TrEEPhysicalPresenceData.h>\r | |
20 | #include <Guid/TrEEConfigHii.h>\r | |
21 | \r | |
22 | #define TREE_CONFIGURATION_VARSTORE_ID 0x0001\r | |
23 | #define TREE_CONFIGURATION_FORM_ID 0x0001\r | |
24 | \r | |
25 | #define KEY_TPM_DEVICE 0x2000\r | |
26 | \r | |
27 | #define TPM_DEVICE_NULL 0\r | |
28 | #define TPM_DEVICE_1_2 1\r | |
29 | #define TPM_DEVICE_2_0_DTPM 2\r | |
30 | #define TPM_DEVICE_MAX TPM_DEVICE_2_0_DTPM\r | |
31 | #define TPM_DEVICE_DEFAULT TPM_DEVICE_1_2\r | |
32 | \r | |
33 | //\r | |
34 | // Nv Data structure referenced by IFR\r | |
35 | //\r | |
36 | typedef struct {\r | |
37 | UINT8 TpmDevice;\r | |
38 | UINT8 Tpm2Operation;\r | |
39 | } TREE_CONFIGURATION;\r | |
40 | \r | |
41 | #define TREE_STORAGE_NAME L"TREE_CONFIGURATION"\r | |
42 | \r | |
43 | #define TPM_INSTANCE_ID_LIST { \\r | |
44 | {TPM_DEVICE_INTERFACE_NONE, TPM_DEVICE_NULL}, \\r | |
45 | {TPM_DEVICE_INTERFACE_TPM12, TPM_DEVICE_1_2}, \\r | |
46 | {TPM_DEVICE_INTERFACE_TPM20_DTPM, TPM_DEVICE_2_0_DTPM}, \\r | |
47 | }\r | |
48 | \r | |
49 | //\r | |
50 | // BUGBUG: In order to pass VfrCompiler, we have to redefine GUID here.\r | |
51 | //\r | |
52 | #ifndef __BASE_H__\r | |
53 | typedef struct {\r | |
54 | UINT32 Data1;\r | |
55 | UINT16 Data2;\r | |
56 | UINT16 Data3;\r | |
57 | UINT8 Data4[8];\r | |
58 | } GUID;\r | |
59 | #endif\r | |
60 | \r | |
61 | typedef struct {\r | |
62 | GUID TpmInstanceGuid;\r | |
63 | UINT8 TpmDevice;\r | |
64 | } TPM_INSTANCE_ID;\r | |
65 | \r | |
66 | #endif\r |