i2c-algo-sgi.h 636 B

1234567891011121314151617181920212223242526
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License version 2 as published by the Free Software Foundation.
  4. *
  5. * Copyright (C) 2003 Ladislav Michl <ladis@linux-mips.org>
  6. */
  7. #ifndef I2C_ALGO_SGI_H
  8. #define I2C_ALGO_SGI_H 1
  9. #include <linux/i2c.h>
  10. struct i2c_algo_sgi_data {
  11. void *data; /* private data for lowlevel routines */
  12. unsigned (*getctrl)(void *data);
  13. void (*setctrl)(void *data, unsigned val);
  14. unsigned (*rdata)(void *data);
  15. void (*wdata)(void *data, unsigned val);
  16. int xfer_timeout;
  17. int ack_timeout;
  18. };
  19. int i2c_sgi_add_bus(struct i2c_adapter *);
  20. #endif /* I2C_ALGO_SGI_H */