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

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

Issue 3271006: Make TPM datagrams const, since they cannot be modified in the RO firmware. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/vboot_reference.git
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« 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 /* This file is automatically generated */ 1 /* This file is automatically generated */
2 2
3 struct s_tpm_extend_cmd{ 3 const struct s_tpm_extend_cmd{
4 uint8_t buffer[34]; 4 uint8_t buffer[34];
5 uint16_t pcrNum; 5 uint16_t pcrNum;
6 uint16_t inDigest; 6 uint16_t inDigest;
7 } tpm_extend_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, }, 7 } tpm_extend_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, },
8 10, 14, }; 8 10, 14, };
9 9
10 struct s_tpm_getpermissions_cmd{ 10 const struct s_tpm_getpermissions_cmd{
11 uint8_t buffer[22]; 11 uint8_t buffer[22];
12 uint16_t index; 12 uint16_t index;
13 } tpm_getpermissions_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65 , 0x0, 0x0, 0x0, 0x11, 0x0, 0x0, 0x0, 0x4, }, 13 } tpm_getpermissions_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65 , 0x0, 0x0, 0x0, 0x11, 0x0, 0x0, 0x0, 0x4, },
14 18, }; 14 18, };
15 15
16 struct s_tpm_getstclearflags_cmd{ 16 const struct s_tpm_getstclearflags_cmd{
17 uint8_t buffer[22]; 17 uint8_t buffer[22];
18 } tpm_getstclearflags_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x6 5, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x9, }, 18 } tpm_getstclearflags_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x6 5, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x9, },
19 }; 19 };
20 20
21 struct s_tpm_getflags_cmd{ 21 const struct s_tpm_getflags_cmd{
22 uint8_t buffer[22]; 22 uint8_t buffer[22];
23 } tpm_getflags_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x8, }, 23 } tpm_getflags_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x8, },
24 }; 24 };
25 25
26 struct s_tpm_physicalsetdeactivated_cmd{ 26 const struct s_tpm_physicalsetdeactivated_cmd{
27 uint8_t buffer[11]; 27 uint8_t buffer[11];
28 uint16_t deactivated; 28 uint16_t deactivated;
29 } tpm_physicalsetdeactivated_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x 0, 0x72, }, 29 } tpm_physicalsetdeactivated_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x 0, 0x72, },
30 10, }; 30 10, };
31 31
32 struct s_tpm_physicalenable_cmd{ 32 const struct s_tpm_physicalenable_cmd{
33 uint8_t buffer[10]; 33 uint8_t buffer[10];
34 } tpm_physicalenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, }, 34 } tpm_physicalenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, },
35 }; 35 };
36 36
37 struct s_tpm_physicaldisable_cmd{ 37 const struct s_tpm_physicaldisable_cmd{
38 uint8_t buffer[10]; 38 uint8_t buffer[10];
39 } tpm_physicaldisable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70 , }, 39 } tpm_physicaldisable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70 , },
40 }; 40 };
41 41
42 struct s_tpm_forceclear_cmd{ 42 const struct s_tpm_forceclear_cmd{
43 uint8_t buffer[10]; 43 uint8_t buffer[10];
44 } tpm_forceclear_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, }, 44 } tpm_forceclear_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, },
45 }; 45 };
46 46
47 struct s_tpm_readpubek_cmd{ 47 const struct s_tpm_readpubek_cmd{
48 uint8_t buffer[30]; 48 uint8_t buffer[30];
49 } tpm_readpubek_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, }, 49 } tpm_readpubek_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, },
50 }; 50 };
51 51
52 struct s_tpm_continueselftest_cmd{ 52 const struct s_tpm_continueselftest_cmd{
53 uint8_t buffer[10]; 53 uint8_t buffer[10];
54 } tpm_continueselftest_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5 3, }, 54 } tpm_continueselftest_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5 3, },
55 }; 55 };
56 56
57 struct s_tpm_selftestfull_cmd{ 57 const struct s_tpm_selftestfull_cmd{
58 uint8_t buffer[10]; 58 uint8_t buffer[10];
59 } tpm_selftestfull_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, } , 59 } tpm_selftestfull_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, } ,
60 }; 60 };
61 61
62 struct s_tpm_resume_cmd{ 62 const struct s_tpm_resume_cmd{
63 uint8_t buffer[12]; 63 uint8_t buffer[12];
64 } tpm_resume_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x 2, }, 64 } tpm_resume_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x 2, },
65 }; 65 };
66 66
67 struct s_tpm_startup_cmd{ 67 const struct s_tpm_startup_cmd{
68 uint8_t buffer[12]; 68 uint8_t buffer[12];
69 } tpm_startup_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0 x1, }, 69 } tpm_startup_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0 x1, },
70 }; 70 };
71 71
72 struct s_tpm_finalizepp_cmd{ 72 const struct s_tpm_finalizepp_cmd{
73 uint8_t buffer[12]; 73 uint8_t buffer[12];
74 } tpm_finalizepp_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x2 , 0xa0, }, 74 } tpm_finalizepp_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x2 , 0xa0, },
75 }; 75 };
76 76
77 struct s_tpm_pplock_cmd{ 77 const struct s_tpm_pplock_cmd{
78 uint8_t buffer[12]; 78 uint8_t buffer[12];
79 } tpm_pplock_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x 4, }, 79 } tpm_pplock_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x 4, },
80 }; 80 };
81 81
82 struct s_tpm_ppenable_cmd{ 82 const struct s_tpm_ppenable_cmd{
83 uint8_t buffer[12]; 83 uint8_t buffer[12];
84 } tpm_ppenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x20, }, 84 } tpm_ppenable_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x20, },
85 }; 85 };
86 86
87 struct s_tpm_ppassert_cmd{ 87 const struct s_tpm_ppassert_cmd{
88 uint8_t buffer[12]; 88 uint8_t buffer[12];
89 } tpm_ppassert_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x8, }, 89 } tpm_ppassert_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x8, },
90 }; 90 };
91 91
92 struct s_tpm_nv_read_cmd{ 92 const struct s_tpm_nv_read_cmd{
93 uint8_t buffer[22]; 93 uint8_t buffer[22];
94 uint16_t index; 94 uint16_t index;
95 uint16_t length; 95 uint16_t length;
96 } tpm_nv_read_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, }, 96 } tpm_nv_read_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, },
97 10, 18, }; 97 10, 18, };
98 98
99 struct s_tpm_nv_write_cmd{ 99 const struct s_tpm_nv_write_cmd{
100 uint8_t buffer[256]; 100 uint8_t buffer[256];
101 uint16_t index; 101 uint16_t index;
102 uint16_t length; 102 uint16_t length;
103 uint16_t data; 103 uint16_t data;
104 } tpm_nv_write_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, }, 104 } tpm_nv_write_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, },
105 10, 18, 22, }; 105 10, 18, 22, };
106 106
107 struct s_tpm_nv_definespace_cmd{ 107 const struct s_tpm_nv_definespace_cmd{
108 uint8_t buffer[101]; 108 uint8_t buffer[101];
109 uint16_t index; 109 uint16_t index;
110 uint16_t perm; 110 uint16_t perm;
111 uint16_t size; 111 uint16_t size;
112 } tpm_nv_definespace_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0xcc , 0x0, 0x18, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x17, }, 112 } tpm_nv_definespace_cmd = {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0xcc , 0x0, 0x18, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x3, 0, 0, 0, 0x1f, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x0, 0x17, },
113 12, 70, 77, }; 113 12, 70, 77, };
114 114
115 const int kWriteInfoLength = 12; 115 const int kWriteInfoLength = 12;
116 const int kNvDataPublicPermissionsOffset = 60; 116 const int kNvDataPublicPermissionsOffset = 60;
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