Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Guinot | 068b2ad | 2013-06-18 15:14:49 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2013 Simon Guinot <simon.guinot@sequanux.org> |
Simon Guinot | 068b2ad | 2013-06-18 15:14:49 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _LACIE_CPLD_GPI0_BUS_H |
| 7 | #define _LACIE_CPLD_GPI0_BUS_H |
| 8 | |
| 9 | struct cpld_gpio_bus { |
| 10 | unsigned *addr; |
| 11 | unsigned num_addr; |
| 12 | unsigned *data; |
| 13 | unsigned num_data; |
| 14 | unsigned enable; |
| 15 | }; |
| 16 | |
| 17 | void cpld_gpio_bus_write(struct cpld_gpio_bus *cpld_gpio_bus, |
| 18 | unsigned addr, unsigned value); |
| 19 | |
| 20 | #endif /* _LACIE_CPLD_GPI0_BUS_H */ |