diff options
author | Stefan Berger <stefanb@linux.vnet.ibm.com> | 2016-02-02 13:09:12 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-02-05 20:47:37 -0500 |
commit | f53b93b402a6b9b90c73e43f44b7cedba10e33b5 (patch) | |
tree | f0663e3bc1df94ec299c8c0f444cb8e27c0ecb6d /src/std | |
parent | 1d37d521d34a791f7c4e0b229ab4e7edf5b43b16 (diff) | |
download | seabios-hppa-f53b93b402a6b9b90c73e43f44b7cedba10e33b5.zip seabios-hppa-f53b93b402a6b9b90c73e43f44b7cedba10e33b5.tar.gz seabios-hppa-f53b93b402a6b9b90c73e43f44b7cedba10e33b5.tar.bz2 |
tpm: Implement tpm20_startup and tpm20_s3_resume
Implement tpm20_startup and tpm20_s3_resume and their dependencies.
We follow this specification:
TCG PC Client Specific Platform Firmware Profile for TPM 2.0 Systems Revision 1.0 Version 21
It can be found on this page:
http://www.trustedcomputinggroup.org/resources/specifications_in_public_review
Power on: Figure 7 & 7.3.2 item 4.
S3: Figure 9 & 7.3.2 item 4.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/std')
-rw-r--r-- | src/std/tcg.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/std/tcg.h b/src/std/tcg.h index 91692e9..db1155d 100644 --- a/src/std/tcg.h +++ b/src/std/tcg.h @@ -362,4 +362,24 @@ struct tpm_res_sha1complete { #define TPM_PPI_OP_SET_OWNERINSTALL_TRUE 8 #define TPM_PPI_OP_SET_OWNERINSTALL_FALSE 9 +/* + * TPM 2 + */ + +#define TPM2_NO 0 +#define TPM2_YES 1 + +#define TPM2_SU_CLEAR 0x0000 +#define TPM2_SU_STATE 0x0001 + +/* TPM 2 command tags */ +#define TPM2_ST_NO_SESSIONS 0x8001 + +/* TPM 2 commands */ +#define TPM2_CC_SelfTest 0x143 +#define TPM2_CC_Startup 0x144 + +/* TPM 2 error codes */ +#define TPM2_RC_INITIALIZE 0x100 + #endif // tcg.h |