25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_asc.c,v 1.70 2005/03/23 08:45:49 debug Exp $ |
* $Id: dev_asc.c,v 1.71 2005/05/15 01:55:50 debug Exp $ |
29 |
* |
* |
30 |
* 'asc' SCSI controller for some DECstation/DECsystem models, and |
* 'asc' SCSI controller for some DECstation/DECsystem models, and |
31 |
* for PICA-61. |
* for PICA-61. |
563 |
|
|
564 |
/* Redo the command if data was just sent using DATA_OUT: */ |
/* Redo the command if data was just sent using DATA_OUT: */ |
565 |
if (d->cur_phase == PHASE_DATA_OUT) { |
if (d->cur_phase == PHASE_DATA_OUT) { |
566 |
res = diskimage_scsicommand(cpu, |
res = diskimage_scsicommand(cpu, d->reg_wo[NCR_SELID] & 7, |
567 |
d->reg_wo[NCR_SELID] & 7, d->xferp); |
DISKIMAGE_SCSI, d->xferp); |
568 |
} |
} |
569 |
|
|
570 |
if (all_done) { |
if (all_done) { |
720 |
/* |
/* |
721 |
* Call the SCSI device to perform the command: |
* Call the SCSI device to perform the command: |
722 |
*/ |
*/ |
723 |
ok = diskimage_scsicommand(cpu, to_id, d->xferp); |
ok = diskimage_scsicommand(cpu, to_id, DISKIMAGE_SCSI, d->xferp); |
724 |
|
|
725 |
|
|
726 |
/* Cause an interrupt: */ |
/* Cause an interrupt: */ |
1072 |
/* TODO: not just disk, but some generic |
/* TODO: not just disk, but some generic |
1073 |
SCSI device */ |
SCSI device */ |
1074 |
target_exists = diskimage_exist(cpu->machine, |
target_exists = diskimage_exist(cpu->machine, |
1075 |
d->reg_wo[NCR_SELID] & 7); |
d->reg_wo[NCR_SELID] & 7, DISKIMAGE_SCSI); |
1076 |
|
|
1077 |
if (target_exists) { |
if (target_exists) { |
1078 |
/* |
/* |