i2c-pnx.h 923 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __I2C_PNX_H__
  12. #define __I2C_PNX_H__
  13. struct platform_device;
  14. struct clk;
  15. struct i2c_pnx_mif {
  16. int ret; /* Return value */
  17. int mode; /* Interface mode */
  18. struct completion complete; /* I/O completion */
  19. struct timer_list timer; /* Timeout */
  20. u8 * buf; /* Data buffer */
  21. int len; /* Length of data buffer */
  22. int order; /* RX Bytes to order via TX */
  23. };
  24. struct i2c_pnx_algo_data {
  25. void __iomem *ioaddr;
  26. struct i2c_pnx_mif mif;
  27. int last;
  28. struct clk *clk;
  29. struct i2c_adapter adapter;
  30. int irq;
  31. u32 timeout;
  32. };
  33. #endif /* __I2C_PNX_H__ */