tss_constants.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* Copyright (c) 2013 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. */
  6. #ifndef VBOOT_REFERENCE_TSS_CONSTANTS_H_
  7. #define VBOOT_REFERENCE_TSS_CONSTANTS_H_
  8. #include <stdint.h>
  9. #define TPM_SUCCESS ((uint32_t) 0x00000000)
  10. #define TPM_E_ALREADY_INITIALIZED ((uint32_t) 0x00005000) /* vboot local */
  11. #define TPM_E_INTERNAL_INCONSISTENCY ((uint32_t) 0x00005001) /* vboot local */
  12. #define TPM_E_MUST_REBOOT ((uint32_t) 0x00005002) /* vboot local */
  13. #define TPM_E_CORRUPTED_STATE ((uint32_t) 0x00005003) /* vboot local */
  14. #define TPM_E_COMMUNICATION_ERROR ((uint32_t) 0x00005004) /* vboot local */
  15. #define TPM_E_RESPONSE_TOO_LARGE ((uint32_t) 0x00005005) /* vboot local */
  16. #define TPM_E_NO_DEVICE ((uint32_t) 0x00005006) /* vboot local */
  17. #define TPM_E_INPUT_TOO_SMALL ((uint32_t) 0x00005007) /* vboot local */
  18. #define TPM_E_WRITE_FAILURE ((uint32_t) 0x00005008) /* vboot local */
  19. #define TPM_E_READ_EMPTY ((uint32_t) 0x00005009) /* vboot local */
  20. #define TPM_E_READ_FAILURE ((uint32_t) 0x0000500a) /* vboot local */
  21. #define TPM_E_STRUCT_SIZE ((uint32_t) 0x0000500b) /* vboot local */
  22. #define TPM_E_STRUCT_VERSION ((uint32_t) 0x0000500c) /* vboot local */
  23. #ifdef TPM2_MODE
  24. #include "tpm2_tss_constants.h"
  25. #else
  26. #include "tpm1_tss_constants.h"
  27. #endif
  28. #endif /* VBOOT_REFERENCE_TSS_CONSTANTS_H_ */