xilinx-core.h 690 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __XILINX_CORE_H
  3. #define __XILINX_CORE_H
  4. #include <linux/device.h>
  5. /**
  6. * struct xilinx_fpga_core - interface between the driver and the core manager
  7. * of Xilinx 7 Series FPGA manager
  8. * @dev: device node
  9. * @write: write callback of the driver
  10. */
  11. struct xilinx_fpga_core {
  12. /* public: */
  13. struct device *dev;
  14. int (*write)(struct xilinx_fpga_core *core, const char *buf,
  15. size_t count);
  16. /* private: handled by xilinx-core */
  17. struct gpio_desc *prog_b;
  18. struct gpio_desc *init_b;
  19. struct gpio_desc *done;
  20. };
  21. int xilinx_core_probe(struct xilinx_fpga_core *core);
  22. #endif /* __XILINX_CORE_H */