cpld-gpio-bus.h 428 B

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