cpld-gpio-bus.h 643 B

123456789101112131415161718192021222324
  1. /*
  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. #ifndef _LACIE_CPLD_GPI0_BUS_H
  10. #define _LACIE_CPLD_GPI0_BUS_H
  11. struct cpld_gpio_bus {
  12. unsigned *addr;
  13. unsigned num_addr;
  14. unsigned *data;
  15. unsigned num_data;
  16. unsigned enable;
  17. };
  18. void cpld_gpio_bus_write(struct cpld_gpio_bus *cpld_gpio_bus,
  19. unsigned addr, unsigned value);
  20. #endif /* _LACIE_CPLD_GPI0_BUS_H */