Merge branch 'core/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux...
[linux-2.6/linux-2.6-openrd.git] / include / linux / i2c-algo-sgi.h
blob3b7715024e6946476bb9d9e73139c9c6f0aa49ac
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License version 2 as published by the Free Software Foundation.
5 * Copyright (C) 2003 Ladislav Michl <ladis@linux-mips.org>
6 */
8 #ifndef I2C_ALGO_SGI_H
9 #define I2C_ALGO_SGI_H 1
11 #include <linux/i2c.h>
13 struct i2c_algo_sgi_data {
14 void *data; /* private data for lowlevel routines */
15 unsigned (*getctrl)(void *data);
16 void (*setctrl)(void *data, unsigned val);
17 unsigned (*rdata)(void *data);
18 void (*wdata)(void *data, unsigned val);
20 int xfer_timeout;
21 int ack_timeout;
24 int i2c_sgi_add_bus(struct i2c_adapter *);
26 #endif /* I2C_ALGO_SGI_H */