Lines Matching defs:iot
238 bus_space_tag_t iot = sc->sc_iot;
245 bus_space_write_1(iot, ioh, SCTL, SCTL_DISABLE | SCTL_CTRLRST);
246 bus_space_write_1(iot, ioh, SCMD, 0);
247 bus_space_write_1(iot, ioh, TMOD, 0);
248 bus_space_write_1(iot, ioh, PCTL, 0);
249 bus_space_write_1(iot, ioh, TEMP, 0);
250 bus_space_write_1(iot, ioh, TCH, 0);
251 bus_space_write_1(iot, ioh, TCM, 0);
252 bus_space_write_1(iot, ioh, TCL, 0);
253 bus_space_write_1(iot, ioh, INTS, 0);
254 bus_space_write_1(iot, ioh, SCTL,
256 bus_space_write_1(iot, ioh, BDID, sc->sc_initiator);
258 bus_space_write_1(iot, ioh, SCTL,
259 bus_space_read_1(iot, ioh, SCTL) & ~SCTL_DISABLE);
269 bus_space_tag_t iot = sc->sc_iot;
273 bus_space_write_1(iot, ioh, SCMD, bus_space_read_1(iot, ioh, SCMD) | SCMD_RST);
275 bus_space_write_1(iot, ioh, SCMD, bus_space_read_1(iot, ioh, SCMD) & ~SCMD_RST);
469 bus_space_tag_t iot = sc->sc_iot;
478 if (bus_space_read_1(iot, ioh, INTS) != 0)
495 bus_space_tag_t iot = sc->sc_iot;
500 bus_space_write_1(iot, ioh, SCMD, SCMD_SET_ATN);
511 bus_space_tag_t iot = sc->sc_iot;
516 bus_space_write_1(iot, ioh, TMOD,
519 bus_space_write_1(iot, ioh, TMOD, 0);
533 bus_space_tag_t iot = sc->sc_iot;
540 bus_space_write_1(iot, ioh, SCMD, SCMD_SET_ATN);
543 bus_space_write_1(iot, ioh, PCTL, 0);
544 bus_space_write_1(iot, ioh, TEMP,
559 bus_space_write_1(iot, ioh, TCH, 2);
560 bus_space_write_1(iot, ioh, TCM, 113);
561 bus_space_write_1(iot, ioh, TCL, 3);
562 bus_space_write_1(iot, ioh, SCMD, SCMD_SELECT);
810 bus_space_tag_t iot = sc->sc_iot;
839 if ((bus_space_read_1(iot, ioh, PSNS) & PSNS_REQ) != 0)
844 if (bus_space_read_1(iot, ioh, INTS) != 0) {
854 if ((bus_space_read_1(iot, ioh, SERR) &
861 bus_space_write_1(iot, ioh, TCH, 0);
862 bus_space_write_1(iot, ioh, TCM, 0);
863 bus_space_write_1(iot, ioh, TCL, 1);
864 bus_space_write_1(iot, ioh, PCTL,
867 bus_space_write_1(iot, ioh, SCMD, SCMD_XFR); /* | SCMD_PROG_XFR */
869 bus_space_write_1(iot, ioh, SCMD, SCMD_XFR | SCMD_PROG_XFR); /* XXX */
873 /*if ((bus_space_read_1(iot, ioh, SSTS) & SSTS_BUSY) != 0
874 && (bus_space_read_1(iot, ioh, SSTS) & SSTS_DREG_EMPTY) != 0)*/
875 if ((bus_space_read_1(iot, ioh, SSTS) & SSTS_DREG_EMPTY) == 0)
883 intstat = bus_space_read_1(iot, ioh, INTS);
889 (void) bus_space_read_1(iot, ioh, DREG);
893 *sc->sc_imp++ = bus_space_read_1(iot, ioh, DREG);
910 (void) bus_space_read_1(iot, ioh, DREG);
919 /*(void) bus_space_read_1(iot, ioh, DREG);*/
920 while ((bus_space_read_1(iot, ioh, PSNS) & ACKI) != 0)
1095 (void) bus_space_read_1(iot, ioh, DREG);
1096 while ((bus_space_read_1(iot, ioh, PSNS) & ACKI) != 0)
1104 bus_space_write_1(iot, ioh, SCMD, SCMD_RST_ACK);
1114 bus_space_tag_t iot = sc->sc_iot;
1142 bus_space_write_1(iot, ioh, SCMD,
1235 bus_space_write_1(iot, ioh, TCH, n >> 16);
1236 bus_space_write_1(iot, ioh, TCM, n >> 8);
1237 bus_space_write_1(iot, ioh, TCL, n);
1238 bus_space_write_1(iot, ioh, PCTL, sc->sc_phase | PCTL_BFINT_ENAB);
1240 bus_space_write_1(iot, ioh, SCMD, SCMD_XFR); /* XXX */
1242 bus_space_write_1(iot, ioh, SCMD,
1246 if ((bus_space_read_1(iot, ioh, SSTS) & SSTS_BUSY) != 0)
1248 if (bus_space_read_1(iot, ioh, INTS) != 0)
1254 if ((bus_space_read_1(iot, ioh, PSNS) & PSNS_REQ) != 0)
1259 if (bus_space_read_1(iot, ioh, INTS) != 0) {
1272 bus_space_write_1(iot, ioh, SCMD, SCMD_RST_ATN);
1280 bus_space_write_1(iot, ioh, SCMD, SCMD_RST_ATN);
1283 while ((bus_space_read_1(iot, ioh, SSTS) & SSTS_DREG_FULL) != 0)
1286 bus_space_write_1(iot, ioh, DREG, *--sc->sc_omp);
1292 while ((bus_space_read_1(iot, ioh, PSNS) & ACKI) != 0)
1330 bus_space_tag_t iot = sc->sc_iot;
1338 bus_space_write_1(iot, ioh, TCH, n >> 16);
1339 bus_space_write_1(iot, ioh, TCM, n >> 8);
1340 bus_space_write_1(iot, ioh, TCL, n);
1341 bus_space_write_1(iot, ioh, PCTL, sc->sc_phase | PCTL_BFINT_ENAB);
1343 bus_space_write_1(iot, ioh, SCMD, SCMD_XFR); /* XXX */
1345 bus_space_write_1(iot, ioh, SCMD,
1349 if ((bus_space_read_1(iot, ioh, SSTS) & SSTS_BUSY) != 0)
1351 if (bus_space_read_1(iot, ioh, INTS) != 0)
1364 intstat = bus_space_read_1(iot, ioh, INTS);
1366 if ((bus_space_read_1(iot, ioh, SSTS) &
1381 bus_space_write_multi_1(iot, ioh, DREG, p, xfer);
1386 bus_space_write_1(iot, ioh, DREG, *p++);
1388 bus_space_write_1(iot, ioh, DREG, *p++);
1390 bus_space_write_1(iot, ioh, DREG, *p++);
1392 bus_space_write_1(iot, ioh, DREG, *p++);
1394 bus_space_write_1(iot, ioh, DREG, *p++);
1396 bus_space_write_1(iot, ioh, DREG, *p++);
1398 bus_space_write_1(iot, ioh, DREG, *p++);
1400 bus_space_write_1(iot, ioh, DREG, *p++);
1407 if (bus_space_read_1(iot, ioh, INTS) != 0)
1415 if ((bus_space_read_1(iot, ioh, SSTS) &
1418 intstat = bus_space_read_1(iot, ioh, INTS);
1432 amount = ((bus_space_read_1(iot, ioh, TCH) << 16) |
1433 (bus_space_read_1(iot, ioh, TCM) << 8) |
1434 bus_space_read_1(iot, ioh, TCL));
1456 bus_space_tag_t iot = sc->sc_iot;
1464 bus_space_write_1(iot, ioh, TCH, n >> 16);
1465 bus_space_write_1(iot, ioh, TCM, n >> 8);
1466 bus_space_write_1(iot, ioh, TCL, n);
1467 bus_space_write_1(iot, ioh, PCTL, sc->sc_phase | PCTL_BFINT_ENAB);
1469 bus_space_write_1(iot, ioh, SCMD, SCMD_XFR); /* XXX */
1471 bus_space_write_1(iot, ioh, SCMD,
1475 if ((bus_space_read_1(iot, ioh, SSTS) & SSTS_BUSY) != 0)
1477 if (bus_space_read_1(iot, ioh, INTS) != 0)
1491 intstat = bus_space_read_1(iot, ioh, INTS);
1492 sstat = bus_space_read_1(iot, ioh, SSTS);
1517 bus_space_read_multi_1(iot, ioh, DREG, p, xfer);
1522 *p++ = bus_space_read_1(iot, ioh, DREG);
1524 *p++ = bus_space_read_1(iot, ioh, DREG);
1526 *p++ = bus_space_read_1(iot, ioh, DREG);
1528 *p++ = bus_space_read_1(iot, ioh, DREG);
1530 *p++ = bus_space_read_1(iot, ioh, DREG);
1532 *p++ = bus_space_read_1(iot, ioh, DREG);
1534 *p++ = bus_space_read_1(iot, ioh, DREG);
1536 *p++ = bus_space_read_1(iot, ioh, DREG);
1554 if (bus_space_read_1(iot, ioh, INTS) != 0)
1578 bus_space_tag_t iot = sc->sc_iot;
1590 ints = bus_space_read_1(iot, ioh, INTS);
1597 bus_space_write_1(iot, ioh, SCTL,
1598 bus_space_read_1(iot, ioh, SCTL) & ~SCTL_INTR_ENAB);
1610 while ((ints = bus_space_read_1(iot, ioh, INTS)) == 0)
1614 ints = bus_space_read_1(iot, ioh, INTS);
1626 if ((bus_space_read_1(iot, ioh, SERR) & (SERR_SCSI_PAR|SERR_SPC_PAR))
1675 sc->sc_selid = bus_space_read_1(iot, ioh, TEMP);
1768 bus_space_write_1(iot, ioh, PCTL,
1769 bus_space_read_1(iot, ioh, PCTL) & ~PCTL_BFINT_ENAB);
1771 bus_space_write_1(iot, ioh, INTS, ints);
1846 if ((bus_space_read_1(iot, ioh, PSNS) & PSNS_REQ) == 0) {
1851 bus_space_write_1(iot, ioh, INTS, ints);
1853 while ((bus_space_read_1(iot, ioh, PSNS) & PSNS_REQ) == 0)
1860 sc->sc_phase = bus_space_read_1(iot, ioh, PSNS) & PH_MASK;
1862 bus_space_write_1(iot, ioh, PCTL, sc->sc_phase);
1925 /*acb->target_stat = bus_space_read_1(iot, ioh, DREG);*/
1940 bus_space_write_1(iot, ioh, INTS, ints);
1952 bus_space_write_1(iot, ioh, INTS, ints);
1953 bus_space_write_1(iot, ioh, SCTL,
1954 bus_space_read_1(iot, ioh, SCTL) | SCTL_INTR_ENAB);
2064 bus_space_tag_t iot = sc->sc_iot;
2068 bus_space_read_1(iot, ioh, BDID),
2069 bus_space_read_1(iot, ioh, SCTL),
2070 bus_space_read_1(iot, ioh, SCMD),
2071 bus_space_read_1(iot, ioh, TMOD));
2073 bus_space_read_1(iot, ioh, INTS),
2074 bus_space_read_1(iot, ioh, PSNS),
2075 bus_space_read_1(iot, ioh, SSTS),
2076 bus_space_read_1(iot, ioh, SERR),
2077 bus_space_read_1(iot, ioh, PCTL));
2079 bus_space_read_1(iot, ioh, MBC),
2081 bus_space_read_1(iot, ioh, DREG),
2085 bus_space_read_1(iot, ioh, TEMP),
2086 bus_space_read_1(iot, ioh, TCH),
2087 bus_space_read_1(iot, ioh, TCM));
2089 bus_space_read_1(iot, ioh, TCL),
2090 bus_space_read_1(iot, ioh, EXBF));