patch-2.4.25 linux-2.4.25/include/linux/i2c-algo-sgi.h
Next file: linux-2.4.25/include/linux/i2c-id.h
Previous file: linux-2.4.25/include/linux/hdlc.h
Back to the patch index
Back to the overall index
-  Lines: 28
-  Date:
2004-02-18 05:36:32.000000000 -0800
-  Orig file: 
linux-2.4.24/include/linux/i2c-algo-sgi.h
-  Orig date: 
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.24/include/linux/i2c-algo-sgi.h linux-2.4.25/include/linux/i2c-algo-sgi.h
@@ -0,0 +1,27 @@
+/*
+ * 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 *);
+int i2c_sgi_del_bus(struct i2c_adapter *);
+
+#endif /* I2C_ALGO_SGI_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)