/[gxemul]/trunk/src/devices/dev_random.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_random.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 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_random.c,v 1.1 2005/02/25 06:14:30 debug Exp $   *  $Id: dev_random.c,v 1.2 2005/11/13 00:14:09 debug Exp $
29   *     *  
30   *  A simple device which returns random data for all reads, and discards all   *  A simple device which returns random data for all reads, and discards all
31   *  writes.   *  writes.
# Line 67  int devinit_random(struct devinit *devin Line 67  int devinit_random(struct devinit *devin
67  {  {
68          memory_device_register(devinit->machine->memory,          memory_device_register(devinit->machine->memory,
69              devinit->name, devinit->addr, devinit->len,              devinit->name, devinit->addr, devinit->len,
70              dev_random_access, NULL, MEM_DEFAULT, NULL);              dev_random_access, NULL, DM_DEFAULT, NULL);
71    
72          return 1;          return 1;
73  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26