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 |
* |
* |
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 |
} |
} |