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

Unified Diff: drivers/tpm/slb9635_i2c/tpm_tis_i2c.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: 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
Index: drivers/tpm/slb9635_i2c/tpm_tis_i2c.h
diff --git a/drivers/tpm/slb9635_i2c/tpm_tis_i2c.h b/drivers/tpm/slb9635_i2c/tpm_tis_i2c.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ea41b465606d101cc996096a8cd0564f9e711e6
--- /dev/null
+++ b/drivers/tpm/slb9635_i2c/tpm_tis_i2c.h
@@ -0,0 +1,28 @@
+/*******************************************************************************
+**
+** FILENAME: $Id: i2c_tddl.h 59 2010-10-20 10:04:48Z hkr $
+** COPYRIGHT: Infineon Technologies
+** DESCRIPTION: I2C TPM - TIS specific part of the TPM API.
+** CREATION DATE: 2010/11/19
+** LAST CHANGE: $Date: 2010-10-20 12:04:48 +0200 (Wed, 20 Oct 2010) $
+** $Author$
+** VERSION: $Revision: 59 $
+**
+*******************************************************************************/
+#ifndef _TPM_TIS_I2C_H_
+#define _TPM_TIS_I2C_H_
+
+#include "compatibility.h"
+
+/* Initialise tpm_tis_i2c layer
+ * @return 0 on success
+ * < 0 on error
+ */
+extern int tpm_tis_i2c_init(struct device *dev);
+
+extern void tpm_tis_i2c_cleanup(struct tpm_chip *chip);
+
+extern int iic_tpm_write(uint addr, const uchar *buffer, int len);
+extern int iic_tpm_read(uint addr, uchar *buffer, int len);
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698