2 * Renesas Compare-match timer Object
4 * Copyright (c) 2019 Yoshinori Sato
6 * SPDX-License-Identifier: GPL-2.0-or-later
9 #ifndef HW_TIMER_RENESAS_CMT_H
10 #define HW_TIMER_RENESAS_CMT_H
12 #include "qemu/timer.h"
13 #include "hw/sysbus.h"
14 #include "qom/object.h"
16 #define TYPE_RENESAS_CMT "renesas-cmt"
17 typedef struct RCMTState RCMTState
;
18 DECLARE_INSTANCE_CHECKER(RCMTState
, RCMT
,
23 CMT_NR_IRQ
= 1 * CMT_CH
28 SysBusDevice parent_obj
;
35 uint16_t cmcr
[CMT_CH
];
36 uint16_t cmcnt
[CMT_CH
];
37 uint16_t cmcor
[CMT_CH
];
40 QEMUTimer timer
[CMT_CH
];