/[gxemul]/trunk/src/devices/dev_scc.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_scc.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_scc.c,v 1.27 2005/02/25 06:14:30 debug Exp $   *  $Id: dev_scc.c,v 1.29 2005/11/13 00:14:09 debug Exp $
29   *     *  
30   *  Serial controller on some DECsystems and SGI machines. (Z8530 ?)   *  Serial controller on some DECsystems and SGI machines. (Z8530 ?)
31   *  Most of the code in here is written for DECsystem emulation, though.   *  Most of the code in here is written for DECsystem emulation, though.
# Line 301  int dev_scc_access(struct cpu *cpu, stru Line 301  int dev_scc_access(struct cpu *cpu, stru
301          int port;          int port;
302          int ultrix_mode = 0;          int ultrix_mode = 0;
303    
304          idata = memory_readmax64(cpu, data, len);          if (writeflag == MEM_WRITE)
305                    idata = memory_readmax64(cpu, data, len);
306    
307          /*  relative_addr /= d->addrmul;  */          /*  relative_addr /= d->addrmul;  */
308                  /*  See SGI comment below instead.  */                  /*  See SGI comment below instead.  */
# Line 474  void *dev_scc_init(struct machine *machi Line 475  void *dev_scc_init(struct machine *machi
475              d->console_handle, d);              d->console_handle, d);
476    
477          memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH,          memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH,
478              dev_scc_access, d, MEM_DEFAULT, NULL);              dev_scc_access, d, DM_DEFAULT, NULL);
479          machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT);          machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT);
480    
481          return (void *) d;          return (void *) d;

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

  ViewVC Help
Powered by ViewVC 1.1.26