user: Prefer fast cpu_env() over slower CPU QOM cast macro
[qemu/ar7.git] / include / hw / arm / bcm2838.h
blobe53c7bedf92f092311d46c3ab5db55a83b7fa67f
1 /*
2 * BCM2838 SoC emulation
4 * Copyright (C) 2022 Ovchinnikov Vitalii <vitalii.ovchinnikov@auriga.com>
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #ifndef BCM2838_H
10 #define BCM2838_H
12 #include "hw/arm/bcm2836.h"
13 #include "hw/intc/arm_gic.h"
14 #include "hw/arm/bcm2838_peripherals.h"
16 #define BCM2838_PERI_LOW_BASE 0xfc000000
17 #define BCM2838_GIC_BASE 0x40000
19 #define TYPE_BCM2838 "bcm2838"
21 OBJECT_DECLARE_TYPE(BCM2838State, BCM2838Class, BCM2838)
23 struct BCM2838State {
24 /*< private >*/
25 BCM283XBaseState parent_obj;
26 /*< public >*/
27 BCM2838PeripheralState peripherals;
28 GICState gic;
31 #endif /* BCM2838_H */