OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 * | 4 * |
5 * Some TPM constants and type definitions for standalone compilation for use in | 5 * Some TPM constants and type definitions for standalone compilation for use in |
6 * the firmware | 6 * the firmware |
7 */ | 7 */ |
8 | 8 |
9 /* FIXME(gauravsh): | |
10 * NOTE: This file is copied over from | |
11 * src/platform/tpm_lite/src/tlcl/tss_constants.h | |
12 * Ideally, we want to directly include it without having two maintain | |
13 * duplicate copies in sync. But in the current model, this is hard | |
14 * to do without breaking standalone compilation. | |
15 * Eventually tpm_lite should be moved into vboot_reference. | |
16 */ | |
17 | |
18 #ifndef TPM_LITE_TSS_CONSTANTS_H_ | 9 #ifndef TPM_LITE_TSS_CONSTANTS_H_ |
19 #define TPM_LITE_TSS_CONSTANTS_H_ | 10 #define TPM_LITE_TSS_CONSTANTS_H_ |
20 | 11 |
21 #include "sysincludes.h" | 12 #include "sysincludes.h" |
22 | 13 |
23 #define TPM_MAX_COMMAND_SIZE 4096 | 14 #define TPM_MAX_COMMAND_SIZE 4096 |
24 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */ | 15 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */ |
25 | 16 |
26 #define TPM_SUCCESS ((uint32_t)0x00000000) | 17 #define TPM_SUCCESS ((uint32_t)0x00000000) |
27 #define TPM_E_BADINDEX ((uint32_t)0x00000002) | 18 #define TPM_E_BADINDEX ((uint32_t)0x00000002) |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 TSS_BOOL disableFullDALogicInfo; | 64 TSS_BOOL disableFullDALogicInfo; |
74 } TPM_PERMANENT_FLAGS; | 65 } TPM_PERMANENT_FLAGS; |
75 | 66 |
76 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ | 67 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ |
77 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ | 68 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ |
78 | 69 |
79 #define TPM_ENCAUTH_SIZE 20 | 70 #define TPM_ENCAUTH_SIZE 20 |
80 #define TPM_PUBEK_SIZE 256 | 71 #define TPM_PUBEK_SIZE 256 |
81 | 72 |
82 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */ | 73 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */ |
OLD | NEW |