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.
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)
26 uint32_t vcram_base, vcram_size;
30 MemoryRegionSection fbsection;
34 bool lock, invalidate, pending;
36 uint32_t xres_virtual, yres_virtual;
37 uint32_t xoffset, yoffset;
39 uint32_t base, pitch, size;
43 void bcm2835_fb_reconfigure(BCM2835FBState *s, uint32_t *xres, uint32_t *yres,
44 uint32_t *xoffset, uint32_t *yoffset, uint32_t *bpp,
45 uint32_t *pixo, uint32_t *alpha);