tpmextras.h 741 B

12345678910111213141516171819202122232425262728
  1. /* Copyright (c) 2010 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. * TPM definitions not available in any TSS include file :-(
  7. */
  8. #ifndef TPM_LITE_TPMEXTRAS_H_
  9. #define TPM_LITE_TPMEXTRAS_H_
  10. #define TPM_MAX_COMMAND_SIZE 4096
  11. #define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */
  12. #define TPM_ENCAUTH_SIZE 20
  13. #define TPM_PUBEK_SIZE 256
  14. #define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \
  15. | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */
  16. typedef struct tdTPM_WRITE_INFO {
  17. uint32_t nvIndex;
  18. uint32_t offset;
  19. uint32_t dataSize;
  20. } TPM_WRITE_INFO;
  21. #endif