]>
git.proxmox.com Git - mirror_qemu.git/blob - include/hw/timer/renesas_tmr.h
2 * Renesas 8bit timer Object
4 * Copyright (c) 2018 Yoshinori Sato
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #ifndef HW_TIMER_RENESAS_TMR_H
10 #define HW_TIMER_RENESAS_TMR_H
12 #include "qemu/timer.h"
13 #include "hw/sysbus.h"
14 #include "qom/object.h"
16 #define TYPE_RENESAS_TMR "renesas-tmr"
17 typedef struct RTMRState RTMRState
;
18 #define RTMR(obj) OBJECT_CHECK(RTMRState, (obj), TYPE_RENESAS_TMR)
30 TMR_NR_IRQ
= 3 * TMR_CH
35 SysBusDevice parent_obj
;
43 uint8_t tcora
[TMR_CH
];
44 uint8_t tcorb
[TMR_CH
];
49 int64_t div_round
[TMR_CH
];
51 qemu_irq cmia
[TMR_CH
];
52 qemu_irq cmib
[TMR_CH
];
54 QEMUTimer timer
[TMR_CH
];