bcm2835_fb: s/Bcm2835FbState/BCM2835FbState/ for consistency
[qemu/ar7.git] / include / hw / display / bcm2835_fb.h
blob72e38f9684f5d8c70f64e793f49ae47b20e19671
1 /*
2 * Raspberry Pi emulation (c) 2012 Gregory Estrade
3 * Upstreaming code cleanup [including bcm2835_*] (c) 2013 Jan Petrous
5 * Rasperry Pi 2 emulation and refactoring Copyright (c) 2015, Microsoft
6 * Written by Andrew Baumann
8 * This code is licensed under the GNU GPLv2 and later.
9 */
11 #ifndef BCM2835_FB_H
12 #define BCM2835_FB_H
14 #include "hw/sysbus.h"
15 #include "exec/address-spaces.h"
16 #include "ui/console.h"
18 #define TYPE_BCM2835_FB "bcm2835_fb"
19 #define BCM2835_FB(obj) OBJECT_CHECK(BCM2835FbState, (obj), TYPE_BCM2835_FB)
21 typedef struct {
22 SysBusDevice busdev;
23 uint32_t vcram_base, vcram_size;
25 MemoryRegion *dma_mr;
26 AddressSpace dma_as;
27 MemoryRegion iomem;
28 MemoryRegionSection fbsection;
30 QemuConsole *con;
31 bool lock, invalidate;
33 uint32_t xres, yres;
34 uint32_t xres_virtual, yres_virtual;
35 uint32_t xoffset, yoffset;
36 uint32_t bpp;
37 uint32_t base, pitch, size;
38 uint32_t pixo, alpha;
40 int pending;
41 qemu_irq mbox_irq;
42 } BCM2835FbState;
44 void bcm2835_fb_reconfigure(BCM2835FbState *s, uint32_t *xres, uint32_t *yres,
45 uint32_t *xoffset, uint32_t *yoffset, uint32_t *bpp,
46 uint32_t *pixo, uint32_t *alpha);
48 #endif