bcm283* refactoring continues
[qemu/ar7.git] / include / hw / arm / bcm2835_common.h
blob54903bddbe09cb93c925743d934583f882f1796e
1 #ifndef BCM2835_COMMON_H
2 #define BCM2835_COMMON_H
4 #define VCRAM_SIZE (0x4000000)
5 extern hwaddr bcm2835_vcram_base;
7 /* Constants shared with the ARM identifying separate mailbox channels */
8 #define MBOX_CHAN_POWER 0 /* for use by the power management interface */
9 #define MBOX_CHAN_FB 1 /* for use by the frame buffer */
10 #define MBOX_CHAN_VCHIQ 3 /* for use by the VCHIQ interface */
11 #define MBOX_CHAN_PROPERTY 8 /* for use by the property channel */
12 #define MBOX_CHAN_COUNT 9
14 #define MBOX_SIZE 32
15 #define MBOX_INVALID_DATA 0x0f
17 #define BCM2835_FB_OFFSET 0x00100000
19 typedef struct {
20 QemuConsole *con;
21 int invalidate;
22 int lock;
24 uint32_t xres, yres;
25 uint32_t xres_virtual, yres_virtual;
26 uint32_t xoffset, yoffset;
27 uint32_t bpp;
28 uint32_t base, pitch, size;
30 uint32_t pixo, alpha;
31 } Bcm2835Fb;
33 extern Bcm2835Fb bcm2835_fb;
35 #endif /* BCM2835_COMMON_H */