xref: /linux/drivers/fsi/fsi-slave.h (revision db10cb9b)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (C) IBM Corporation 2023 */
3 
4 #ifndef DRIVERS_FSI_SLAVE_H
5 #define DRIVERS_FSI_SLAVE_H
6 
7 #include <linux/cdev.h>
8 #include <linux/device.h>
9 
10 struct fsi_master;
11 
12 struct fsi_slave {
13 	struct device		dev;
14 	struct fsi_master	*master;
15 	struct cdev		cdev;
16 	int			cdev_idx;
17 	int			id;	/* FSI address */
18 	int			link;	/* FSI link# */
19 	u32			cfam_id;
20 	int			chip_id;
21 	uint32_t		size;	/* size of slave address space */
22 	u8			t_send_delay;
23 	u8			t_echo_delay;
24 };
25 
26 #define to_fsi_slave(d) container_of(d, struct fsi_slave, dev)
27 
28 #endif /* DRIVERS_FSI_SLAVE_H */
29