cpld-gpio-bus.h 428 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2013 Simon Guinot <simon.guinot@sequanux.org>
  4. */
  5. #ifndef _LACIE_CPLD_GPI0_BUS_H
  6. #define _LACIE_CPLD_GPI0_BUS_H
  7. struct cpld_gpio_bus {
  8. unsigned *addr;
  9. unsigned num_addr;
  10. unsigned *data;
  11. unsigned num_data;
  12. unsigned enable;
  13. };
  14. void cpld_gpio_bus_write(struct cpld_gpio_bus *cpld_gpio_bus,
  15. unsigned addr, unsigned value);
  16. #endif /* _LACIE_CPLD_GPI0_BUS_H */