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

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

revision 19 by dpavlin, Mon Oct 8 16:19:11 2007 UTC revision 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_disk.c,v 1.8 2005/10/26 14:37:03 debug Exp $   *  $Id: dev_disk.c,v 1.9 2005/11/13 00:14:08 debug Exp $
29   *   *
30   *  Basic "Disk" device. This is a simple test device which can be used to   *  Basic "Disk" device. This is a simple test device which can be used to
31   *  read and write data from disk devices.   *  read and write data from disk devices.
# Line 173  int devinit_disk(struct devinit *devinit Line 173  int devinit_disk(struct devinit *devinit
173    
174          memory_device_register(devinit->machine->memory, n1,          memory_device_register(devinit->machine->memory, n1,
175              devinit->addr, 0x4000, dev_disk_access, (void *)d,              devinit->addr, 0x4000, dev_disk_access, (void *)d,
176              MEM_DEFAULT, NULL);              DM_DEFAULT, NULL);
177    
178          memory_device_register(devinit->machine->memory, n2,          memory_device_register(devinit->machine->memory, n2,
179              devinit->addr + 0x4000, devinit->machine->arch_pagesize,              devinit->addr + 0x4000, devinit->machine->arch_pagesize,
180              dev_disk_buf_access, (void *)d, MEM_DYNTRANS_OK |              dev_disk_buf_access, (void *)d, DM_DYNTRANS_OK |
181              MEM_DYNTRANS_WRITE_OK | MEM_READING_HAS_NO_SIDE_EFFECTS, d->buf);              DM_DYNTRANS_WRITE_OK | DM_READS_HAVE_NO_SIDE_EFFECTS, d->buf);
182    
183          return 1;          return 1;
184  }  }

Legend:
Removed from v.19  
changed lines
  Added in v.20

  ViewVC Help
Powered by ViewVC 1.1.26