Go to the documentation of this file.
20 #ifndef SCSI_TRANSPORT_SPI_H
21 #define SCSI_TRANSPORT_SPI_H
75 #define spi_period(x) (((struct spi_transport_attrs *)&(x)->starget_data)->period)
76 #define spi_min_period(x) (((struct spi_transport_attrs *)&(x)->starget_data)->min_period)
77 #define spi_offset(x) (((struct spi_transport_attrs *)&(x)->starget_data)->offset)
78 #define spi_max_offset(x) (((struct spi_transport_attrs *)&(x)->starget_data)->max_offset)
79 #define spi_width(x) (((struct spi_transport_attrs *)&(x)->starget_data)->width)
80 #define spi_max_width(x) (((struct spi_transport_attrs *)&(x)->starget_data)->max_width)
81 #define spi_iu(x) (((struct spi_transport_attrs *)&(x)->starget_data)->iu)
82 #define spi_max_iu(x) (((struct spi_transport_attrs *)&(x)->starget_data)->max_iu)
83 #define spi_dt(x) (((struct spi_transport_attrs *)&(x)->starget_data)->dt)
84 #define spi_qas(x) (((struct spi_transport_attrs *)&(x)->starget_data)->qas)
85 #define spi_max_qas(x) (((struct spi_transport_attrs *)&(x)->starget_data)->max_qas)
86 #define spi_wr_flow(x) (((struct spi_transport_attrs *)&(x)->starget_data)->wr_flow)
87 #define spi_rd_strm(x) (((struct spi_transport_attrs *)&(x)->starget_data)->rd_strm)
88 #define spi_rti(x) (((struct spi_transport_attrs *)&(x)->starget_data)->rti)
89 #define spi_pcomp_en(x) (((struct spi_transport_attrs *)&(x)->starget_data)->pcomp_en)
90 #define spi_hold_mcs(x) (((struct spi_transport_attrs *)&(x)->starget_data)->hold_mcs)
91 #define spi_initial_dv(x) (((struct spi_transport_attrs *)&(x)->starget_data)->initial_dv)
92 #define spi_dv_pending(x) (((struct spi_transport_attrs *)&(x)->starget_data)->dv_pending)
94 #define spi_support_sync(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_sync)
95 #define spi_support_wide(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_wide)
96 #define spi_support_dt(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_dt)
97 #define spi_support_dt_only(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_dt_only)
98 #define spi_support_ius(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_ius)
99 #define spi_support_qas(x) (((struct spi_transport_attrs *)&(x)->starget_data)->support_qas)
101 #define spi_flags(x) (((struct spi_transport_attrs *)&(x)->starget_data)->flags)
102 #define spi_signalling(h) (((struct spi_host_attrs *)(h)->shost_data)->signalling)