mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 18:25:10 +00:00
The latest TPM specification uses different command codes, command
structures and return codes.
Let's put definitions for different TPM versions into different
include files.
CQ-DEPEND=CL:357831
BRANCH=none
BUG=chrome-os-partner:50645
TEST=with the rest of the patches applied kevin/gru boards boot into
chrome OS with rollback counters read from/written to TPM2
Change-Id: Ie13696d4e5098a4ea5e338e84334d257e5c704a7
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356751
Reviewed-by: Randall Spangler <rspangler@chromium.org>
34 lines
1.5 KiB
C
34 lines
1.5 KiB
C
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
*/
|
|
|
|
#ifndef VBOOT_REFERENCE_TSS_CONSTANTS_H_
|
|
#define VBOOT_REFERENCE_TSS_CONSTANTS_H_
|
|
#include <stdint.h>
|
|
|
|
#define TPM_SUCCESS ((uint32_t) 0x00000000)
|
|
|
|
#define TPM_E_ALREADY_INITIALIZED ((uint32_t) 0x00005000) /* vboot local */
|
|
#define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t) 0x00005001) /* vboot local */
|
|
#define TPM_E_MUST_REBOOT ((uint32_t) 0x00005002) /* vboot local */
|
|
#define TPM_E_CORRUPTED_STATE ((uint32_t) 0x00005003) /* vboot local */
|
|
#define TPM_E_COMMUNICATION_ERROR ((uint32_t) 0x00005004) /* vboot local */
|
|
#define TPM_E_RESPONSE_TOO_LARGE ((uint32_t) 0x00005005) /* vboot local */
|
|
#define TPM_E_NO_DEVICE ((uint32_t) 0x00005006) /* vboot local */
|
|
#define TPM_E_INPUT_TOO_SMALL ((uint32_t) 0x00005007) /* vboot local */
|
|
#define TPM_E_WRITE_FAILURE ((uint32_t) 0x00005008) /* vboot local */
|
|
#define TPM_E_READ_EMPTY ((uint32_t) 0x00005009) /* vboot local */
|
|
#define TPM_E_READ_FAILURE ((uint32_t) 0x0000500a) /* vboot local */
|
|
#define TPM_E_STRUCT_SIZE ((uint32_t) 0x0000500b) /* vboot local */
|
|
#define TPM_E_STRUCT_VERSION ((uint32_t) 0x0000500c) /* vboot local */
|
|
|
|
#ifdef TPM2_MODE
|
|
#include "tpm2_tss_constants.h"
|
|
#else
|
|
#include "tpm1_tss_constants.h"
|
|
#endif
|
|
|
|
#endif /* VBOOT_REFERENCE_TSS_CONSTANTS_H_ */
|