Lines Matching defs:mha_softc
87 struct mha_softc { struct
88 device_t sc_dev;
89 volatile void *sc_iobase;
90 volatile u_char *sc_pc;
91 volatile u_short *sc_ps;
92 volatile u_char *sc_pcx;
94 struct scsipi_channel sc_channel;
95 struct scsipi_adapter sc_adapter;
98 struct acb *sc_nexus; /* current command */
99 struct acb sc_acb[8]; /* one per target */
100 struct spc_tinfo sc_tinfo[8];
103 u_char *sc_dp; /* Current data pointer */
104 size_t sc_dleft; /* Data bytes left to transfer */
106 u_char *sc_cp; /* Current command pointer */
107 size_t sc_cleft; /* Command bytes left to transfer */
110 int sc_phase; /* Copy of what bus phase we are in */
111 int sc_prevphase; /* Copy of what bus phase we were in */
112 u_char sc_state; /* State applicable to the adapter */
113 u_char sc_flags;
114 u_char sc_selid; /* Reselection ID */
115 volatile u_char sc_spcinitialized; /* */
118 u_char sc_msgpriq; /* Messages we want to send */
119 u_char sc_msgout; /* What message is on its way out? */
120 u_char sc_msgoutq; /* Messages sent during last MESSAGE OUT */
121 u_char sc_lastmsg; /* Message last transmitted */
122 u_char sc_currmsg; /* Message currently ready to transmit */
124 u_char sc_omess[SPC_MAX_MSG_LEN];
125 u_char *sc_omp; /* Outgoing message pointer */
126 u_char sc_imess[SPC_MAX_MSG_LEN];
127 u_char *sc_imp; /* Incoming message pointer */
128 size_t sc_imlen;
131 int sc_freq; /* Clock frequency in MHz */
132 int sc_id; /* our scsi id */
133 int sc_minsync; /* Minimum sync period / 4 */
134 int sc_maxsync; /* Maximum sync period / 4 */
137 bus_dma_tag_t sc_dmat;
138 bus_dma_segment_t sc_dmaseg[1];
139 int sc_ndmasegs;
140 bus_dmamap_t sc_dmamap;
141 void * sc_dmabuf;
142 u_char *sc_p;
143 u_int32_t sc_dmasize;