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

Side by Side Diff: src/platform/vboot_reference/common/include/tss_constants.h

Issue 1712018: Vboot Reference: Remove dependency on TrouSers by not including tss/tcs.h (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Add FIXmes Created 10 years, 7 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
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 *
5 * Some TPM constants and type definitions for standalone compilation for use in
6 * the firmware
7 */
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_
19 #define TPM_LITE_TSS_CONSTANTS_H_
20
21 #include <stdint.h>
22
23 #define TPM_MAX_COMMAND_SIZE 4096
24 #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */
25
26 #define TPM_SUCCESS ((uint32_t)0x00000000)
27 #define TPM_NV_INDEX0 ((uint32_t)0x00000000)
28 #define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
29 #define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)
30 #define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0)
31
32 typedef uint8_t TSS_BOOL;
33 typedef uint16_t TPM_STRUCTURE_TAG;
34
35 typedef struct tdTPM_WRITE_INFO {
36 uint32_t nvIndex;
37 uint32_t offset;
38 uint32_t dataSize;
39 } TPM_WRITE_INFO;
40
41 typedef struct tdTPM_PERMANENT_FLAGS
42 {
43 TPM_STRUCTURE_TAG tag;
44 TSS_BOOL disable;
45 TSS_BOOL ownership;
46 TSS_BOOL deactivated;
47 TSS_BOOL readPubek;
48 TSS_BOOL disableOwnerClear;
49 TSS_BOOL allowMaintenance;
50 TSS_BOOL physicalPresenceLifetimeLock;
51 TSS_BOOL physicalPresenceHWEnable;
52 TSS_BOOL physicalPresenceCMDEnable;
53 TSS_BOOL CEKPUsed;
54 TSS_BOOL TPMpost;
55 TSS_BOOL TPMpostLock;
56 TSS_BOOL FIPS;
57 TSS_BOOL Operator;
58 TSS_BOOL enableRevokeEK;
59 TSS_BOOL nvLocked;
60 TSS_BOOL readSRKPub;
61 TSS_BOOL tpmEstablished;
62 TSS_BOOL maintenanceDone;
63 TSS_BOOL disableFullDALogicInfo;
64 } TPM_PERMANENT_FLAGS;
65
66 #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \
67 | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */
68
69 #define TPM_ENCAUTH_SIZE 20
70 #define TPM_PUBEK_SIZE 256
71
72 #endif /* TPM_LITE_TSS_CONSTANTS_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/common/include/tlcl.h ('k') | src/platform/vboot_reference/common/rollback_index.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698