From 8a6d48c0542876eb3acfc0970c0ab7872db08d5f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 6 Dec 2009 05:26:23 +0100 Subject: check in the original version of dde linux26. --- .../contrib/include/linux/i2c-algo-sgi.h | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libdde_linux26/contrib/include/linux/i2c-algo-sgi.h (limited to 'libdde_linux26/contrib/include/linux/i2c-algo-sgi.h') 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 + */ + +#ifndef I2C_ALGO_SGI_H +#define I2C_ALGO_SGI_H 1 + +#include + +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 */ -- cgit v1.2.3