summaryrefslogtreecommitdiff
path: root/libdde_linux26/contrib/include/linux/i2c-algo-sgi.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-05-08 22:45:06 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-05-08 22:45:06 +0200
commit878c5456c5a2f9bff741a7b7bcdccd5c1694db22 (patch)
treebcf3d101215fa70b953aa7e9d0de805c5f8865b4 /libdde_linux26/contrib/include/linux/i2c-algo-sgi.h
parent9062642230b7bfb48e7b30f98cba8528172b2d36 (diff)
parentc8f311a7a32d4b0cb0c21672f63bca8efdf5d83a (diff)
Merge branch 'dde' into HEAD
Diffstat (limited to 'libdde_linux26/contrib/include/linux/i2c-algo-sgi.h')
-rw-r--r--libdde_linux26/contrib/include/linux/i2c-algo-sgi.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libdde_linux26/contrib/include/linux/i2c-algo-sgi.h b/libdde_linux26/contrib/include/linux/i2c-algo-sgi.h
new file mode 100644
index 00000000..3b771502
--- /dev/null
+++ b/libdde_linux26/contrib/include/linux/i2c-algo-sgi.h
@@ -0,0 +1,26 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License version 2 as published by the Free Software Foundation.
+ *
+ * Copyright (C) 2003 Ladislav Michl <ladis@linux-mips.org>
+ */
+
+#ifndef I2C_ALGO_SGI_H
+#define I2C_ALGO_SGI_H 1
+
+#include <linux/i2c.h>
+
+struct i2c_algo_sgi_data {
+ void *data; /* private data for lowlevel routines */
+ unsigned (*getctrl)(void *data);
+ void (*setctrl)(void *data, unsigned val);
+ unsigned (*rdata)(void *data);
+ void (*wdata)(void *data, unsigned val);
+
+ int xfer_timeout;
+ int ack_timeout;
+};
+
+int i2c_sgi_add_bus(struct i2c_adapter *);
+
+#endif /* I2C_ALGO_SGI_H */