1 /* FSI device & driver interfaces
3 * Copyright (C) IBM Corporation 2016
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
18 #include <linux/device.h>
25 struct fsi_slave *slave;
30 struct fsi_device_id {
35 #define FSI_VERSION_ANY 0
37 #define FSI_DEVICE(t) \
38 .engine_type = (t), .version = FSI_VERSION_ANY,
40 #define FSI_DEVICE_VERSIONED(t, v) \
41 .engine_type = (t), .version = (v),
45 struct device_driver drv;
46 const struct fsi_device_id *id_table;
49 #define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev)
50 #define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv)
52 extern struct bus_type fsi_bus_type;
54 #endif /* LINUX_FSI_H */