blob: 8db8323569db3a2c5a3ec93fbbeacfa695a7534b [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Guinotd5cc3f52013-06-18 15:14:49 +02002/*
3 * Copyright (C) 2013 Simon Guinot <simon.guinot@sequanux.org>
Simon Guinotd5cc3f52013-06-18 15:14:49 +02004 */
5
6#ifndef _LACIE_CPLD_GPI0_BUS_H
7#define _LACIE_CPLD_GPI0_BUS_H
8
9struct cpld_gpio_bus {
10 unsigned *addr;
11 unsigned num_addr;
12 unsigned *data;
13 unsigned num_data;
14 unsigned enable;
15};
16
17void cpld_gpio_bus_write(struct cpld_gpio_bus *cpld_gpio_bus,
18 unsigned addr, unsigned value);
19
20#endif /* _LACIE_CPLD_GPI0_BUS_H */