hw/sd: tweak power up delay timer, to handle more cases
[qemu/ar7.git] / include / hw / misc / bcm2835_sbm.h
blobda36fbe4f7abe098096b751da6204e71f9345bcb
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * This code is licensed under the GNU GPLv2 and later.
4 */
6 #ifndef BCM2835_SBM_H
7 #define BCM2835_SBM_H
9 #include "hw/sysbus.h"
10 #include "exec/address-spaces.h"
11 #include "hw/arm/bcm2835_mbox.h"
13 #define TYPE_BCM2835_SBM "bcm2835_sbm"
14 #define BCM2835_SBM(obj) \
15 OBJECT_CHECK(BCM2835SbmState, (obj), TYPE_BCM2835_SBM)
17 typedef struct {
18 MemoryRegion *mbox_mr;
19 AddressSpace mbox_as;
20 uint32_t reg[MBOX_SIZE];
21 int count;
22 uint32_t status;
23 uint32_t config;
24 } BCM2835Mbox;
26 typedef struct {
27 SysBusDevice busdev;
28 MemoryRegion *mbox_mr;
29 AddressSpace mbox_as;
30 MemoryRegion iomem;
31 int mbox_irq_disabled;
32 qemu_irq arm_irq;
33 int available[MBOX_CHAN_COUNT];
34 BCM2835Mbox mbox[2];
35 } BCM2835SbmState;
37 #endif