Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(494)

Unified Diff: drivers/tpm/slb9635_i2c/tddl.h

Issue 6683023: Add Infineon v05 TPM driver (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Fix nits Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « drivers/tpm/slb9635_i2c/ifx_v05.c ('k') | drivers/tpm/slb9635_i2c/tddl.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/tpm/slb9635_i2c/tddl.h
diff --git a/drivers/tpm/slb9635_i2c/tddl.h b/drivers/tpm/slb9635_i2c/tddl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1af2473f4be6aa4fbd4fa25c6a698a6ba6c0ae0
--- /dev/null
+++ b/drivers/tpm/slb9635_i2c/tddl.h
@@ -0,0 +1,31 @@
+/*******************************************************************************
+**
+** FILENAME: tddl.h
+** COPYRIGHT: Infineon Technologies
+** DESCRIPTION: I2C TPM - TDDL API.
+** CREATOR: Peter Huewe <huewe.external@infineon.com>
+** LICENSE: GPL
+** VERSION: 2.1.1
+*******************************************************************************/
+#ifndef _TDDL_H_
+#define _TDDL_H_
+
+/* Includes from U-Boot */
+#include <linux/types.h>
+
+typedef uint32_t TDDL_RESULT;
+
+#define TDDL_SUCCESS 0x00000000L
+#define TDDL_E_FAIL 0x00000001L
+#define TDDL_E_COMPONENT_NOT_FOUND (TDDL_E_FAIL + 0x00000001L)
+#define TDDL_E_ALREADY_OPENED (TDDL_E_FAIL + 0x00000002L)
+
+
+/* if dev_addr != 0 - redefines TPM device address */
+TDDL_RESULT TDDL_Open(uint32_t dev_addr);
+
+TDDL_RESULT TDDL_Close(void);
+
+TDDL_RESULT TDDL_TransmitData(uint8_t *pbTransmitBuf, uint32_t dwTransmitBufLen,
+ uint8_t *pbReceiveBuf, uint32_t *pdwReceiveBufLen);
+#endif
« no previous file with comments | « drivers/tpm/slb9635_i2c/ifx_v05.c ('k') | drivers/tpm/slb9635_i2c/tddl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698