xref: /qemu/include/hw/arm/bcm2838_peripherals.h (revision dcf1d8cdfbe6ab56456380ddc13f551df070a539)
1 /*
2  * BCM2838 peripherals emulation
3  *
4  * Copyright (C) 2022 Ovchinnikov Vitalii <vitalii.ovchinnikov@auriga.com>
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef BCM2838_PERIPHERALS_H
10 #define BCM2838_PERIPHERALS_H
11 
12 #include "hw/arm/bcm2835_peripherals.h"
13 
14 
15 #define TYPE_BCM2838_PERIPHERALS "bcm2838-peripherals"
16 OBJECT_DECLARE_TYPE(BCM2838PeripheralState, BCM2838PeripheralClass,
17                     BCM2838_PERIPHERALS)
18 
19 struct BCM2838PeripheralState {
20     /*< private >*/
21     BCMSocPeripheralBaseState parent_obj;
22 
23     /*< public >*/
24     MemoryRegion peri_low_mr;
25     MemoryRegion peri_low_mr_alias;
26     MemoryRegion mphi_mr_alias;
27 };
28 
29 struct BCM2838PeripheralClass {
30     /*< private >*/
31     BCMSocPeripheralBaseClass parent_class;
32     /*< public >*/
33     uint64_t peri_low_size; /* Peripheral lower range size */
34 };
35 
36 #endif /* BCM2838_PERIPHERALS_H */
37