linux/types.h: Use __u64 for aligned_u64
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / linux / i2c-pnx.h
blobe6e9c814da61a5123120658631a494fa950a91f5
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 #include <asm/arch/i2c.h>
17 struct i2c_pnx_mif {
18 int ret; /* Return value */
19 int mode; /* Interface mode */
20 struct completion complete; /* I/O completion */
21 struct timer_list timer; /* Timeout */
22 char * buf; /* Data buffer */
23 int len; /* Length of data buffer */
26 struct i2c_pnx_algo_data {
27 u32 base;
28 u32 ioaddr;
29 int irq;
30 struct i2c_pnx_mif mif;
31 int last;
34 struct i2c_pnx_data {
35 int (*suspend) (struct platform_device *pdev, pm_message_t state);
36 int (*resume) (struct platform_device *pdev);
37 u32 (*calculate_input_freq) (struct platform_device *pdev);
38 int (*set_clock_run) (struct platform_device *pdev);
39 int (*set_clock_stop) (struct platform_device *pdev);
40 struct i2c_adapter *adapter;
43 #endif /* __I2C_PNX_H__ */