aboutsummaryrefslogtreecommitdiffstats
path: root/roms/skiboot/libstb/drivers/tpm_i2c_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'roms/skiboot/libstb/drivers/tpm_i2c_interface.h')
-rw-r--r--roms/skiboot/libstb/drivers/tpm_i2c_interface.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/roms/skiboot/libstb/drivers/tpm_i2c_interface.h b/roms/skiboot/libstb/drivers/tpm_i2c_interface.h
new file mode 100644
index 000000000..514d8f835
--- /dev/null
+++ b/roms/skiboot/libstb/drivers/tpm_i2c_interface.h
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
+/* Copyright 2013-2018 IBM Corp. */
+
+#ifndef __TPM_I2C_H
+#define __TPM_I2C_H
+
+#include <i2c.h>
+#include <stdlib.h>
+
+#include "../tpm_chip.h"
+
+extern int tpm_i2c_request_send(struct tpm_dev *tpm_device, int read_write,
+ uint32_t offset, uint32_t offset_bytes, void* buf,
+ size_t buflen);
+#endif /* __TPM_I2C_H */