1 /* This file is automatically generated */
3 const struct s_tpm_extend_cmd
{
7 } tpm_extend_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x22, 0x0, 0x0, 0x0, 0x14, },
10 const struct s_tpm_get_random_cmd
{
12 uint16_t bytesRequested
;
13 } tpm_get_random_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x46, },
16 const struct s_tpm_getownership_cmd
{
18 } tpm_getownership_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x11, },
21 const struct s_tpm_getpermissions_cmd
{
24 } tpm_getpermissions_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0x11, 0x0, 0x0, 0x0, 0x4, },
27 const struct s_tpm_getstclearflags_cmd
{
29 } tpm_getstclearflags_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0x65, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x0, 0x4, 0x0, 0x0, 0x1, 0x9, },
32 const struct s_tpm_getflags_cmd
{
34 } 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, },
37 const struct s_tpm_physicalsetdeactivated_cmd
{
40 } tpm_physicalsetdeactivated_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xb, 0x0, 0x0, 0x0, 0x72, },
43 const struct s_tpm_physicalenable_cmd
{
45 } tpm_physicalenable_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x6f, },
48 const struct s_tpm_physicaldisable_cmd
{
50 } tpm_physicaldisable_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x70, },
53 const struct s_tpm_forceclear_cmd
{
55 } tpm_forceclear_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x5d, },
58 const struct s_tpm_readpubek_cmd
{
60 } tpm_readpubek_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x1e, 0x0, 0x0, 0x0, 0x7c, },
63 const struct s_tpm_continueselftest_cmd
{
65 } tpm_continueselftest_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x53, },
68 const struct s_tpm_selftestfull_cmd
{
70 } tpm_selftestfull_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x50, },
73 const struct s_tpm_resume_cmd
{
75 } tpm_resume_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x2, },
78 const struct s_tpm_savestate_cmd
{
80 } tpm_savestate_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0x0, 0x98, },
83 const struct s_tpm_startup_cmd
{
85 } tpm_startup_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x0, 0x0, 0x0, 0x99, 0x0, 0x1, },
88 const struct s_tpm_finalizepp_cmd
{
90 } tpm_finalizepp_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x2, 0xa0, },
93 const struct s_tpm_pplock_cmd
{
95 } tpm_pplock_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x4, },
98 const struct s_tpm_ppenable_cmd
{
100 } tpm_ppenable_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x20, },
103 const struct s_tpm_ppassert_cmd
{
105 } tpm_ppassert_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xc, 0x40, 0x0, 0x0, 0xa, 0x0, 0x8, },
108 const struct s_tpm_pcr_read_cmd
{
111 } tpm_pcr_read_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0xe, 0x0, 0x0, 0x0, 0x15, },
114 const struct s_tpm_nv_read_cmd
{
118 } tpm_nv_read_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x16, 0x0, 0x0, 0x0, 0xcf, },
121 const struct s_tpm_nv_write_cmd
{
126 } tpm_nv_write_cmd
= {{0x0, 0xc1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcd, },
129 const struct s_tpm_nv_definespace_cmd
{
134 } 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, },
137 const int kWriteInfoLength
= 12;
138 const int kNvDataPublicPermissionsOffset
= 60;