/[gxemul]/trunk/src/devices/dev_dec5800.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_dec5800.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_dec5800.c,v 1.16 2005/10/26 14:37:03 debug Exp $   *  $Id: dev_dec5800.c,v 1.17 2005/11/13 00:14:08 debug Exp $
29   *     *  
30   *  Emulation of devices found in a DECsystem 58x0, where x is the number   *  Emulation of devices found in a DECsystem 58x0, where x is the number
31   *  of CPUs in the system. (The CPU board is called KN5800 by Ultrix.)   *  of CPUs in the system. (The CPU board is called KN5800 by Ultrix.)
# Line 171  struct dec5800_data *dev_dec5800_init(st Line 171  struct dec5800_data *dev_dec5800_init(st
171          memset(d, 0, sizeof(struct dec5800_data));          memset(d, 0, sizeof(struct dec5800_data));
172    
173          memory_device_register(mem, "dec5800", baseaddr,          memory_device_register(mem, "dec5800", baseaddr,
174              DEV_DEC5800_LENGTH, dev_dec5800_access, d, MEM_DEFAULT, NULL);              DEV_DEC5800_LENGTH, dev_dec5800_access, d, DM_DEFAULT, NULL);
175          memory_device_register(mem, "dec5800_vectors",          memory_device_register(mem, "dec5800_vectors",
176              baseaddr + 0x30000000, 0x100, dev_dec5800_vectors_access,              baseaddr + 0x30000000, 0x100, dev_dec5800_vectors_access,
177              d, MEM_DEFAULT, NULL);              d, DM_DEFAULT, NULL);
178          machine_add_tickfunction(machine, dev_dec5800_tick, d, 14);          machine_add_tickfunction(machine, dev_dec5800_tick, d, 14);
179    
180          return d;          return d;
# Line 293  void dev_decbi_init(struct memory *mem, Line 293  void dev_decbi_init(struct memory *mem,
293          memset(d, 0, sizeof(struct decbi_data));          memset(d, 0, sizeof(struct decbi_data));
294    
295          memory_device_register(mem, "decbi", baseaddr + 0x2000,          memory_device_register(mem, "decbi", baseaddr + 0x2000,
296              DEV_DECBI_LENGTH - 0x2000, dev_decbi_access, d, MEM_DEFAULT, NULL);              DEV_DECBI_LENGTH - 0x2000, dev_decbi_access, d, DM_DEFAULT, NULL);
297  }  }
298    
299    
# Line 375  void dev_deccca_init(struct memory *mem, Line 375  void dev_deccca_init(struct memory *mem,
375          memset(d, 0, sizeof(struct deccca_data));          memset(d, 0, sizeof(struct deccca_data));
376    
377          memory_device_register(mem, "deccca", baseaddr, DEV_DECCCA_LENGTH,          memory_device_register(mem, "deccca", baseaddr, DEV_DECCCA_LENGTH,
378              dev_deccca_access, d, MEM_DEFAULT, NULL);              dev_deccca_access, d, DM_DEFAULT, NULL);
379  }  }
380    
381    
# Line 493  void dev_decxmi_init(struct memory *mem, Line 493  void dev_decxmi_init(struct memory *mem,
493          memset(d, 0, sizeof(struct decxmi_data));          memset(d, 0, sizeof(struct decxmi_data));
494    
495          memory_device_register(mem, "decxmi", baseaddr, DEV_DECXMI_LENGTH,          memory_device_register(mem, "decxmi", baseaddr, DEV_DECXMI_LENGTH,
496              dev_decxmi_access, d, MEM_DEFAULT, NULL);              dev_decxmi_access, d, DM_DEFAULT, NULL);
497  }  }
498    

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

  ViewVC Help
Powered by ViewVC 1.1.26