0001
0002
0003
0004
0005
0006
0007
0008
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