mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw/sh4: Extract timer definitions to 'hw/timer/tmu012.h'
Extract timer definitions to 'hw/timer/tmu012.h'. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
ba2afd0eb2
commit
95f4dc444a
4 changed files with 26 additions and 9 deletions
23
include/hw/timer/tmu012.h
Normal file
23
include/hw/timer/tmu012.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* 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
|
Loading…
Add table
Add a link
Reference in a new issue