Blame view
include/linux/i2c-pnx.h
946 Bytes
41561f28e i2c: New Philips ... |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/* * Header file for I2C support on PNX010x/4008. * * Author: Dennis Kovalev <dkovalev@ru.mvista.com> * * 2004-2006 (c) MontaVista Software, Inc. This file is licensed under * the terms of the GNU General Public License version 2. This program * is licensed "as is" without any warranty of any kind, whether express * or implied. */ #ifndef __I2C_PNX_H__ #define __I2C_PNX_H__ |
2727f226a [ARM] fix pnx4008... |
14 |
struct platform_device; |
0321cb83e ARM: PNX4008: mov... |
15 |
struct clk; |
41561f28e i2c: New Philips ... |
16 17 18 19 20 21 |
struct i2c_pnx_mif { int ret; /* Return value */ int mode; /* Interface mode */ struct completion complete; /* I/O completion */ struct timer_list timer; /* Timeout */ |
4ced24c89 i2c: i2c-pnx: Mad... |
22 |
u8 * buf; /* Data buffer */ |
41561f28e i2c: New Philips ... |
23 24 25 26 |
int len; /* Length of data buffer */ }; struct i2c_pnx_algo_data { |
88d968b22 ARM: PNX4008: Mak... |
27 |
void __iomem *ioaddr; |
41561f28e i2c: New Philips ... |
28 29 |
struct i2c_pnx_mif mif; int last; |
0321cb83e ARM: PNX4008: mov... |
30 |
struct clk *clk; |
9d7f73632 ARM: PNX4008: mov... |
31 32 |
struct i2c_pnx_data *i2c_pnx; struct i2c_adapter adapter; |
41561f28e i2c: New Philips ... |
33 34 35 |
}; struct i2c_pnx_data { |
9d7f73632 ARM: PNX4008: mov... |
36 |
const char *name; |
44c5d7391 ARM: PNX4008: kza... |
37 38 |
u32 base; int irq; |
41561f28e i2c: New Philips ... |
39 40 41 |
}; #endif /* __I2C_PNX_H__ */ |