2017-11-07 06:58:41 -07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2016-05-14 12:12:19 -06:00
|
|
|
/*
|
|
|
|
* Greybus SPI library header
|
|
|
|
*
|
|
|
|
* copyright 2016 google inc.
|
|
|
|
* copyright 2016 linaro ltd.
|
|
|
|
*
|
|
|
|
* released under the gplv2 only.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SPILIB_H
|
|
|
|
#define __SPILIB_H
|
|
|
|
|
2016-07-21 15:45:06 -06:00
|
|
|
struct device;
|
2016-05-14 12:12:19 -06:00
|
|
|
struct gb_connection;
|
|
|
|
|
2016-07-21 15:45:06 -06:00
|
|
|
struct spilib_ops {
|
|
|
|
int (*prepare_transfer_hardware)(struct device *dev);
|
|
|
|
void (*unprepare_transfer_hardware)(struct device *dev);
|
|
|
|
};
|
|
|
|
|
2017-07-26 16:13:30 -06:00
|
|
|
int gb_spilib_master_init(struct gb_connection *connection,
|
|
|
|
struct device *dev, struct spilib_ops *ops);
|
2016-05-14 12:12:19 -06:00
|
|
|
void gb_spilib_master_exit(struct gb_connection *connection);
|
|
|
|
|
|
|
|
#endif /* __SPILIB_H */
|