]> Git Repo - qemu.git/blob - include/hw/arm/digic.h
works with less than base ISA qemu-system-riscv32 -M virt -bios none -kernel output...
[qemu.git] / include / hw / arm / digic.h
1 /*
2  * Misc Canon DIGIC declarations.
3  *
4  * Copyright (C) 2013 Antony Pavlov <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  */
17
18 #ifndef HW_ARM_DIGIC_H
19 #define HW_ARM_DIGIC_H
20
21 #include "cpu.h"
22 #include "hw/timer/digic-timer.h"
23 #include "hw/char/digic-uart.h"
24 #include "qom/object.h"
25
26 #define TYPE_DIGIC "digic"
27
28 OBJECT_DECLARE_SIMPLE_TYPE(DigicState, DIGIC)
29
30 #define DIGIC4_NB_TIMERS 3
31
32 struct DigicState {
33     /*< private >*/
34     DeviceState parent_obj;
35     /*< public >*/
36
37     ARMCPU cpu;
38
39     DigicTimerState timer[DIGIC4_NB_TIMERS];
40     DigicUartState uart;
41 };
42
43 #endif /* HW_ARM_DIGIC_H */
This page took 0.030633 seconds and 4 git commands to generate.