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

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

Issue 5796005: vboot TPM stub functions return error codes (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git@master
Patch Set: Created 10 years 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 | Annotate | Revision Log
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 VBOOT_REFERENCE_TSS_CONSTANTS_H_ 9 #ifndef VBOOT_REFERENCE_TSS_CONSTANTS_H_
10 #define VBOOT_REFERENCE_TSS_CONSTANTS_H_ 10 #define VBOOT_REFERENCE_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 #define TPM_PUBEK_SIZE 256 16 #define TPM_PUBEK_SIZE 256
17 17
18 #define TPM_E_NON_FATAL 0x800 18 #define TPM_E_NON_FATAL 0x800
19 19
20 #define TPM_SUCCESS ((uint32_t)0x00000000) 20 #define TPM_SUCCESS ((uint32_t)0x00000000)
21 21
22 #define TPM_E_AREA_LOCKED ((uint32_t)0x0000003c) 22 #define TPM_E_AREA_LOCKED ((uint32_t)0x0000003c)
23 #define TPM_E_BADINDEX ((uint32_t)0x00000002) 23 #define TPM_E_BADINDEX ((uint32_t)0x00000002)
24 #define TPM_E_BAD_PRESENCE ((uint32_t)0x0000002d) 24 #define TPM_E_BAD_PRESENCE ((uint32_t)0x0000002d)
25 #define TPM_E_IOERROR ((uint32_t)0x0000001f)
25 #define TPM_E_INVALID_POSTINIT ((uint32_t)0x00000026) 26 #define TPM_E_INVALID_POSTINIT ((uint32_t)0x00000026)
26 #define TPM_E_MAXNVWRITES ((uint32_t)0x00000048) 27 #define TPM_E_MAXNVWRITES ((uint32_t)0x00000048)
27 #define TPM_E_OWNER_SET ((uint32_t)0x00000014) 28 #define TPM_E_OWNER_SET ((uint32_t)0x00000014)
28 29
29 #define TPM_E_NEEDS_SELFTEST ((uint32_t)(TPM_E_NON_FATAL + 1)) 30 #define TPM_E_NEEDS_SELFTEST ((uint32_t)(TPM_E_NON_FATAL + 1))
30 #define TPM_E_DOING_SELFTEST ((uint32_t)(TPM_E_NON_FATAL + 2)) 31 #define TPM_E_DOING_SELFTEST ((uint32_t)(TPM_E_NON_FATAL + 2))
31 32
32 #define TPM_E_ALREADY_INITIALIZED ((uint32_t)0x00005000) /* vboot local */ 33 #define TPM_E_ALREADY_INITIALIZED ((uint32_t)0x00005000) /* vboot local */
33 #define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t)0x00005001) /* vboot local */ 34 #define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t)0x00005001) /* vboot local */
34 #define TPM_E_MUST_REBOOT ((uint32_t)0x00005002) /* vboot local */ 35 #define TPM_E_MUST_REBOOT ((uint32_t)0x00005002) /* vboot local */
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 typedef struct tdTPM_STCLEAR_FLAGS{ 82 typedef struct tdTPM_STCLEAR_FLAGS{
82 TPM_STRUCTURE_TAG tag; 83 TPM_STRUCTURE_TAG tag;
83 TSS_BOOL deactivated; 84 TSS_BOOL deactivated;
84 TSS_BOOL disableForceClear; 85 TSS_BOOL disableForceClear;
85 TSS_BOOL physicalPresence; 86 TSS_BOOL physicalPresence;
86 TSS_BOOL physicalPresenceLock; 87 TSS_BOOL physicalPresenceLock;
87 TSS_BOOL bGlobalLock; 88 TSS_BOOL bGlobalLock;
88 } TPM_STCLEAR_FLAGS; 89 } TPM_STCLEAR_FLAGS;
89 90
90 #endif /* VBOOT_REFERENCE_TSS_CONSTANTS_H_ */ 91 #endif /* VBOOT_REFERENCE_TSS_CONSTANTS_H_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698