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