blob: e9e9b96041d6977a9e5e7229d128528a24895030 [file] [log] [blame]
Simon Guinot068b2ad2013-06-18 15:14:49 +02001/*
2 * Copyright (C) 2013 Simon Guinot <simon.guinot@sequanux.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 */
9
10#ifndef _LACIE_CPLD_GPI0_BUS_H
11#define _LACIE_CPLD_GPI0_BUS_H
12
13struct cpld_gpio_bus {
14 unsigned *addr;
15 unsigned num_addr;
16 unsigned *data;
17 unsigned num_data;
18 unsigned enable;
19};
20
21void cpld_gpio_bus_write(struct cpld_gpio_bus *cpld_gpio_bus,
22 unsigned addr, unsigned value);
23
24#endif /* _LACIE_CPLD_GPI0_BUS_H */