Merge branch 'master' into raspi
[qemu/ar7.git] / include / hw / intc / bcm2835_ic.h.orig
blob49cb24e058703436414392165bb6fad6853c85a4
1 /*
2  * Raspberry Pi emulation (c) 2012 Gregory Estrade
3  * This code is licensed under the GNU GPLv2 and later.
4  */
6 #ifndef BCM2835_IC_H
7 #define BCM2835_IC_H
9 #include "hw/sysbus.h"
11 <<<<<<< HEAD
12 #define TYPE_BCM2835_IC "bcm2835_ic"
13 =======
14 #define TYPE_BCM2835_IC "bcm2835-ic"
15 >>>>>>> upstreaming-raspi
16 #define BCM2835_IC(obj) OBJECT_CHECK(BCM2835ICState, (obj), TYPE_BCM2835_IC)
18 #define BCM2835_IC_GPU_IRQ "gpu-irq"
19 #define BCM2835_IC_ARM_IRQ "arm-irq"
21 typedef struct BCM2835ICState {
22     /*< private >*/
23     SysBusDevice busdev;
24     /*< public >*/
26     MemoryRegion iomem;
27 <<<<<<< HEAD
28 =======
29     qemu_irq irq;
30     qemu_irq fiq;
31 >>>>>>> upstreaming-raspi
33     /* 64 GPU IRQs + 8 ARM IRQs = 72 total (GPU first) */
34     uint64_t gpu_irq_level, gpu_irq_enable;
35     uint8_t arm_irq_level, arm_irq_enable;
36     bool fiq_enable;
37     uint8_t fiq_select;
38 <<<<<<< HEAD
39     qemu_irq irq;
40     qemu_irq fiq;
41 =======
42 >>>>>>> upstreaming-raspi
43 } BCM2835ICState;
45 #endif