/* * 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__structplatform_device;structclk;structi2c_pnx_mif{intret;/* Return value */intmode;/* Interface mode */structcompletioncomplete;/* I/O completion */structtimer_listtimer;/* Timeout */u8*buf;/* Data buffer */intlen;/* Length of data buffer */intorder;/* RX Bytes to order via TX */};structi2c_pnx_algo_data{void__iomem*ioaddr;structi2c_pnx_mifmif;intlast;structclk*clk;structi2c_adapteradapter;intirq;u32timeout;};#endif /* __I2C_PNX_H__ */