Commit | Line | Data |
---|---|---|
41561f28 VW |
1 | /* |
2 | * Header file for I2C support on PNX010x/4008. | |
3 | * | |
4 | * Author: Dennis Kovalev <dkovalev@ru.mvista.com> | |
5 | * | |
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. | |
10 | */ | |
11 | ||
12 | #ifndef __I2C_PNX_H__ | |
13 | #define __I2C_PNX_H__ | |
14 | ||
2727f226 | 15 | struct platform_device; |
0321cb83 | 16 | struct clk; |
41561f28 VW |
17 | |
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 */ | |
4ced24c8 | 23 | u8 * buf; /* Data buffer */ |
41561f28 VW |
24 | int len; /* Length of data buffer */ |
25 | }; | |
26 | ||
27 | struct i2c_pnx_algo_data { | |
88d968b2 | 28 | void __iomem *ioaddr; |
41561f28 VW |
29 | struct i2c_pnx_mif mif; |
30 | int last; | |
0321cb83 | 31 | struct clk *clk; |
9d7f7363 RK |
32 | struct i2c_pnx_data *i2c_pnx; |
33 | struct i2c_adapter adapter; | |
41561f28 VW |
34 | }; |
35 | ||
36 | struct i2c_pnx_data { | |
9d7f7363 | 37 | const char *name; |
44c5d739 RK |
38 | u32 base; |
39 | int irq; | |
41561f28 VW |
40 | }; |
41 | ||
42 | #endif /* __I2C_PNX_H__ */ |