contrib/gitdm: Add Yadro to the domain map
[qemu/ar7.git] / include / hw / arm / bcm2836.h
blob428c15d316ee060454a3c03cffea6da6415df126
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * Upstreaming code cleanup [including bcm2835_*] (c) 2013 Jan Petrous
5 * Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
6 * Written by Andrew Baumann
8 * This work is licensed under the terms of the GNU GPL, version 2 or later.
9 * See the COPYING file in the top-level directory.
12 #ifndef BCM2836_H
13 #define BCM2836_H
15 #include "hw/arm/bcm2835_peripherals.h"
16 #include "hw/intc/bcm2836_control.h"
17 #include "target/arm/cpu.h"
18 #include "qom/object.h"
20 #define TYPE_BCM283X "bcm283x"
21 OBJECT_DECLARE_TYPE(BCM283XState, BCM283XClass, BCM283X)
23 #define BCM283X_NCPUS 4
25 /* These type names are for specific SoCs; other than instantiating
26 * them, code using these devices should always handle them via the
27 * BCM283x base class, so they have no BCM2836(obj) etc macros.
29 #define TYPE_BCM2836 "bcm2836"
30 #define TYPE_BCM2837 "bcm2837"
32 struct BCM283XState {
33 /*< private >*/
34 DeviceState parent_obj;
35 /*< public >*/
37 uint32_t enabled_cpus;
39 struct {
40 ARMCPU core;
41 } cpu[BCM283X_NCPUS];
42 BCM2836ControlState control;
43 BCM2835PeripheralState peripherals;
46 typedef struct BCM283XInfo BCM283XInfo;
48 struct BCM283XClass {
49 DeviceClass parent_class;
50 const BCM283XInfo *info;
54 #endif /* BCM2836_H */