Index: firmware/stub/include/tpmextras.h |
diff --git a/firmware/stub/include/tpmextras.h b/firmware/stub/include/tpmextras.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..abd5837729cabf881d17ce1ef27279479e61c566 |
--- /dev/null |
+++ b/firmware/stub/include/tpmextras.h |
@@ -0,0 +1,30 @@ |
+/* Copyright (c) 2010 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. |
+ */ |
+ |
+/* |
+ * TPM definitions not available in any TSS include file :-( |
+ */ |
+ |
+#ifndef TPM_LITE_TPMEXTRAS_H_ |
+#define TPM_LITE_TPMEXTRAS_H_ |
+ |
+#include <tss/tcs.h> |
+ |
+#define TPM_MAX_COMMAND_SIZE 4096 |
+#define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */ |
+ |
+typedef struct tdTPM_WRITE_INFO { |
+ uint32_t nvIndex; |
+ uint32_t offset; |
+ uint32_t dataSize; |
+} TPM_WRITE_INFO; |
+ |
+#define TPM_ALL_LOCALITIES (TPM_LOC_ZERO | TPM_LOC_ONE | TPM_LOC_TWO \ |
+ | TPM_LOC_THREE | TPM_LOC_FOUR) /* 0x1f */ |
+ |
+#define TPM_ENCAUTH_SIZE 20 |
+#define TPM_PUBEK_SIZE 256 |
+ |
+#endif |