Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 1 | #ifndef _L3_H_ |
| 2 | #define _L3_H_ 1 |
| 3 | |
| 4 | struct l3_pins { |
Sylwester Nawrocki | 0306741 | 2016-08-04 15:38:41 +0200 | [diff] [blame] | 5 | void (*setdat)(struct l3_pins *, int); |
| 6 | void (*setclk)(struct l3_pins *, int); |
| 7 | void (*setmode)(struct l3_pins *, int); |
| 8 | |
| 9 | int gpio_data; |
| 10 | int gpio_clk; |
| 11 | int gpio_mode; |
| 12 | int use_gpios; |
| 13 | |
Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 14 | int data_hold; |
| 15 | int data_setup; |
| 16 | int clock_high; |
| 17 | int mode_hold; |
| 18 | int mode; |
| 19 | int mode_setup; |
| 20 | }; |
| 21 | |
Sylwester Nawrocki | 0306741 | 2016-08-04 15:38:41 +0200 | [diff] [blame] | 22 | struct device; |
| 23 | |
Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 24 | int l3_write(struct l3_pins *adap, u8 addr, u8 *data, int len); |
Sylwester Nawrocki | 0306741 | 2016-08-04 15:38:41 +0200 | [diff] [blame] | 25 | int l3_set_gpio_ops(struct device *dev, struct l3_pins *adap); |
Christian Pellegrin | 1cad1de | 2008-11-15 08:58:16 +0100 | [diff] [blame] | 26 | |
| 27 | #endif |