summary refs log tree commit diff stats
path: root/hw/omap_lcdc.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-08 16:00:54 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:07 +0200
commit75c9d6c2f88f5713345b545beec10f0444ebd551 (patch)
tree99cf744b451641e73935a4bc0dbdf19db165ec05 /hw/omap_lcdc.c
parente2177955a899483b19bd54e547db3b61db95eaf7 (diff)
downloadfocaccia-qemu-75c9d6c2f88f5713345b545beec10f0444ebd551.tar.gz
focaccia-qemu-75c9d6c2f88f5713345b545beec10f0444ebd551.zip
framebuffer: drop use of cpu_get_physical_page_desc()
cpu_get_physical_page_desc() is tied into the memory core's
innards, replace it with uses of the API.

Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/omap_lcdc.c')
-rw-r--r--hw/omap_lcdc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/omap_lcdc.c b/hw/omap_lcdc.c
index 8484f7058d..f265306556 100644
--- a/hw/omap_lcdc.c
+++ b/hw/omap_lcdc.c
@@ -22,6 +22,7 @@
 #include "framebuffer.h"
 
 struct omap_lcd_panel_s {
+    MemoryRegion *sysmem;
     MemoryRegion iomem;
     qemu_irq irq;
     DisplayState *state;
@@ -211,7 +212,7 @@ static void omap_update_display(void *opaque)
 
     step = width * bpp >> 3;
     linesize = ds_get_linesize(omap_lcd->state);
-    framebuffer_update_display(omap_lcd->state,
+    framebuffer_update_display(omap_lcd->state, omap_lcd->sysmem,
                                frame_base, width, height,
                                step, linesize, 0,
                                omap_lcd->invalidate,
@@ -440,6 +441,7 @@ struct omap_lcd_panel_s *omap_lcdc_init(MemoryRegion *sysmem,
 
     s->irq = irq;
     s->dma = dma;
+    s->sysmem = sysmem;
     omap_lcdc_reset(s);
 
     memory_region_init_io(&s->iomem, &omap_lcdc_ops, s, "omap.lcdc", 0x100);