bcm2835_vchiq: add header file and convert to init/realize
[qemu/ar7.git] / include / hw / misc / bcm2835_vchiq.h
blob8ba9fd8c62b14ce69a506021bcbe73493bbdcc17
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * This code is licensed under the GNU GPLv2 and later.
4 */
6 #ifndef BCM2835_VCHIQ_H
7 #define BCM2835_VCHIQ_H
9 #include "hw/sysbus.h"
11 #define TYPE_BCM2835_VCHIQ "bcm2835_vchiq"
12 #define BCM2835_VCHIQ(obj) \
13 OBJECT_CHECK(BCM2835VchiqState, (obj), TYPE_BCM2835_VCHIQ)
15 typedef struct {
16 SysBusDevice busdev;
17 MemoryRegion iomem;
18 int pending;
19 qemu_irq mbox_irq;
20 } BCM2835VchiqState;
22 #endif