xref: /openbmc/qemu/include/hw/arm/digic.h (revision c122bca9)
1c6f09eb4SAntony Pavlov /*
2c6f09eb4SAntony Pavlov  * Misc Canon DIGIC declarations.
3c6f09eb4SAntony Pavlov  *
4c6f09eb4SAntony Pavlov  * Copyright (C) 2013 Antony Pavlov <antonynpavlov@gmail.com>
5c6f09eb4SAntony Pavlov  *
6c6f09eb4SAntony Pavlov  * This program is free software; you can redistribute it and/or modify
7c6f09eb4SAntony Pavlov  * it under the terms of the GNU General Public License as published by
8c6f09eb4SAntony Pavlov  * the Free Software Foundation; either version 2 of the License, or
9c6f09eb4SAntony Pavlov  * (at your option) any later version.
10c6f09eb4SAntony Pavlov  *
11c6f09eb4SAntony Pavlov  * This program is distributed in the hope that it will be useful,
12c6f09eb4SAntony Pavlov  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13c6f09eb4SAntony Pavlov  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14c6f09eb4SAntony Pavlov  * GNU General Public License for more details.
15c6f09eb4SAntony Pavlov  *
16c6f09eb4SAntony Pavlov  */
17c6f09eb4SAntony Pavlov 
18c6f09eb4SAntony Pavlov #ifndef HW_ARM_DIGIC_H
19c6f09eb4SAntony Pavlov #define HW_ARM_DIGIC_H
20c6f09eb4SAntony Pavlov 
2133c11879SPaolo Bonzini #include "cpu.h"
22576e99cbSAntony Pavlov #include "hw/timer/digic-timer.h"
23142593c9SAntony Pavlov #include "hw/char/digic-uart.h"
24db1015e9SEduardo Habkost #include "qom/object.h"
25576e99cbSAntony Pavlov 
26c6f09eb4SAntony Pavlov #define TYPE_DIGIC "digic"
27c6f09eb4SAntony Pavlov 
28*8063396bSEduardo Habkost OBJECT_DECLARE_SIMPLE_TYPE(DigicState, DIGIC)
29c6f09eb4SAntony Pavlov 
30576e99cbSAntony Pavlov #define DIGIC4_NB_TIMERS 3
31576e99cbSAntony Pavlov 
32db1015e9SEduardo Habkost struct DigicState {
33c6f09eb4SAntony Pavlov     /*< private >*/
34c6f09eb4SAntony Pavlov     DeviceState parent_obj;
35c6f09eb4SAntony Pavlov     /*< public >*/
36c6f09eb4SAntony Pavlov 
37c6f09eb4SAntony Pavlov     ARMCPU cpu;
38576e99cbSAntony Pavlov 
39576e99cbSAntony Pavlov     DigicTimerState timer[DIGIC4_NB_TIMERS];
40142593c9SAntony Pavlov     DigicUartState uart;
41db1015e9SEduardo Habkost };
42c6f09eb4SAntony Pavlov 
43c6f09eb4SAntony Pavlov #endif /* HW_ARM_DIGIC_H */
44