1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | /* |
3 | * Greybus SPI library header |
4 | * |
5 | * copyright 2016 google inc. |
6 | * copyright 2016 linaro ltd. |
7 | * |
8 | * released under the gplv2 only. |
9 | */ |
10 | |
11 | #ifndef __SPILIB_H |
12 | #define __SPILIB_H |
13 | |
14 | struct device; |
15 | struct gb_connection; |
16 | |
17 | struct spilib_ops { |
18 | int (*prepare_transfer_hardware)(struct device *dev); |
19 | void (*unprepare_transfer_hardware)(struct device *dev); |
20 | }; |
21 | |
22 | int gb_spilib_master_init(struct gb_connection *connection, |
23 | struct device *dev, struct spilib_ops *ops); |
24 | void gb_spilib_master_exit(struct gb_connection *connection); |
25 | |
26 | #endif /* __SPILIB_H */ |
27 | |