fsi-slave.h 601 B

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