/[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 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 30 by dpavlin, Mon Oct 8 16:20:40 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_scc.c,v 1.32 2006/01/01 13:17:17 debug Exp $   *  $Id: dev_scc.c,v 1.34 2006/07/23 14:37:34 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 147  static unsigned char rx_nextchar(struct Line 147  static unsigned char rx_nextchar(struct
147  }  }
148    
149    
150  /*  DEVICE_TICK(scc)
  *  dev_scc_tick():  
  */  
 void dev_scc_tick(struct cpu *cpu, void *extra)  
151  {  {
152          int i;          int i;
153          struct scc_data *d = (struct scc_data *) extra;          struct scc_data *d = (struct scc_data *) extra;
# Line 298  int dev_scc_dma_func(struct cpu *cpu, vo Line 295  int dev_scc_dma_func(struct cpu *cpu, vo
295  }  }
296    
297    
 /*  
  *  dev_scc_access():  
  */  
298  DEVICE_ACCESS(scc)  DEVICE_ACCESS(scc)
299  {  {
300          struct scc_data *d = (struct scc_data *) extra;          struct scc_data *d = (struct scc_data *) extra;
# Line 483  void *dev_scc_init(struct machine *machi Line 477  void *dev_scc_init(struct machine *machi
477    
478          memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH,          memory_device_register(mem, "scc", baseaddr, DEV_SCC_LENGTH,
479              dev_scc_access, d, DM_DEFAULT, NULL);              dev_scc_access, d, DM_DEFAULT, NULL);
480          machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT);          machine_add_tickfunction(machine, dev_scc_tick, d, SCC_TICK_SHIFT, 0.0);
481    
482          return (void *) d;          return (void *) d;
483  }  }

Legend:
Removed from v.22  
changed lines
  Added in v.30

  ViewVC Help
Powered by ViewVC 1.1.26