Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Greybus SPI library header
0004  *
0005  * copyright 2016 google inc.
0006  * copyright 2016 linaro ltd.
0007  *
0008  * released under the gplv2 only.
0009  */
0010 
0011 #ifndef __SPILIB_H
0012 #define __SPILIB_H
0013 
0014 struct device;
0015 struct gb_connection;
0016 
0017 struct spilib_ops {
0018     int (*prepare_transfer_hardware)(struct device *dev);
0019     void (*unprepare_transfer_hardware)(struct device *dev);
0020 };
0021 
0022 int gb_spilib_master_init(struct gb_connection *connection,
0023               struct device *dev, struct spilib_ops *ops);
0024 void gb_spilib_master_exit(struct gb_connection *connection);
0025 
0026 #endif /* __SPILIB_H */