spilib.h 544 B

12345678910111213141516171819202122232425
  1. /*
  2. * Greybus SPI library header
  3. *
  4. * copyright 2016 google inc.
  5. * copyright 2016 linaro ltd.
  6. *
  7. * released under the gplv2 only.
  8. */
  9. #ifndef __SPILIB_H
  10. #define __SPILIB_H
  11. struct device;
  12. struct gb_connection;
  13. struct spilib_ops {
  14. int (*prepare_transfer_hardware)(struct device *dev);
  15. void (*unprepare_transfer_hardware)(struct device *dev);
  16. };
  17. int gb_spilib_master_init(struct gb_connection *connection, struct device *dev, struct spilib_ops *ops);
  18. void gb_spilib_master_exit(struct gb_connection *connection);
  19. #endif /* __SPILIB_H */