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

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

revision 29 by dpavlin, Mon Oct 8 16:20:26 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_8253.c,v 1.13 2006/07/21 16:55:41 debug Exp $   *  $Id: dev_8253.c,v 1.14 2006/07/24 19:08:17 debug Exp $
29   *   *
30   *  Intel 8253/8254 Programmable Interval Timer   *  Intel 8253/8254 Programmable Interval Timer
31   *   *
# Line 74  DEVICE_TICK(8253) Line 74  DEVICE_TICK(8253)
74                  return;                  return;
75    
76          switch (d->mode[0] & 0x0e) {          switch (d->mode[0] & 0x0e) {
77    
78          case I8253_TIMER_INTTC:          case I8253_TIMER_INTTC:
79                  /*  TODO: Correct frequency!  */                  /*  TODO: Correct frequency!  */
80                  cpu_interrupt(cpu, d->irq0_nr);                  cpu_interrupt(cpu, d->irq0_nr);
81                  break;                  break;
82    
83          case I8253_TIMER_RATEGEN:          case I8253_TIMER_RATEGEN:
84                  break;                  break;
85    
86          default:fatal("[ 8253: unimplemented mode 0x%x ]\n", d->mode[0] & 0x0e);          default:fatal("[ 8253: unimplemented mode 0x%x ]\n", d->mode[0] & 0x0e);
87                  exit(1);                  exit(1);
88          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.26