Merge tag 'pull-loongarch-20241016' of https://gitlab.com/gaosong/qemu into staging
[qemu/armbru.git] / include / hw / timer / tmu012.h
blob808ed8de1d73bedc14ff0ecff66dc3352d1c0e44
1 /*
2 * SuperH Timer
4 * Copyright (c) 2007 Magnus Damm
6 * This code is licensed under the GPL.
7 */
9 #ifndef HW_TIMER_TMU012_H
10 #define HW_TIMER_TMU012_H
12 #include "exec/hwaddr.h"
14 #define TMU012_FEAT_TOCR (1 << 0)
15 #define TMU012_FEAT_3CHAN (1 << 1)
16 #define TMU012_FEAT_EXTCLK (1 << 2)
18 void tmu012_init(MemoryRegion *sysmem, hwaddr base,
19 int feat, uint32_t freq,
20 qemu_irq ch0_irq, qemu_irq ch1_irq,
21 qemu_irq ch2_irq0, qemu_irq ch2_irq1);
23 #endif