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

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

revision 24 by dpavlin, Mon Oct 8 16:19:56 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_dc7085.c,v 1.55 2006/03/04 12:38:47 debug Exp $   *  $Id: dev_dc7085.c,v 1.56 2006/07/23 14:37:34 debug Exp $
29   *     *  
30   *  DC7085 serial controller, used in some DECstation models.   *  DC7085 serial controller, used in some DECstation models.
31   */   */
# Line 96  void add_to_rx_queue(void *e, int ch, in Line 96  void add_to_rx_queue(void *e, int ch, in
96  }  }
97    
98    
99  /*  DEVICE_TICK(dc7085)
  *  dev_dc7085_tick():  
  *  
  *  This function is called "every now and then".  
  *  If a key is available from the keyboard, add it to the rx queue.  
  *  If other bits are set, an interrupt might need to be caused.  
  */  
 void dev_dc7085_tick(struct cpu *cpu, void *extra)  
100  {  {
101            /*
102             *  If a key is available from the keyboard, add it to the rx queue.
103             *  If other bits are set, an interrupt might need to be caused.
104             */
105          struct dc_data *d = extra;          struct dc_data *d = extra;
106          int avail;          int avail;
107    
# Line 161  void dev_dc7085_tick(struct cpu *cpu, vo Line 158  void dev_dc7085_tick(struct cpu *cpu, vo
158  }  }
159    
160    
 /*  
  *  dev_dc7085_access():  
  */  
161  DEVICE_ACCESS(dc7085)  DEVICE_ACCESS(dc7085)
162  {  {
163          uint64_t idata = 0, odata = 0;          uint64_t idata = 0, odata = 0;

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

  ViewVC Help
Powered by ViewVC 1.1.26