Lines Matching refs:sc_rt
122 bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCID); in siop_common_attach()
164 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_ISTAT, ISTAT_SRST); in siop_common_reset()
166 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_ISTAT, 0); in siop_common_reset()
169 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL0, in siop_common_reset()
171 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL1, 0); in siop_common_reset()
172 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL3, sc->clock_div); in siop_common_reset()
173 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SXFER, 0); in siop_common_reset()
174 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_DIEN, 0xff); in siop_common_reset()
175 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SIEN0, in siop_common_reset()
177 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SIEN1, in siop_common_reset()
179 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST2, 0); in siop_common_reset()
180 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST3, STEST3_TE); in siop_common_reset()
181 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STIME0, in siop_common_reset()
183 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCID, in siop_common_reset()
185 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_RESPID0, in siop_common_reset()
187 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_DCNTL, in siop_common_reset()
190 bus_space_write_1(sc->sc_rt, sc->sc_rh, in siop_common_reset()
195 stest3 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_STEST3); in siop_common_reset()
196 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST1, in siop_common_reset()
200 while ((bus_space_read_1(sc->sc_rt, sc->sc_rh, in siop_common_reset()
208 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST3, in siop_common_reset()
210 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST1, in siop_common_reset()
212 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST3, stest3); in siop_common_reset()
214 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST1, 0); in siop_common_reset()
218 stest1 = bus_space_read_4(sc->sc_rt, sc->sc_rh, SIOP_STEST1); in siop_common_reset()
220 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST1, stest1); in siop_common_reset()
224 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST5, in siop_common_reset()
225 bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST5) | in siop_common_reset()
229 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_GPCNTL, in siop_common_reset()
230 bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_GPCNTL) & 0xfe); in siop_common_reset()
234 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL4, 0); in siop_common_reset()
236 sc->mode = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_STEST4) & in siop_common_reset()
374 bus_space_write_1(sc->sc_rt, sc->sc_rh, in siop_wdtr_neg()
399 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL3, in siop_wdtr_neg()
503 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL3, in siop_ppr_neg()
505 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SXFER, in siop_ppr_neg()
507 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL4, in siop_ppr_neg()
641 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL3, in siop_sdtr_neg()
643 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SXFER, in siop_sdtr_neg()
716 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_ISTAT, ISTAT_ABRT); in siop_ioctl()
740 offset = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCRATCHA + 1); in siop_ma()
751 dbc = bus_space_read_4(sc->sc_rt, sc->sc_rh, SIOP_DBC) & 0x00ffffff; in siop_ma()
755 bus_space_read_2(sc->sc_rt, sc->sc_rh, SIOP_DFBC); in siop_ma()
759 bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_DFIFO); in siop_ma()
761 dfifo |= (bus_space_read_1(sc->sc_rt, sc->sc_rh, in siop_ma()
768 sstat = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SSTAT0); in siop_ma()
774 sstat = bus_space_read_1(sc->sc_rt, sc->sc_rh, in siop_ma()
783 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3, in siop_ma()
784 bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3) | in siop_ma()
897 offset = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCRATCHA + 1); in siop_iwr()
920 bus_space_write_1(sc->sc_rt, sc->sc_rh, in siop_iwr()
938 int ctest3 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3); in siop_clearfifo()
943 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3, in siop_clearfifo()
945 while ((bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3) & in siop_clearfifo()
950 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST3, in siop_clearfifo()
951 bus_space_read_1(sc->sc_rt, sc->sc_rh, in siop_clearfifo()
972 (void)bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SIST0); in siop_modechange()
973 sist1 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SIST1); in siop_modechange()
976 sc->mode = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_STEST4) & in siop_modechange()
978 stest2 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_STEST2); in siop_modechange()
983 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST2, in siop_modechange()
989 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST2, in siop_modechange()
995 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STEST2, in siop_modechange()
1015 scntl1 = bus_space_read_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL1); in siop_resetbus()
1016 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL1, in siop_resetbus()
1020 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_SCNTL1, scntl1); in siop_resetbus()