/[gxemul]/trunk/src/devices/dev_asc.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_asc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 6 by dpavlin, Mon Oct 8 16:18:11 2007 UTC
# Line 25  Line 25 
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.
# Line 563  fatal("TODO.......asdgasin\n"); Line 563  fatal("TODO.......asdgasin\n");
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) {
# Line 720  static int dev_asc_select(struct cpu *cp Line 720  static int dev_asc_select(struct cpu *cp
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:  */
# Line 1072  int dev_asc_access(struct cpu *cpu, stru Line 1072  int dev_asc_access(struct cpu *cpu, stru
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                                  /*                                  /*

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26