Viresh Kumar | 4c41292 | 2016-05-14 23:42:19 +0530 | [diff] [blame] | 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 | |
| 10 | #ifndef __SPILIB_H |
| 11 | #define __SPILIB_H |
| 12 | |
Viresh Kumar | 92bcadd | 2016-07-21 14:45:06 -0700 | [diff] [blame] | 13 | struct device; |
Viresh Kumar | 4c41292 | 2016-05-14 23:42:19 +0530 | [diff] [blame] | 14 | struct gb_connection; |
| 15 | |
Viresh Kumar | 92bcadd | 2016-07-21 14:45:06 -0700 | [diff] [blame] | 16 | struct spilib_ops { |
| 17 | int (*prepare_transfer_hardware)(struct device *dev); |
| 18 | void (*unprepare_transfer_hardware)(struct device *dev); |
| 19 | }; |
| 20 | |
| 21 | int gb_spilib_master_init(struct gb_connection *connection, struct device *dev, struct spilib_ops *ops); |
Viresh Kumar | 4c41292 | 2016-05-14 23:42:19 +0530 | [diff] [blame] | 22 | void gb_spilib_master_exit(struct gb_connection *connection); |
| 23 | |
| 24 | #endif /* __SPILIB_H */ |