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

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

revision 12 by dpavlin, Mon Oct 8 16:18:38 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_vr41xx.c,v 1.30 2005/08/05 09:11:48 debug Exp $   *  $Id: dev_vr41xx.c,v 1.32 2005/10/26 14:37:04 debug Exp $
29   *     *  
30   *  VR41xx (actually, VR4122 and VR4131) misc functions.   *  VR41xx (actually, VR4122 and VR4131) misc functions.
31   *   *
# Line 398  int dev_vr41xx_access(struct cpu *cpu, s Line 398  int dev_vr41xx_access(struct cpu *cpu, s
398          int regnr;          int regnr;
399          int revision = 0;          int revision = 0;
400    
401          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
402                    idata = memory_readmax64(cpu, data, len);
403    
404          regnr = relative_addr / sizeof(uint64_t);          regnr = relative_addr / sizeof(uint64_t);
405    
406          /*  KIU ("Keyboard Interface Unit") is handled separately.  */          /*  KIU ("Keyboard Interface Unit") is handled separately.  */
# Line 569  struct vr41xx_data *dev_vr41xx_init(stru Line 571  struct vr41xx_data *dev_vr41xx_init(stru
571                  break;                  break;
572          case 4181:          case 4181:
573                  baseaddr = 0xa000000;                  baseaddr = 0xa000000;
574                  dev_ram_init(mem, 0xb000000, 0x1000000, DEV_RAM_MIRROR,                  dev_ram_init(machine, 0xb000000, 0x1000000, DEV_RAM_MIRROR,
575                      0xa000000);                      0xa000000);
576                  break;                  break;
577          case 4122:          case 4122:
# Line 607  struct vr41xx_data *dev_vr41xx_init(stru Line 609  struct vr41xx_data *dev_vr41xx_init(stru
609    
610          /*  Some machines (?) use ISA space at 0x15000000 instead of          /*  Some machines (?) use ISA space at 0x15000000 instead of
611              0x14000000, eg IBM WorkPad Z50.  */              0x14000000, eg IBM WorkPad Z50.  */
612          dev_ram_init(mem, 0x15000000, 0x1000000, DEV_RAM_MIRROR, 0x14000000);          dev_ram_init(machine, 0x15000000, 0x1000000, DEV_RAM_MIRROR,
613                0x14000000);
614    
615          return d;          return d;
616  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26