siop_target
((struct siop_target*)sc->sc_c.targets[xs->sc_link->target])->siop_lun[xs->sc_link->lun];
((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
struct siop_target *siop_target =
(struct siop_target *)sc->sc_c.targets[target];
siop_lun = siop_target->siop_lun[lun];
struct siop_target *siop_target;
siop_target = (struct siop_target*)sc->sc_c.targets[target];
if (siop_target == NULL) {
siop_target = malloc(sizeof(*siop_target), M_DEVBUF,
if (siop_target == NULL) {
siop_target->target_c.status = TARST_PROBING;
siop_target->target_c.flags = 0;
siop_target->target_c.id =
siop_target->target_c.id |= target << 16; /* id */
siop_target->lunsw = siop_get_lunsw(sc);
if (siop_target->lunsw == NULL) {
free(siop_target, M_DEVBUF, sizeof *siop_target);
siop_target->siop_lun[i] = NULL;
(struct siop_common_target *)siop_target;
if (siop_target->siop_lun[lun] == NULL) {
siop_target->siop_lun[lun] =
if (siop_target->siop_lun[lun] == NULL) {
struct siop_target *siop_target;
siop_target = (struct siop_target*)sc->sc_c.targets[target];
siop_cmd->cmd_c.siop_target = sc->sc_c.targets[target];
siop_target->target_c.status == TARST_PROBING)
siop_target->target_c.status = TARST_ASYNC;
((struct siop_target*)sc->sc_c.targets[target])->siop_lun[lun];
struct siop_target *siop_target;
siop_target = (struct siop_target *)sc->sc_c.targets[target];
siop_target->reseloff = Ent_resel_targ0 / 4 + i * 2;
if ((siop_script_read(sc, siop_target->reseloff) & 0xff)
target, i, siop_target->reseloff);
siop_script_write(sc, siop_target->reseloff,
siop_script_write(sc, siop_target->reseloff + 1,
siop_target->lunsw->lunsw_off * 4 +
siop_lun = siop_target->siop_lun[i];
struct siop_target *siop_target = (struct siop_target *)_siop_target;
siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4),
0x78030000 | ((siop_target->target_c.id >> 16) & 0x0000ff00));
siop_target->lunsw->lunsw_off + (Ent_restore_scntl3 / 4) + 2,
0x78050000 | (siop_target->target_c.id & 0x0000ff00));
struct siop_target *siop_target =
(struct siop_target *)sc->sc_c.targets[target];
struct siop_lun *siop_lun = siop_target->siop_lun[lun];
lunsw = siop_target->lunsw;
((siop_target->target_c.flags & TARF_TAG) ?
if (siop_target->target_c.flags & TARF_TAG) {
siop_target->siop_lun[lun]->reseloff;
struct siop_target *siop_target;
siop_target = (struct siop_target *)sc->sc_c.targets[target];
free(siop_target->siop_lun[lun], M_DEVBUF, 0);
siop_target->siop_lun[lun] = NULL;
if (siop_target->siop_lun[i] != NULL)
siop_target->lunsw->lunsw_off);
siop_script_write(sc, siop_target->reseloff, 0x800c00ff);
TAILQ_INSERT_TAIL(&sc->lunsw_list, siop_target->lunsw, next);
struct siop_target *target;
target = (struct siop_target *)sc->sc_c.targets[i];
struct siop_target *siop_target;
siop_target = (struct siop_target *)siop_cmd->cmd_c.siop_target;
siop_lun = siop_target->siop_lun[lun];
siop_target = NULL;
siop_target = NULL;
siop_target =
(struct siop_target *)sc->sc_c.targets[target];
if (siop_target == NULL) {
siop_lun = siop_target->siop_lun[lun];
if ((siop_target->target_c.flags &
siop_target->target_c.status =
siop_target->target_c.status =
siop_target->target_c.offset = 0;
siop_target->target_c.period = 0;
siop_target->target_c.status = TARST_OK;
siop_target->target_c.offset = 0;
siop_target->target_c.period = 0;
siop_target->target_c.status = TARST_ASYNC;
siop_target->target_c.flags &= ~(TARF_DT | TARF_ISDT);
siop_cmd->cmd_c.siop_target);
siop_cmd->cmd_c.siop_target);
siop_cmd->cmd_c.siop_target);
siop_cmd->cmd_c.siop_target);
siop_cmd->cmd_c.siop_target);
siop_cmd->cmd_c.siop_target);
printf(" MHz %d REQ/ACK offset ", siop_target->offset);
(siop_target->flags & TARF_ISWIDE) == 0)
siop_target->flags &= ~TARF_TAG;
struct siop_common_target *siop_target = siop_cmd->siop_target;
if (siop_target->status == TARST_WIDE_NEG) {
siop_target->flags &= ~TARF_ISWIDE;
if (siop_target->flags & TARF_WIDE) {
siop_target->flags |= TARF_ISWIDE;
siop_target->flags &= ~TARF_ISWIDE;
siop_target->status = TARST_OK;
siop_target->offset = siop_target->period = 0;
if (siop_target->flags & TARF_SYNC) {
siop_target->status = TARST_SYNC_NEG;
siop_target->status = TARST_OK;
&& (siop_target->flags & TARF_WIDE)) {
siop_target->flags |= TARF_ISWIDE;
siop_target->flags &= ~TARF_ISWIDE;
siop_target->status = TARST_OK;
siop_target->offset = siop_target->period = 0;
siop_wdtr_msg(siop_cmd, 0, (siop_target->flags & TARF_ISWIDE) ?
struct siop_common_target *siop_target = siop_cmd->siop_target;
if (siop_target->status == TARST_PPR_NEG) {
siop_target->status = TARST_ASYNC;
siop_target->flags &= ~(TARF_DT | TARF_ISDT);
siop_target->offset = 0;
siop_target->period = 0;
siop_target->status = TARST_ASYNC;
siop_target->flags &= ~(TARF_DT | TARF_ISDT);
siop_target->offset = 0;
siop_target->period = 0;
siop_target->offset = offset;
siop_target->period = sync;
siop_target->flags |= TARF_ISDT;
if ((siop_target->flags & TARF_ISDT) == 0) {
siop_target->status = TARST_ASYNC;
siop_target->flags &= ~(TARF_DT | TARF_ISDT);
siop_target->offset = 0;
siop_target->period = 0;
siop_target->status = TARST_ASYNC;
siop_target->flags &= ~(TARF_DT | TARF_ISDT);
siop_target->offset = 0;
siop_target->period = 0;
siop_target->flags |= TARF_ISWIDE;
(siop_target->offset & SXFER_MO_MASK) << 8;
siop_target->status = TARST_OK;
struct siop_common_target *siop_target = siop_cmd->siop_target;
if (siop_target->status == TARST_SYNC_NEG) {
siop_target->status = TARST_OK;
siop_target->offset = offset;
siop_target->period = sync;
siop_target->offset = siop_target->period = 0;
siop_target->offset = offset;
siop_target->period = sync;
siop_target->offset = siop_target->period = 0;
if (siop_target->status == TARST_OK)
if (siop_cmd->siop_target->flags & TARF_ISWIDE) {
if ((siop_cmd->siop_target->flags & TARF_ISWIDE) == 0) {
struct siop_common_target *siop_target;
siop_target = sc->targets[target];
(siop_target->flags & TARF_TAG) ? "tagged " : "",
(siop_target->flags & TARF_ISDT) ? "DT " : "",
(siop_target->flags & TARF_ISWIDE) ? 16 : 8);
if (siop_target->offset == 0)
switch (siop_target->period) {
struct siop_common_target *siop_target; /* pointer to our target def */