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

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

revision 29 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_au1x00.c,v 1.17 2006/03/04 12:38:47 debug Exp $   *  $Id: dev_au1x00.c,v 1.18 2006/07/23 14:37:34 debug Exp $
29   *     *  
30   *  Au1x00 (eg Au1500) pseudo device. See aureg.h for bitfield details.   *  Au1x00 (eg Au1500) pseudo device. See aureg.h for bitfield details.
31   *   *
# Line 241  DEVICE_ACCESS(au1x00_uart) Line 241  DEVICE_ACCESS(au1x00_uart)
241  }  }
242    
243    
244  /*  DEVICE_TICK(au1x00_pc)
  *  dev_au1x00_pc_tick():  
  *  
  *  Cause periodic ticks. (The PC is supposed to give interrupts at  
  *  32768 Hz?)  
  */  
 void dev_au1x00_pc_tick(struct cpu *cpu, void *extra)  
245  {  {
246          struct au1x00_pc_data *d = extra;          struct au1x00_pc_data *d = extra;
247    
248            /*  Periodic ticks at 32768 Hz? TODO  */
249    
250          if (d->reg[PC_COUNTER_CONTROL/4] & CC_EN1)          if (d->reg[PC_COUNTER_CONTROL/4] & CC_EN1)
251                  cpu_interrupt(cpu, 8 + d->irq_nr);                  cpu_interrupt(cpu, 8 + d->irq_nr);
252  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26