Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: firmware/lib/tpm_lite/include/tss_constants.h

Issue 3078028: Pay attention to TPM communication errors (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Fix whitespace Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « firmware/lib/tpm_lite/include/tlcl.h ('k') | firmware/lib/tpm_lite/tlcl.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef TPM_LITE_TSS_CONSTANTS_H_ 9 #ifndef TPM_LITE_TSS_CONSTANTS_H_
10 #define TPM_LITE_TSS_CONSTANTS_H_ 10 #define TPM_LITE_TSS_CONSTANTS_H_
11 11
12 #include "sysincludes.h" 12 #include "sysincludes.h"
13 13
14 #define TPM_MAX_COMMAND_SIZE 4096 14 #define TPM_MAX_COMMAND_SIZE 4096
15 #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 */
16 16
17 #define TPM_SUCCESS ((uint32_t)0x00000000) 17 #define TPM_SUCCESS ((uint32_t)0x00000000)
18 #define TPM_E_BADINDEX ((uint32_t)0x00000002) 18 #define TPM_E_BADINDEX ((uint32_t)0x00000002)
19 #define TPM_E_MAXNVWRITES ((uint32_t)0x00000048) 19 #define TPM_E_MAXNVWRITES ((uint32_t)0x00000048)
20 #define TPM_E_OWNER_SET ((uint32_t)0x00000014) 20 #define TPM_E_OWNER_SET ((uint32_t)0x00000014)
21 21
22 #define TPM_E_ALREADY_INITIALIZED ((uint32_t)0x00005000) /* vboot local */ 22 #define TPM_E_ALREADY_INITIALIZED ((uint32_t)0x00005000) /* vboot local */
23 #define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t)0x00005001) /* vboot local */ 23 #define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t)0x00005001) /* vboot local */
24 #define TPM_E_MUST_REBOOT ((uint32_t)0x00005002) /* vboot local */ 24 #define TPM_E_MUST_REBOOT ((uint32_t)0x00005002) /* vboot local */
25 #define TPM_E_CORRUPTED_STATE ((uint32_t)0x00005003) /* vboot local */ 25 #define TPM_E_CORRUPTED_STATE ((uint32_t)0x00005003) /* vboot local */
26 #define TPM_E_COMMUNICATION_ERROR ((uint32_t)0x00005004) /* vboot local */
26 27
27 #define TPM_NV_INDEX0 ((uint32_t)0x00000000) 28 #define TPM_NV_INDEX0 ((uint32_t)0x00000000)
28 #define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff) 29 #define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
29 #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14) 30 #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)
30 #define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0) 31 #define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0)
31 #define TPM_NV_PER_GLOBALLOCK (((uint32_t)1)<<15) 32 #define TPM_NV_PER_GLOBALLOCK (((uint32_t)1)<<15)
32 33
33 typedef uint8_t TSS_BOOL; 34 typedef uint8_t TSS_BOOL;
34 typedef uint16_t TPM_STRUCTURE_TAG; 35 typedef uint16_t TPM_STRUCTURE_TAG;
35 36
(...skipping 28 matching lines...) Expand all
64 TSS_BOOL disableFullDALogicInfo; 65 TSS_BOOL disableFullDALogicInfo;
65 } TPM_PERMANENT_FLAGS; 66 } TPM_PERMANENT_FLAGS;
66 67
67 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ 68 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \
68 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ 69 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */
69 70
70 #define TPM_ENCAUTH_SIZE 20 71 #define TPM_ENCAUTH_SIZE 20
71 #define TPM_PUBEK_SIZE 256 72 #define TPM_PUBEK_SIZE 256
72 73
73 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */ 74 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */
OLDNEW
« no previous file with comments | « firmware/lib/tpm_lite/include/tlcl.h ('k') | firmware/lib/tpm_lite/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698