i2c-xiic.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * i2c-xiic.h
  3. * Copyright (c) 2009 Intel Corporation
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18. /* Supports:
  19. * Xilinx IIC
  20. */
  21. #ifndef _LINUX_I2C_XIIC_H
  22. #define _LINUX_I2C_XIIC_H
  23. /**
  24. * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
  25. * @num_devices: Number of devices that shall be added when the driver
  26. * is probed.
  27. * @devices: The actuall devices to add.
  28. *
  29. * This purpose of this platform data struct is to be able to provide a number
  30. * of devices that should be added to the I2C bus. The reason is that sometimes
  31. * the I2C board info is not enough, a new PCI board can for instance be
  32. * plugged into a standard PC, and the bus number might be unknown at
  33. * early init time.
  34. */
  35. struct xiic_i2c_platform_data {
  36. u8 num_devices;
  37. struct i2c_board_info const *devices;
  38. };
  39. #endif /* _LINUX_I2C_XIIC_H */