Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[linux-2.6.git] / include / linux / i2c-pnx.h
blob49ed17fdf0556436cd626e52e0a9cd9809bc610a
1 /*
2 * Header file for I2C support on PNX010x/4008.
4 * Author: Dennis Kovalev <dkovalev@ru.mvista.com>
6 * 2004-2006 (c) MontaVista Software, Inc. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
12 #ifndef __I2C_PNX_H__
13 #define __I2C_PNX_H__
15 struct platform_device;
16 struct clk;
18 struct i2c_pnx_mif {
19 int ret; /* Return value */
20 int mode; /* Interface mode */
21 struct completion complete; /* I/O completion */
22 struct timer_list timer; /* Timeout */
23 u8 * buf; /* Data buffer */
24 int len; /* Length of data buffer */
25 int order; /* RX Bytes to order via TX */
28 struct i2c_pnx_algo_data {
29 void __iomem *ioaddr;
30 struct i2c_pnx_mif mif;
31 int last;
32 struct clk *clk;
33 struct i2c_adapter adapter;
34 phys_addr_t base;
35 int irq;
36 u32 timeout;
39 #endif /* __I2C_PNX_H__ */