]>
Commit | Line | Data |
---|---|---|
c6f09eb4 AP |
1 | /* |
2 | * Misc Canon DIGIC declarations. | |
3 | * | |
4 | * Copyright (C) 2013 Antony Pavlov <antonynpavlov@gmail.com> | |
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 | ||
33c11879 | 21 | #include "cpu.h" |
576e99cb | 22 | #include "hw/timer/digic-timer.h" |
142593c9 | 23 | #include "hw/char/digic-uart.h" |
db1015e9 | 24 | #include "qom/object.h" |
576e99cb | 25 | |
c6f09eb4 AP |
26 | #define TYPE_DIGIC "digic" |
27 | ||
db1015e9 | 28 | typedef struct DigicState DigicState; |
c6f09eb4 AP |
29 | #define DIGIC(obj) OBJECT_CHECK(DigicState, (obj), TYPE_DIGIC) |
30 | ||
576e99cb AP |
31 | #define DIGIC4_NB_TIMERS 3 |
32 | ||
db1015e9 | 33 | struct DigicState { |
c6f09eb4 AP |
34 | /*< private >*/ |
35 | DeviceState parent_obj; | |
36 | /*< public >*/ | |
37 | ||
38 | ARMCPU cpu; | |
576e99cb AP |
39 | |
40 | DigicTimerState timer[DIGIC4_NB_TIMERS]; | |
142593c9 | 41 | DigicUartState uart; |
db1015e9 | 42 | }; |
c6f09eb4 AP |
43 | |
44 | #endif /* HW_ARM_DIGIC_H */ |