mirror of
https://github.com/qemu/qemu.git
synced 2024-12-19 18:23:38 +08:00
24 lines
503 B
C
24 lines
503 B
C
|
/*
|
||
|
* SuperH Timer
|
||
|
*
|
||
|
* Copyright (c) 2007 Magnus Damm
|
||
|
*
|
||
|
* This code is licensed under the GPL.
|
||
|
*/
|
||
|
|
||
|
#ifndef HW_TIMER_TMU012_H
|
||
|
#define HW_TIMER_TMU012_H
|
||
|
|
||
|
#include "exec/hwaddr.h"
|
||
|
|
||
|
#define TMU012_FEAT_TOCR (1 << 0)
|
||
|
#define TMU012_FEAT_3CHAN (1 << 1)
|
||
|
#define TMU012_FEAT_EXTCLK (1 << 2)
|
||
|
|
||
|
void tmu012_init(MemoryRegion *sysmem, hwaddr base,
|
||
|
int feat, uint32_t freq,
|
||
|
qemu_irq ch0_irq, qemu_irq ch1_irq,
|
||
|
qemu_irq ch2_irq0, qemu_irq ch2_irq1);
|
||
|
|
||
|
#endif
|