/[gxemul]/trunk/src/devices/dev_wdsc.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_wdsc.c

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

revision 17 by dpavlin, Mon Oct 8 16:18:11 2007 UTC revision 18 by dpavlin, Mon Oct 8 16:19:11 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_wdsc.c,v 1.25 2005/05/15 01:55:51 debug Exp $   *  $Id: dev_wdsc.c,v 1.27 2005/10/26 14:37:05 debug Exp $
29   *     *  
30   *  WDSC SCSI (WD33C93) controller.   *  WDSC SCSI (WD33C93) controller.
31   *  (For SGI-IP22. See sys/arch/sgimips/hpc/sbic* in NetBSD for details.)   *  (For SGI-IP22. See sys/arch/sgimips/hpc/sbic* in NetBSD for details.)
# Line 37  Line 37 
37  #include <stdlib.h>  #include <stdlib.h>
38  #include <string.h>  #include <string.h>
39    
 #include "console.h"  
40  #include "cpu.h"  #include "cpu.h"
41  #include "devices.h"  #include "devices.h"
42  #include "diskimage.h"  #include "diskimage.h"
# Line 317  int dev_wdsc_access(struct cpu *cpu, str Line 316  int dev_wdsc_access(struct cpu *cpu, str
316          struct wdsc_data *d = extra;          struct wdsc_data *d = extra;
317          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;
318    
319          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
320                    idata = memory_readmax64(cpu, data, len);
321    
322          /*          /*
323           *  All registers on the WDSC seem to be accessed by writing the           *  All registers on the WDSC seem to be accessed by writing the

Legend:
Removed from v.17  
changed lines
  Added in v.18

  ViewVC Help
Powered by ViewVC 1.1.26