l3.h 485 B

12345678910111213141516171819202122232425262728
  1. #ifndef _L3_H_
  2. #define _L3_H_ 1
  3. struct l3_pins {
  4. void (*setdat)(struct l3_pins *, int);
  5. void (*setclk)(struct l3_pins *, int);
  6. void (*setmode)(struct l3_pins *, int);
  7. int gpio_data;
  8. int gpio_clk;
  9. int gpio_mode;
  10. int use_gpios;
  11. int data_hold;
  12. int data_setup;
  13. int clock_high;
  14. int mode_hold;
  15. int mode;
  16. int mode_setup;
  17. };
  18. struct device;
  19. int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len);
  20. int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap);
  21. #endif