diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-05 12:59:04 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-04-08 18:13:13 +0200 |
commit | fc97bb5ba3e7239c0b6d24095df6784868dfebbf (patch) | |
tree | 6367fc217473184292a7eeee38c1b8e6a0db1573 /hw | |
parent | 34b8f63ea1aa0941f11c6c032f8e1716269a0449 (diff) |
hw: move display devices to hw/display/, configure via default-configs/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/Makefile.objs | 5 | ||||
-rw-r--r-- | hw/arm/Makefile.objs | 13 | ||||
-rw-r--r-- | hw/blizzard_template.h | 2 | ||||
-rw-r--r-- | hw/display/Makefile.objs | 21 | ||||
-rw-r--r-- | hw/display/blizzard.c (renamed from hw/blizzard.c) | 0 | ||||
-rw-r--r-- | hw/display/exynos4210_fimd.c (renamed from hw/exynos4210_fimd.c) | 5 | ||||
-rw-r--r-- | hw/display/framebuffer.c (renamed from hw/framebuffer.c) | 0 | ||||
-rw-r--r-- | hw/display/milkymist-tmu2.c (renamed from hw/milkymist-tmu2.c) | 0 | ||||
-rw-r--r-- | hw/display/milkymist-vgafb.c (renamed from hw/milkymist-vgafb.c) | 0 | ||||
-rw-r--r-- | hw/display/omap_dss.c (renamed from hw/omap_dss.c) | 0 | ||||
-rw-r--r-- | hw/display/omap_lcdc.c (renamed from hw/omap_lcdc.c) | 0 | ||||
-rw-r--r-- | hw/display/pxa2xx_lcd.c (renamed from hw/pxa2xx_lcd.c) | 0 | ||||
-rw-r--r-- | hw/display/qxl-logger.c (renamed from hw/qxl-logger.c) | 0 | ||||
-rw-r--r-- | hw/display/qxl-render.c (renamed from hw/qxl-render.c) | 0 | ||||
-rw-r--r-- | hw/display/qxl.c (renamed from hw/qxl.c) | 0 | ||||
-rw-r--r-- | hw/display/sm501.c (renamed from hw/sm501.c) | 0 | ||||
-rw-r--r-- | hw/display/tc6393xb.c (renamed from hw/tc6393xb.c) | 0 | ||||
-rw-r--r-- | hw/display/tcx.c (renamed from hw/tcx.c) | 0 | ||||
-rw-r--r-- | hw/display/vga.c (renamed from hw/vga.c) | 0 | ||||
-rw-r--r-- | hw/i386/Makefile.objs | 1 | ||||
-rw-r--r-- | hw/lm32/Makefile.objs | 3 | ||||
-rw-r--r-- | hw/milkymist-vgafb_template.h | 2 | ||||
-rw-r--r-- | hw/sh4/Makefile.objs | 2 | ||||
-rw-r--r-- | hw/sparc/Makefile.objs | 2 |
24 files changed, 33 insertions, 23 deletions
diff --git a/hw/Makefile.objs b/hw/Makefile.objs index 83a6bf2b18..eef8742af3 100644 --- a/hw/Makefile.objs +++ b/hw/Makefile.objs @@ -31,11 +31,6 @@ obj-y += $(devices-dirs-y) ifeq ($(CONFIG_SOFTMMU),y) -# Per-target files -# virtio has to be here due to weird dependency between PCI and virtio-net. -# need to fix this properly -obj-$(CONFIG_VGA) += vga.o - # Inter-VM PCI shared memory & VFIO PCI device assignment ifeq ($(CONFIG_PCI), y) obj-$(CONFIG_KVM) += ivshmem.o diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index 6582f5a0aa..3efefe59cf 100644 --- a/hw/arm/Makefile.objs +++ b/hw/arm/Makefile.objs @@ -5,22 +5,21 @@ obj-y += a9scu.o obj-y += realview_gic.o arm_sysctl.o arm11mpcore.o a9mpcore.o obj-y += exynos4210_gic.o exynos4210_combiner.o obj-y += exynos4210_uart.o exynos4210_pwm.o -obj-y += exynos4210_pmu.o exynos4210_mct.o exynos4210_fimd.o +obj-y += exynos4210_pmu.o exynos4210_mct.o obj-y += exynos4210_rtc.o exynos4210_i2c.o obj-y += arm_mptimer.o a15mpcore.o obj-y += armv7m_nvic.o obj-y += pxa2xx_timer.o pxa2xx_dma.o -obj-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o -obj-y += zaurus.o tc6393xb.o -obj-y += omap_lcdc.o omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \ +obj-y += pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o +obj-y += zaurus.o +obj-y += omap_dma.o omap_clk.o omap_mmc.o omap_i2c.o \ omap_gpio.o omap_intc.o omap_uart.o -obj-y += omap_dss.o soc_dma.o omap_gptimer.o omap_synctimer.o \ +obj-y += soc_dma.o omap_gptimer.o omap_synctimer.o \ omap_gpmc.o omap_sdrc.o omap_spi.o omap_tap.o omap_l4.o obj-y += tsc210x.o -obj-y += blizzard.o cbus.o tusb6010.o +obj-y += cbus.o tusb6010.o obj-y += mst_fpga.o obj-y += bitbang_i2c.o -obj-y += framebuffer.o obj-y += strongarm.o obj-y += imx_serial.o imx_ccm.o imx_timer.o imx_avic.o obj-$(CONFIG_KVM) += kvm/arm_gic.o diff --git a/hw/blizzard_template.h b/hw/blizzard_template.h index 42f4e90b04..a8a8899478 100644 --- a/hw/blizzard_template.h +++ b/hw/blizzard_template.h @@ -55,7 +55,7 @@ static void glue(blizzard_draw_line16_, DEPTH)(PIXEL_TYPE *dest, unsigned int r, g, b; const uint16_t *end = (const void *) src + width; while (src < end) { - data = lduw_raw(src ++); + data = *src ++; b = (data & 0x1f) << 3; data >>= 5; g = (data & 0x3f) << 2; diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs index 3ac154d708..3f7027d46b 100644 --- a/hw/display/Makefile.objs +++ b/hw/display/Makefile.objs @@ -11,3 +11,24 @@ common-obj-$(CONFIG_VGA_PCI) += vga-pci.o common-obj-$(CONFIG_VGA_ISA) += vga-isa.o common-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o common-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o + +common-obj-$(CONFIG_BLIZZARD) += blizzard.o +common-obj-$(CONFIG_EXYNOS4) += exynos4210_fimd.o +common-obj-$(CONFIG_FRAMEBUFFER) += framebuffer.o +common-obj-$(CONFIG_MILKYMIST) += milkymist-vgafb.o +common-obj-$(CONFIG_ZAURUS) += tc6393xb.o + +ifeq ($(CONFIG_GLX),y) +common-obj-$(CONFIG_MILKYMIST) += milkymist-tmu2.o +endif + +obj-$(CONFIG_OMAP) += omap_dss.o +obj-$(CONFIG_OMAP) += omap_lcdc.o +obj-$(CONFIG_PXA2XX) += pxa2xx_lcd.o +obj-$(CONFIG_SM501) += sm501.o +obj-$(CONFIG_TCX) += tcx.o + +obj-$(CONFIG_VGA) += vga.o + +common-obj-$(CONFIG_QXL) += qxl-logger.o qxl-render.o +obj-$(CONFIG_QXL) += qxl.o diff --git a/hw/blizzard.c b/hw/display/blizzard.c index bdb0b15ddb..bdb0b15ddb 100644 --- a/hw/blizzard.c +++ b/hw/display/blizzard.c diff --git a/hw/exynos4210_fimd.c b/hw/display/exynos4210_fimd.c index bf316c62ab..49cca4bf94 100644 --- a/hw/exynos4210_fimd.c +++ b/hw/display/exynos4210_fimd.c @@ -23,7 +23,6 @@ */ #include "qemu-common.h" -#include "exec/cpu-all.h" #include "hw/sysbus.h" #include "ui/console.h" #include "ui/pixel_ops.h" @@ -783,7 +782,7 @@ static void glue(draw_line_palette_, N)(Exynos4210fimdWindow *w, uint8_t *src, \ rgba p, p_old; \ int i; \ do { \ - data = ldq_raw((void *)src); \ + memcpy(&data, src, sizeof(data)); \ src += 8; \ fimd_swap_data(swap, &data); \ for (i = (64 / (N) - 1); i >= 0; i--) { \ @@ -812,7 +811,7 @@ static void glue(draw_line_, N)(Exynos4210fimdWindow *w, uint8_t *src, \ rgba p, p_old; \ int i; \ do { \ - data = ldq_raw((void *)src); \ + memcpy(&data, src, sizeof(data)); \ src += 8; \ fimd_swap_data(swap, &data); \ for (i = (64 / (N) - 1); i >= 0; i--) { \ diff --git a/hw/framebuffer.c b/hw/display/framebuffer.c index 7326a98a41..7326a98a41 100644 --- a/hw/framebuffer.c +++ b/hw/display/framebuffer.c diff --git a/hw/milkymist-tmu2.c b/hw/display/milkymist-tmu2.c index b723a04cc9..b723a04cc9 100644 --- a/hw/milkymist-tmu2.c +++ b/hw/display/milkymist-tmu2.c diff --git a/hw/milkymist-vgafb.c b/hw/display/milkymist-vgafb.c index 98762ecd21..98762ecd21 100644 --- a/hw/milkymist-vgafb.c +++ b/hw/display/milkymist-vgafb.c diff --git a/hw/omap_dss.c b/hw/display/omap_dss.c index ea3afcef5e..ea3afcef5e 100644 --- a/hw/omap_dss.c +++ b/hw/display/omap_dss.c diff --git a/hw/omap_lcdc.c b/hw/display/omap_lcdc.c index 4048cc102d..4048cc102d 100644 --- a/hw/omap_lcdc.c +++ b/hw/display/omap_lcdc.c diff --git a/hw/pxa2xx_lcd.c b/hw/display/pxa2xx_lcd.c index ee59bc2de3..ee59bc2de3 100644 --- a/hw/pxa2xx_lcd.c +++ b/hw/display/pxa2xx_lcd.c diff --git a/hw/qxl-logger.c b/hw/display/qxl-logger.c index 84f9aa1eda..84f9aa1eda 100644 --- a/hw/qxl-logger.c +++ b/hw/display/qxl-logger.c diff --git a/hw/qxl-render.c b/hw/display/qxl-render.c index 8cd9be434d..8cd9be434d 100644 --- a/hw/qxl-render.c +++ b/hw/display/qxl-render.c diff --git a/hw/qxl.c b/hw/display/qxl.c index b66b41442a..b66b41442a 100644 --- a/hw/qxl.c +++ b/hw/display/qxl.c diff --git a/hw/sm501.c b/hw/display/sm501.c index d9fcead719..d9fcead719 100644 --- a/hw/sm501.c +++ b/hw/display/sm501.c diff --git a/hw/tc6393xb.c b/hw/display/tc6393xb.c index 2d5fa89e9b..2d5fa89e9b 100644 --- a/hw/tc6393xb.c +++ b/hw/display/tc6393xb.c diff --git a/hw/tcx.c b/hw/display/tcx.c index c44068e7c9..c44068e7c9 100644 --- a/hw/tcx.c +++ b/hw/display/tcx.c diff --git a/hw/vga.c b/hw/display/vga.c index dc31fd574c..dc31fd574c 100644 --- a/hw/vga.c +++ b/hw/display/vga.c diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs index 6df5fd9196..fe0123489c 100644 --- a/hw/i386/Makefile.objs +++ b/hw/i386/Makefile.objs @@ -7,7 +7,6 @@ obj-$(CONFIG_XEN) += xen_platform.o xen_apic.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen-host-pci-device.o obj-$(CONFIG_XEN_PCI_PASSTHROUGH) += xen_pt.o xen_pt_config_init.o xen_pt_msi.o obj-y += kvm/ -obj-$(CONFIG_SPICE) += qxl.o qxl-logger.o qxl-render.o obj-y += pc-testdev.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/hw/lm32/Makefile.objs b/hw/lm32/Makefile.objs index e328ec8400..a894c466ca 100644 --- a/hw/lm32/Makefile.objs +++ b/hw/lm32/Makefile.objs @@ -9,10 +9,7 @@ obj-y += milkymist-memcard.o obj-y += milkymist-pfpu.o obj-y += milkymist-softusb.o obj-y += milkymist-sysctl.o -obj-$(CONFIG_GLX) += milkymist-tmu2.o obj-y += milkymist-uart.o -obj-y += milkymist-vgafb.o -obj-y += framebuffer.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/hw/milkymist-vgafb_template.h b/hw/milkymist-vgafb_template.h index 1d33ee8b50..e0036e16cf 100644 --- a/hw/milkymist-vgafb_template.h +++ b/hw/milkymist-vgafb_template.h @@ -61,7 +61,7 @@ static void glue(draw_line_, BITS)(void *opaque, uint8_t *d, const uint8_t *s, uint8_t r, g, b; while (width--) { - rgb565 = lduw_raw(s); + memcpy(&rgb565, s, sizeof(rgb565)); r = ((rgb565 >> 11) & 0x1f) << 3; g = ((rgb565 >> 5) & 0x3f) << 2; b = ((rgb565 >> 0) & 0x1f) << 3; diff --git a/hw/sh4/Makefile.objs b/hw/sh4/Makefile.objs index efbb9ebef1..c9b0416b07 100644 --- a/hw/sh4/Makefile.objs +++ b/hw/sh4/Makefile.objs @@ -1,4 +1,4 @@ -obj-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o sm501.o +obj-y += sh_timer.o sh_serial.o sh_intc.o sh_pci.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/hw/sparc/Makefile.objs b/hw/sparc/Makefile.objs index b2a921e7e1..2354616968 100644 --- a/hw/sparc/Makefile.objs +++ b/hw/sparc/Makefile.objs @@ -1,4 +1,4 @@ -obj-y = tcx.o sun4m_iommu.o slavio_intctl.o +obj-y = sun4m_iommu.o slavio_intctl.o obj-y += slavio_timer.o slavio_misc.o sparc32_dma.o obj-y += eccmemctl.o sbi.o sun4c_intctl.o |