Skip to contentSkip to conversation

hw/ reorganization, part 2

PATCH Superseded Paolo Bonzini 4 participants 57 messages Mar 18, 2013 – Mar 20, 2013 Page 2 of 2

Subsystems (8)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#44 lore raw

PATCH 23/35 hw: move timer devices to hw/timer/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/arm-softmmu.mak   |  3 +++
 default-configs/sparc-softmmu.mak |  1 +
 hw/arm/Makefile.objs              | 14 ++++++--------
 hw/cris/Makefile.objs             |  1 -
 hw/lm32/Makefile.objs             |  1 -
 hw/sh4/Makefile.objs              |  2 +-
 hw/sparc/Makefile.objs            |  4 ++--
 hw/timer/Makefile.objs            | 16 ++++++++++++++++
 hw/{ => timer}/arm_mptimer.c      |  0
 hw/{ => timer}/etraxfs_timer.c    |  0
 hw/{ => timer}/exynos4210_mct.c   |  0
 hw/{ => timer}/exynos4210_pwm.c   |  0
 hw/{ => timer}/exynos4210_rtc.c   |  0
 hw/{ => timer}/grlib_gptimer.c    |  0
 hw/{ => timer}/imx_timer.c        |  0
 hw/{ => timer}/lm32_timer.c       |  0
 hw/{ => timer}/milkymist-sysctl.c |  0
 hw/{ => timer}/omap_gptimer.c     |  0
 hw/{ => timer}/omap_synctimer.c   |  0
 hw/{ => timer}/pxa2xx_timer.c     |  0
 hw/{ => timer}/sh_timer.c         |  0
 hw/{ => timer}/slavio_timer.c     |  0
 hw/{ => timer}/tusb6010.c         |  0
 23 files changed, 29 insertions(+), 13 deletions(-)
 rename hw/{ => timer}/arm_mptimer.c (100%)
 rename hw/{ => timer}/etraxfs_timer.c (100%)
 rename hw/{ => timer}/exynos4210_mct.c (100%)
 rename hw/{ => timer}/exynos4210_pwm.c (100%)
 rename hw/{ => timer}/exynos4210_rtc.c (100%)
 rename hw/{ => timer}/grlib_gptimer.c (100%)
 rename hw/{ => timer}/imx_timer.c (100%)
 rename hw/{ => timer}/lm32_timer.c (100%)
 rename hw/{ => timer}/milkymist-sysctl.c (100%)
 rename hw/{ => timer}/omap_gptimer.c (100%)
 rename hw/{ => timer}/omap_synctimer.c (100%)
 rename hw/{ => timer}/pxa2xx_timer.c (100%)
 rename hw/{ => timer}/sh_timer.c (100%)
 rename hw/{ => timer}/slavio_timer.c (100%)
 rename hw/{ => timer}/tusb6010.c (100%)
default-configs/arm-softmmu.mak +3 -0
index 8da5ec8..45c3d54 100644
@@ -34,6 +34,7 @@ CONFIG_MICRODRIVE=y
 CONFIG_USB_MUSB=y
 
 CONFIG_ARM_TIMER=y
+CONFIG_ARM_MPTIMER=y
 CONFIG_PL011=y
 CONFIG_PL022=y
 CONFIG_PL031=y
@@ -53,10 +54,12 @@ CONFIG_PXA2XX=y
 CONFIG_BITBANG_I2C=y
 CONFIG_FRAMEBUFFER=y
 CONFIG_XILINX_SPIPS=y
+
 CONFIG_MARVELL_88W8618=y
 CONFIG_OMAP=y
 CONFIG_BLIZZARD=y
 CONFIG_ONENAND=y
+CONFIG_TUSB6010=y
 CONFIG_IMX=y
 CONFIG_ZAURUS=y
 
default-configs/sparc-softmmu.mak +1 -0
index da5b02d..6a2bad3 100644
@@ -10,5 +10,6 @@ CONFIG_EMPTY_SLOT=y
 CONFIG_PCNET_COMMON=y
 CONFIG_LANCE=y
 CONFIG_TCX=y
+CONFIG_SLAVIO=y
 CONFIG_CS4231=y
 CONFIG_GRLIB=y
hw/arm/Makefile.objs +6 -8
index 26e107f..5ddb90f 100644
@@ -3,23 +3,21 @@ obj-y += arm_gic.o arm_gic_common.o
 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_pwm.o
-obj-y += exynos4210_pmu.o exynos4210_mct.o
-obj-y += exynos4210_rtc.o
-obj-y += arm_mptimer.o a15mpcore.o
+obj-y += exynos4210_pmu.o
+obj-y += a15mpcore.o
 obj-y += armv7m_nvic.o
-obj-y += pxa2xx_timer.o pxa2xx_dma.o
+obj-y += pxa2xx_dma.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_gpio.o omap_intc.o
-obj-y += soc_dma.o omap_gptimer.o omap_synctimer.o \
+obj-y += soc_dma.o \
                 omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
 obj-y += tsc210x.o
-obj-y += cbus.o tusb6010.o
+obj-y += cbus.o
 obj-y += mst_fpga.o
 obj-y += strongarm.o
-obj-y += imx_ccm.o imx_timer.o imx_avic.o
+obj-y += imx_ccm.o imx_avic.o
 obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
 obj-y := $(addprefix ../,$(obj-y))
hw/cris/Makefile.objs +0 -1
index c4d5189..a8a4a9e 100644
@@ -1,7 +1,6 @@
 # IO blocks
 obj-y += etraxfs_dma.o
 obj-y += etraxfs_pic.o
-obj-y += etraxfs_timer.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
hw/lm32/Makefile.objs +0 -1
index e116156..b48cdb1 100644
@@ -1,6 +1,5 @@
 # LM32 peripherals
 obj-y += lm32_pic.o
-obj-y += lm32_timer.o
 obj-y += lm32_sys.o
 obj-y += milkymist-hpdmc.o
 obj-y += milkymist-memcard.o
hw/sh4/Makefile.objs +1 -1
index 10c971a..76b37bb 100644
@@ -1,4 +1,4 @@
-obj-y += sh_timer.o sh_intc.o sh_pci.o
+obj-y += sh_intc.o sh_pci.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
hw/sparc/Makefile.objs +2 -2
index e18bc67..ab1d91c 100644
@@ -1,9 +1,9 @@
 obj-y = sun4m_iommu.o slavio_intctl.o
-obj-y += slavio_timer.o slavio_misc.o sparc32_dma.o
+obj-y += slavio_misc.o sparc32_dma.o
 obj-y += eccmemctl.o sbi.o sun4c_intctl.o
 
 # GRLIB
-obj-y += grlib_gptimer.o grlib_irqmp.o
+obj-y += grlib_irqmp.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
hw/timer/Makefile.objs +16 -0
index a1ef26c..094b20e 100644
@@ -9,4 +9,20 @@ common-obj-$(CONFIG_PUV3) += puv3_ost.o
 common-obj-$(CONFIG_TWL92230) += twl92230.o
 common-obj-$(CONFIG_XILINX) += xilinx_timer.o
 
+obj-$(CONFIG_SLAVIO) += slavio_timer.o
+obj-$(CONFIG_ETRAXFS) += etraxfs_timer.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_mct.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_pwm.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_rtc.o
+obj-$(CONFIG_GRLIB) += grlib_gptimer.o
+obj-$(CONFIG_IMX) += imx_timer.o
+obj-$(CONFIG_LM32) += lm32_timer.o
+obj-$(CONFIG_MILKYMIST) += milkymist-sysctl.o
+obj-$(CONFIG_OMAP) += omap_gptimer.o
+obj-$(CONFIG_OMAP) += omap_synctimer.o
+obj-$(CONFIG_PXA2XX) += pxa2xx_timer.o
+obj-$(CONFIG_SH4) += sh_timer.o
+obj-$(CONFIG_TUSB6010) += tusb6010.o
+
+obj-$(CONFIG_ARM_MPTIMER) += arm_mptimer.o
 obj-$(CONFIG_MC146818RTC) += mc146818rtc.o
hw/timer/arm_mptimer.c renamed from hw/arm_mptimer.c +0 -0
similarity index 100%
rename from hw/arm_mptimer.c
rename to hw/timer/arm_mptimer.c
hw/timer/etraxfs_timer.c renamed from hw/etraxfs_timer.c +0 -0
similarity index 100%
rename from hw/etraxfs_timer.c
rename to hw/timer/etraxfs_timer.c
hw/timer/exynos4210_mct.c renamed from hw/exynos4210_mct.c +0 -0
similarity index 100%
rename from hw/exynos4210_mct.c
rename to hw/timer/exynos4210_mct.c
hw/timer/exynos4210_pwm.c renamed from hw/exynos4210_pwm.c +0 -0
similarity index 100%
rename from hw/exynos4210_pwm.c
rename to hw/timer/exynos4210_pwm.c
hw/timer/exynos4210_rtc.c renamed from hw/exynos4210_rtc.c +0 -0
similarity index 100%
rename from hw/exynos4210_rtc.c
rename to hw/timer/exynos4210_rtc.c
hw/timer/grlib_gptimer.c renamed from hw/grlib_gptimer.c +0 -0
similarity index 100%
rename from hw/grlib_gptimer.c
rename to hw/timer/grlib_gptimer.c
hw/timer/imx_timer.c renamed from hw/imx_timer.c +0 -0
similarity index 100%
rename from hw/imx_timer.c
rename to hw/timer/imx_timer.c
hw/timer/lm32_timer.c renamed from hw/lm32_timer.c +0 -0
similarity index 100%
rename from hw/lm32_timer.c
rename to hw/timer/lm32_timer.c
hw/timer/milkymist-sysctl.c renamed from hw/milkymist-sysctl.c +0 -0
similarity index 100%
rename from hw/milkymist-sysctl.c
rename to hw/timer/milkymist-sysctl.c
hw/timer/omap_gptimer.c renamed from hw/omap_gptimer.c +0 -0
similarity index 100%
rename from hw/omap_gptimer.c
rename to hw/timer/omap_gptimer.c
hw/timer/omap_synctimer.c renamed from hw/omap_synctimer.c +0 -0
similarity index 100%
rename from hw/omap_synctimer.c
rename to hw/timer/omap_synctimer.c
hw/timer/pxa2xx_timer.c renamed from hw/pxa2xx_timer.c +0 -0
similarity index 100%
rename from hw/pxa2xx_timer.c
rename to hw/timer/pxa2xx_timer.c
hw/timer/sh_timer.c renamed from hw/sh_timer.c +0 -0
similarity index 100%
rename from hw/sh_timer.c
rename to hw/timer/sh_timer.c
hw/timer/slavio_timer.c renamed from hw/slavio_timer.c +0 -0
similarity index 100%
rename from hw/slavio_timer.c
rename to hw/timer/slavio_timer.c
hw/timer/tusb6010.c renamed from hw/tusb6010.c +0 -0
similarity index 100%
rename from hw/tusb6010.c
rename to hw/timer/tusb6010.c
Signature · 1 line
1.8.1.4
#45 lore raw

PATCH 24/35 hw: move input devices to hw/input/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/arm-softmmu.mak    | 1 +
 hw/arm/Makefile.objs               | 3 +--
 hw/input/Makefile.objs             | 4 ++++
 hw/{ => input}/milkymist-softusb.c | 0
 hw/{ => input}/pxa2xx_keypad.c     | 0
 hw/{ => input}/tsc210x.c           | 0
 hw/lm32/Makefile.objs              | 1 -
 7 files changed, 6 insertions(+), 3 deletions(-)
 rename hw/{ => input}/milkymist-softusb.c (100%)
 rename hw/{ => input}/pxa2xx_keypad.c (100%)
 rename hw/{ => input}/tsc210x.c (100%)
default-configs/arm-softmmu.mak +1 -0
index 45c3d54..94b52da 100644
@@ -57,6 +57,7 @@ CONFIG_XILINX_SPIPS=y
 
 CONFIG_MARVELL_88W8618=y
 CONFIG_OMAP=y
+CONFIG_TSC210X=y
 CONFIG_BLIZZARD=y
 CONFIG_ONENAND=y
 CONFIG_TUSB6010=y
hw/arm/Makefile.objs +1 -2
index 5ddb90f..7691540 100644
@@ -7,13 +7,12 @@ obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
 obj-y += armv7m_nvic.o
 obj-y += pxa2xx_dma.o
-obj-y += pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o
+obj-y += pxa2xx_mmci.o pxa2xx_pcmcia.o
 obj-y += zaurus.o
 obj-y += omap_dma.o omap_clk.o omap_mmc.o \
                 omap_gpio.o omap_intc.o
 obj-y += soc_dma.o \
                 omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
-obj-y += tsc210x.o
 obj-y += cbus.o
 obj-y += mst_fpga.o
 obj-y += strongarm.o
hw/input/Makefile.objs +4 -0
index 824997e..e8c80b9 100644
@@ -7,3 +7,7 @@ common-obj-y += ps2.o
 common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
 common-obj-$(CONFIG_TSC2005) += tsc2005.o
 common-obj-$(CONFIG_VMMOUSE) += vmmouse.o
+
+obj-$(CONFIG_MILKYMIST) += milkymist-softusb.o
+obj-$(CONFIG_PXA2XX) += pxa2xx_keypad.o
+obj-$(CONFIG_TSC210X) += tsc210x.o
hw/input/milkymist-softusb.c renamed from hw/milkymist-softusb.c +0 -0
similarity index 100%
rename from hw/milkymist-softusb.c
rename to hw/input/milkymist-softusb.c
hw/input/pxa2xx_keypad.c renamed from hw/pxa2xx_keypad.c +0 -0
similarity index 100%
rename from hw/pxa2xx_keypad.c
rename to hw/input/pxa2xx_keypad.c
hw/input/tsc210x.c renamed from hw/tsc210x.c +0 -0
similarity index 100%
rename from hw/tsc210x.c
rename to hw/input/tsc210x.c
hw/lm32/Makefile.objs +0 -1
index b48cdb1..fe8427f 100644
@@ -4,7 +4,6 @@ obj-y += lm32_sys.o
 obj-y += milkymist-hpdmc.o
 obj-y += milkymist-memcard.o
 obj-y += milkymist-pfpu.o
-obj-y += milkymist-softusb.o
 obj-y += milkymist-sysctl.o
 
 obj-y := $(addprefix ../,$(obj-y))
Signature · 1 line
1.8.1.4
#46 lore raw

PATCH 25/35 hw: move SD/MMC devices to hw/sd/, configure with default-configs/

In reply to Paolo Bonzini
---
 hw/arm/Makefile.objs            | 4 ++--
 hw/lm32/Makefile.objs           | 1 -
 hw/sd/Makefile.objs             | 4 ++++
 hw/{ => sd}/milkymist-memcard.c | 0
 hw/{ => sd}/omap_mmc.c          | 0
 hw/{ => sd}/pxa2xx_mmci.c       | 0
 6 files changed, 6 insertions(+), 3 deletions(-)
 rename hw/{ => sd}/milkymist-memcard.c (100%)
 rename hw/{ => sd}/omap_mmc.c (100%)
 rename hw/{ => sd}/pxa2xx_mmci.c (100%)
hw/arm/Makefile.objs +2 -2
index 7691540..8e8e799 100644
@@ -7,9 +7,9 @@ obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
 obj-y += armv7m_nvic.o
 obj-y += pxa2xx_dma.o
-obj-y += pxa2xx_mmci.o pxa2xx_pcmcia.o
+obj-y += pxa2xx_pcmcia.o
 obj-y += zaurus.o
-obj-y += omap_dma.o omap_clk.o omap_mmc.o \
+obj-y += omap_dma.o omap_clk.o \
                 omap_gpio.o omap_intc.o
 obj-y += soc_dma.o \
                 omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
hw/lm32/Makefile.objs +0 -1
index fe8427f..b9c1918 100644
@@ -2,7 +2,6 @@
 obj-y += lm32_pic.o
 obj-y += lm32_sys.o
 obj-y += milkymist-hpdmc.o
-obj-y += milkymist-memcard.o
 obj-y += milkymist-pfpu.o
 obj-y += milkymist-sysctl.o
 
hw/sd/Makefile.objs +4 -0
index 8acce02..f1aed83 100644
@@ -2,3 +2,7 @@ common-obj-$(CONFIG_PL181) += pl181.o
 common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
 common-obj-$(CONFIG_SD) += sd.o
 common-obj-$(CONFIG_SDHCI) += sdhci.o
+
+obj-$(CONFIG_MILKYMIST) += milkymist-memcard.o
+obj-$(CONFIG_OMAP) += omap_mmc.o
+obj-$(CONFIG_PXA2XX) += pxa2xx_mmci.o
hw/sd/milkymist-memcard.c renamed from hw/milkymist-memcard.c +0 -0
similarity index 100%
rename from hw/milkymist-memcard.c
rename to hw/sd/milkymist-memcard.c
hw/sd/omap_mmc.c renamed from hw/omap_mmc.c +0 -0
similarity index 100%
rename from hw/omap_mmc.c
rename to hw/sd/omap_mmc.c
hw/sd/pxa2xx_mmci.c renamed from hw/pxa2xx_mmci.c +0 -0
similarity index 100%
rename from hw/pxa2xx_mmci.c
rename to hw/sd/pxa2xx_mmci.c
Signature · 1 line
1.8.1.4
#47 lore raw

PATCH 26/35 hw: move PCI bridges to hw/pci/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/i386-softmmu.mak       |  3 +++
 default-configs/mips-softmmu.mak       |  1 +
 default-configs/mips64-softmmu.mak     |  1 +
 default-configs/mips64el-softmmu.mak   |  1 +
 default-configs/mipsel-softmmu.mak     |  1 +
 default-configs/ppc-softmmu.mak        |  1 +
 default-configs/ppc64-softmmu.mak      |  1 +
 default-configs/ppcemb-softmmu.mak     |  1 +
 default-configs/sparc64-softmmu.mak    |  1 +
 default-configs/x86_64-softmmu.mak     |  2 ++
 hw/i386/Makefile.objs                  |  3 +--
 hw/mips/Makefile.objs                  |  5 -----
 hw/pci/Makefile.objs                   | 12 ++++++++++++
 hw/{apb_pci.c => pci/host-apb.c}       |  0
 hw/{bonito.c => pci/host-bonito.c}     |  0
 hw/{gt64xxx.c => pci/host-gt64xxx.c}   |  0
 hw/{piix_pci.c => pci/host-piix.c}     |  0
 hw/{ppc4xx_pci.c => pci/host-ppc4xx.c} |  0
 hw/{q35.c => pci/host-q35.c}           |  0
 hw/{sh_pci.c => pci/host-sh.c}         |  0
 hw/{spapr_pci.c => pci/host-spapr.c}   |  0
 hw/ppc/Makefile.objs                   |  3 ---
 hw/sh4/Makefile.objs                   |  2 +-
 hw/sparc64/Makefile.objs               |  4 ----
 24 files changed, 27 insertions(+), 15 deletions(-)
 rename hw/{apb_pci.c => pci/host-apb.c} (100%)
 rename hw/{bonito.c => pci/host-bonito.c} (100%)
 rename hw/{gt64xxx.c => pci/host-gt64xxx.c} (100%)
 rename hw/{piix_pci.c => pci/host-piix.c} (100%)
 rename hw/{ppc4xx_pci.c => pci/host-ppc4xx.c} (100%)
 rename hw/{q35.c => pci/host-q35.c} (100%)
 rename hw/{sh_pci.c => pci/host-sh.c} (100%)
 rename hw/{spapr_pci.c => pci/host-spapr.c} (100%)
default-configs/i386-softmmu.mak +3 -0
index 7f3111c..213b4e7 100644
@@ -30,6 +30,8 @@ CONFIG_PFLASH_CFI01=y
 CONFIG_TPM_TIS=y
 CONFIG_PCI_HOTPLUG=y
 CONFIG_MC146818RTC=y
+CONFIG_PCI_PIIX=y
+CONFIG_PCI_HOTPLUG=y
 CONFIG_WDT_IB700=y
 CONFIG_PC_SYSFW=y
 CONFIG_XEN_I386=$(CONFIG_XEN)
@@ -38,3 +40,4 @@ CONFIG_ISA_TESTDEV=y
 CONFIG_VMPORT=y
 CONFIG_SGA=y
 CONFIG_LPC_ICH9=y
+CONFIG_Q35=y
default-configs/mips-softmmu.mak +1 -0
index 2b48452..fc05135 100644
@@ -32,4 +32,5 @@ CONFIG_PFLASH_CFI01=y
 CONFIG_G364FB=y
 CONFIG_I8259=y
 CONFIG_JAZZ_LED=y
+CONFIG_PCI_GT64XXX=y
 CONFIG_MC146818RTC=y
default-configs/mips64-softmmu.mak +1 -0
index 5713320..e3a5f86 100644
@@ -32,4 +32,5 @@ CONFIG_PFLASH_CFI01=y
 CONFIG_G364FB=y
 CONFIG_I8259=y
 CONFIG_JAZZ_LED=y
+CONFIG_PCI_GT64XXX=y
 CONFIG_MC146818RTC=y
default-configs/mips64el-softmmu.mak +1 -0
index 096dc80..c0faab0 100644
@@ -34,4 +34,5 @@ CONFIG_FULONG=y
 CONFIG_G364FB=y
 CONFIG_I8259=y
 CONFIG_JAZZ_LED=y
+CONFIG_PCI_GT64XXX=y
 CONFIG_MC146818RTC=y
default-configs/mipsel-softmmu.mak +1 -0
index 5509f0e..f031046 100644
@@ -32,4 +32,5 @@ CONFIG_PFLASH_CFI01=y
 CONFIG_G364FB=y
 CONFIG_I8259=y
 CONFIG_JAZZ_LED=y
+CONFIG_PCI_GT64XXX=y
 CONFIG_MC146818RTC=y
default-configs/ppc-softmmu.mak +1 -0
index 36a8ed3..6eb472d 100644
@@ -41,6 +41,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_PCI_PPC4XX=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
 CONFIG_MC146818RTC=y
default-configs/ppc64-softmmu.mak +1 -0
index 2d5df77..bc69d3c 100644
@@ -41,6 +41,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_PCI_PPC4XX=y
 CONFIG_PSERIES=$(CONFIG_FDT)
 CONFIG_E500=$(CONFIG_FDT)
 # For pSeries
default-configs/ppcemb-softmmu.mak +1 -0
index ce705a9..ee63657 100644
@@ -36,6 +36,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_PCI_PPC4XX=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
 CONFIG_MC146818RTC=y
default-configs/sparc64-softmmu.mak +1 -0
index 3b3dc55..9b08ee8 100644
@@ -13,4 +13,5 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_CMD646=y
+CONFIG_PCI_APB=y
 CONFIG_MC146818RTC=y
default-configs/x86_64-softmmu.mak +2 -0
index 0dddd7b..b2e8932 100644
@@ -30,6 +30,7 @@ CONFIG_PFLASH_CFI01=y
 CONFIG_TPM_TIS=y
 CONFIG_PCI_HOTPLUG=y
 CONFIG_MC146818RTC=y
+CONFIG_PCI_PIIX=y
 CONFIG_WDT_IB700=y
 CONFIG_PC_SYSFW=y
 CONFIG_XEN_I386=$(CONFIG_XEN)
@@ -38,3 +39,4 @@ CONFIG_ISA_TESTDEV=y
 CONFIG_VMPORT=y
 CONFIG_SGA=y
 CONFIG_LPC_ICH9=y
+CONFIG_Q35=y
hw/i386/Makefile.objs +1 -2
index 1dc9575..c06e92a 100644
@@ -1,6 +1,5 @@
 obj-y += apic_common.o apic.o
-obj-y += ioapic_common.o ioapic.o piix_pci.o
-obj-y += q35.o
+obj-y += ioapic_common.o ioapic.o
 obj-y += kvm/
 
 obj-y := $(addprefix ../,$(obj-y))
hw/mips/Makefile.objs +0 -5
index af4d1f9..ae3c949 100644
@@ -1,8 +1,3 @@
-obj-y += gt64xxx.o
-obj-$(CONFIG_FULONG) += bonito.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
 obj-y += addr.o cputimer.o mips_int.o
 obj-$(CONFIG_FULONG) += mips_fulong2e.o
hw/pci/Makefile.objs +12 -0
index f319cc9..8b20135 100644
@@ -26,4 +26,16 @@ common-obj-$(CONFIG_PPCE500_PCI) += host-ppce500.o
 # ARM devices
 common-obj-$(CONFIG_VERSATILE_PCI) += host-versatile.o
 
+obj-$(CONFIG_PCI_APB) += host-apb.o
+obj-$(CONFIG_FULONG) += host-bonito.o
+obj-$(CONFIG_PCI_PIIX) += host-piix.o
+obj-$(CONFIG_PCI_PPC4XX) += host-ppc4xx.o
+obj-$(CONFIG_Q35) += host-q35.o
+obj-$(CONFIG_SH4) += host-sh.o
+obj-$(CONFIG_PSERIES) += host-spapr.o
+
+# This file embeds differences between big- and little-endian
+# Malta boards.  These should be only in hw/mips/.
+obj-$(CONFIG_PCI_GT64XXX) += host-gt64xxx.o
+
 obj-$(CONFIG_PCI_HOTPLUG) += pci-hotplug.o
hw/pci/host-apb.c renamed from hw/apb_pci.c +0 -0
similarity index 100%
rename from hw/apb_pci.c
rename to hw/pci/host-apb.c
hw/pci/host-bonito.c renamed from hw/bonito.c +0 -0
similarity index 100%
rename from hw/bonito.c
rename to hw/pci/host-bonito.c
hw/pci/host-gt64xxx.c renamed from hw/gt64xxx.c +0 -0
similarity index 100%
rename from hw/gt64xxx.c
rename to hw/pci/host-gt64xxx.c
hw/pci/host-piix.c renamed from hw/piix_pci.c +0 -0
similarity index 100%
rename from hw/piix_pci.c
rename to hw/pci/host-piix.c
hw/pci/host-ppc4xx.c renamed from hw/ppc4xx_pci.c +0 -0
similarity index 100%
rename from hw/ppc4xx_pci.c
rename to hw/pci/host-ppc4xx.c
hw/pci/host-q35.c renamed from hw/q35.c +0 -0
similarity index 100%
rename from hw/q35.c
rename to hw/pci/host-q35.c
hw/pci/host-sh.c renamed from hw/sh_pci.c +0 -0
similarity index 100%
rename from hw/sh_pci.c
rename to hw/pci/host-sh.c
hw/pci/host-spapr.c renamed from hw/spapr_pci.c +0 -0
similarity index 100%
rename from hw/spapr_pci.c
rename to hw/pci/host-spapr.c
hw/ppc/Makefile.objs +0 -3
index 1e24b58..79b5c1e 100644
@@ -1,8 +1,5 @@
 # IBM pSeries (sPAPR)
-obj-$(CONFIG_PSERIES) += spapr_pci.o
 obj-$(CONFIG_PSERIES) += spapr_nvram.o
-# PowerPC 4xx boards
-obj-y += ppc4xx_pci.o
 # PowerPC OpenPIC
 obj-y += openpic.o
 
hw/sh4/Makefile.objs +1 -1
index 76b37bb..5a49ae8 100644
@@ -1,4 +1,4 @@
-obj-y += sh_intc.o sh_pci.o
+obj-y += sh_intc.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
hw/sparc64/Makefile.objs +0 -4
index 178464b..a84cfe3 100644
@@ -1,5 +1 @@
-obj-y = apb_pci.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += sun4u.o
Signature · 1 line
1.8.1.4
#48 lore raw

PATCH 27/35 hw: move VFIO and ivshmem to hw/pci/

In reply to Paolo Bonzini
---
 hw/Makefile.objs              | 10 ----------
 hw/pci/Makefile.objs          |  5 +++++
 hw/{ => pci}/ivshmem.c        |  0
 hw/{vfio_pci.c => pci/vfio.c} |  0
 4 files changed, 5 insertions(+), 10 deletions(-)
 rename hw/{ => pci}/ivshmem.c (100%)
 rename hw/{vfio_pci.c => pci/vfio.c} (100%)
hw/Makefile.objs +0 -10
index a57dd9a..7ba0d11 100644
@@ -28,13 +28,3 @@ devices-dirs-$(CONFIG_SOFTMMU) += xen/
 common-obj-y += core/
 common-obj-y += $(devices-dirs-y)
 obj-y += $(devices-dirs-y)
-
-ifeq ($(CONFIG_SOFTMMU),y)
-
-# Inter-VM PCI shared memory & VFIO PCI device assignment
-ifeq ($(CONFIG_PCI), y)
-obj-$(CONFIG_KVM) += ivshmem.o
-obj-$(CONFIG_LINUX) += vfio_pci.o
-endif
-
-endif
hw/pci/Makefile.objs +5 -0
index 8b20135..9086b3b 100644
@@ -26,6 +26,11 @@ common-obj-$(CONFIG_PPCE500_PCI) += host-ppce500.o
 # ARM devices
 common-obj-$(CONFIG_VERSATILE_PCI) += host-versatile.o
 
+ifeq ($(CONFIG_PCI), y)
+obj-$(CONFIG_KVM) += ivshmem.o
+obj-$(CONFIG_LINUX) += vfio.o
+endif
+
 obj-$(CONFIG_PCI_APB) += host-apb.o
 obj-$(CONFIG_FULONG) += host-bonito.o
 obj-$(CONFIG_PCI_PIIX) += host-piix.o
hw/pci/ivshmem.c renamed from hw/ivshmem.c +0 -0
similarity index 100%
rename from hw/ivshmem.c
rename to hw/pci/ivshmem.c
hw/pci/vfio.c renamed from hw/vfio_pci.c +0 -0
similarity index 100%
rename from hw/vfio_pci.c
rename to hw/pci/vfio.c
Signature · 1 line
1.8.1.4
#49 lore raw

PATCH 28/35 hw: move DMA controllers to hw/dma/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/sparc-softmmu.mak | 2 ++
 hw/arm/Makefile.objs              | 7 ++-----
 hw/cris/Makefile.objs             | 1 -
 hw/dma/Makefile.objs              | 6 ++++++
 hw/{ => dma}/etraxfs_dma.c        | 0
 hw/{ => dma}/omap_dma.c           | 0
 hw/{ => dma}/pxa2xx_dma.c         | 0
 hw/{ => dma}/soc_dma.c            | 0
 hw/{ => dma}/sparc32_dma.c        | 0
 hw/{ => dma}/sun4m_iommu.c        | 0
 hw/sparc/Makefile.objs            | 4 ++--
 11 files changed, 12 insertions(+), 8 deletions(-)
 rename hw/{ => dma}/etraxfs_dma.c (100%)
 rename hw/{ => dma}/omap_dma.c (100%)
 rename hw/{ => dma}/pxa2xx_dma.c (100%)
 rename hw/{ => dma}/soc_dma.c (100%)
 rename hw/{ => dma}/sparc32_dma.c (100%)
 rename hw/{ => dma}/sun4m_iommu.c (100%)
default-configs/sparc-softmmu.mak +2 -0
index 6a2bad3..8c4d0a6 100644
@@ -13,3 +13,5 @@ CONFIG_TCX=y
 CONFIG_SLAVIO=y
 CONFIG_CS4231=y
 CONFIG_GRLIB=y
+CONFIG_STP2000=y
+CONFIG_SUN4M=y
hw/arm/Makefile.objs +2 -5
index 8e8e799..59b5cf6 100644
@@ -6,13 +6,10 @@ obj-y += exynos4210_gic.o exynos4210_combiner.o
 obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
 obj-y += armv7m_nvic.o
-obj-y += pxa2xx_dma.o
 obj-y += pxa2xx_pcmcia.o
 obj-y += zaurus.o
-obj-y += omap_dma.o omap_clk.o \
-                omap_gpio.o omap_intc.o
-obj-y += soc_dma.o \
-                omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
+obj-y += omap_clk.o omap_gpio.o omap_intc.o
+obj-y += omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
 obj-y += cbus.o
 obj-y += mst_fpga.o
 obj-y += strongarm.o
hw/cris/Makefile.objs +0 -1
index a8a4a9e..f8c85a4 100644
@@ -1,5 +1,4 @@
 # IO blocks
-obj-y += etraxfs_dma.o
 obj-y += etraxfs_pic.o
 
 obj-y := $(addprefix ../,$(obj-y))
hw/dma/Makefile.objs +6 -0
index 7a8ba56..422abc2 100644
@@ -4,3 +4,9 @@ common-obj-$(CONFIG_PL080) += pl080.o
 common-obj-$(CONFIG_PL330) += pl330.o
 common-obj-$(CONFIG_I8257) += i8257.o
 common-obj-$(CONFIG_XILINX_AXI) += xilinx_axidma.o
+
+obj-$(CONFIG_ETRAXFS) += etraxfs_dma.o
+obj-$(CONFIG_OMAP) += omap_dma.o soc_dma.o
+obj-$(CONFIG_PXA2XX) += pxa2xx_dma.o
+obj-$(CONFIG_STP2000) += sparc32_dma.o
+obj-$(CONFIG_SUN4M) += sun4m_iommu.o
hw/dma/etraxfs_dma.c renamed from hw/etraxfs_dma.c +0 -0
similarity index 100%
rename from hw/etraxfs_dma.c
rename to hw/dma/etraxfs_dma.c
hw/dma/omap_dma.c renamed from hw/omap_dma.c +0 -0
similarity index 100%
rename from hw/omap_dma.c
rename to hw/dma/omap_dma.c
hw/dma/pxa2xx_dma.c renamed from hw/pxa2xx_dma.c +0 -0
similarity index 100%
rename from hw/pxa2xx_dma.c
rename to hw/dma/pxa2xx_dma.c
hw/dma/soc_dma.c renamed from hw/soc_dma.c +0 -0
similarity index 100%
rename from hw/soc_dma.c
rename to hw/dma/soc_dma.c
hw/dma/sparc32_dma.c renamed from hw/sparc32_dma.c +0 -0
similarity index 100%
rename from hw/sparc32_dma.c
rename to hw/dma/sparc32_dma.c
hw/dma/sun4m_iommu.c renamed from hw/sun4m_iommu.c +0 -0
similarity index 100%
rename from hw/sun4m_iommu.c
rename to hw/dma/sun4m_iommu.c
hw/sparc/Makefile.objs +2 -2
index ab1d91c..3de10ff 100644
@@ -1,5 +1,5 @@
-obj-y = sun4m_iommu.o slavio_intctl.o
-obj-y += slavio_misc.o sparc32_dma.o
+obj-y = slavio_intctl.o
+obj-y += slavio_misc.o
 obj-y += eccmemctl.o sbi.o sun4c_intctl.o
 
 # GRLIB
Signature · 1 line
1.8.1.4
#50 lore raw

PATCH 29/35 hw: move interrupt controllers to hw/intc/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/arm-softmmu.mak     |  3 +++
 default-configs/i386-softmmu.mak    |  2 ++
 default-configs/ppc-softmmu.mak     |  1 +
 default-configs/ppc64-softmmu.mak   |  1 +
 default-configs/ppcemb-softmmu.mak  |  1 +
 default-configs/x86_64-softmmu.mak  |  2 ++
 hw/arm/Makefile.objs                |  9 +++------
 hw/cris/Makefile.objs               |  6 ------
 hw/i386/Makefile.objs               |  2 --
 hw/intc/Makefile.objs               | 16 ++++++++++++++++
 hw/{ => intc}/apic.c                |  0
 hw/{ => intc}/apic_common.c         |  0
 hw/{ => intc}/arm_gic.c             |  0
 hw/{ => intc}/arm_gic_common.c      |  0
 hw/{ => intc}/armv7m_nvic.c         |  0
 hw/{ => intc}/etraxfs_pic.c         |  0
 hw/{ => intc}/exynos4210_combiner.c |  0
 hw/{ => intc}/exynos4210_gic.c      |  0
 hw/{ => intc}/grlib_irqmp.c         |  0
 hw/{ => intc}/imx_avic.c            |  0
 hw/{ => intc}/ioapic.c              |  0
 hw/{ => intc}/ioapic_common.c       |  0
 hw/{ => intc}/lm32_pic.c            |  0
 hw/{ => intc}/omap_intc.c           |  0
 hw/{ => intc}/openpic.c             |  0
 hw/{ => intc}/realview_gic.c        |  0
 hw/{ => intc}/sbi.c                 |  0
 hw/{ => intc}/sh_intc.c             |  0
 hw/{ => intc}/slavio_intctl.c       |  0
 hw/{ => intc}/sun4c_intctl.c        |  0
 hw/lm32/Makefile.objs               |  1 -
 hw/ppc/Makefile.objs                |  2 --
 hw/sh4/Makefile.objs                |  4 ----
 hw/sparc/Makefile.objs              |  6 +-----
 34 files changed, 30 insertions(+), 26 deletions(-)
 rename hw/{ => intc}/apic.c (100%)
 rename hw/{ => intc}/apic_common.c (100%)
 rename hw/{ => intc}/arm_gic.c (100%)
 rename hw/{ => intc}/arm_gic_common.c (100%)
 rename hw/{ => intc}/armv7m_nvic.c (100%)
 rename hw/{ => intc}/etraxfs_pic.c (100%)
 rename hw/{ => intc}/exynos4210_combiner.c (100%)
 rename hw/{ => intc}/exynos4210_gic.c (100%)
 rename hw/{ => intc}/grlib_irqmp.c (100%)
 rename hw/{ => intc}/imx_avic.c (100%)
 rename hw/{ => intc}/ioapic.c (100%)
 rename hw/{ => intc}/ioapic_common.c (100%)
 rename hw/{ => intc}/lm32_pic.c (100%)
 rename hw/{ => intc}/omap_intc.c (100%)
 rename hw/{ => intc}/openpic.c (100%)
 rename hw/{ => intc}/realview_gic.c (100%)
 rename hw/{ => intc}/sbi.c (100%)
 rename hw/{ => intc}/sh_intc.c (100%)
 rename hw/{ => intc}/slavio_intctl.c (100%)
 rename hw/{ => intc}/sun4c_intctl.c (100%)
default-configs/arm-softmmu.mak +3 -0
index 94b52da..5aef0d2 100644
@@ -16,6 +16,7 @@ CONFIG_TWL92230=y
 CONFIG_TSC2005=y
 CONFIG_LM832X=y
 CONFIG_TMP105=y
+CONFIG_STELLARIS=y
 CONFIG_STELLARIS_INPUT=y
 CONFIG_STELLARIS_ENET=y
 CONFIG_SSD0303=y
@@ -33,6 +34,7 @@ CONFIG_PFLASH_CFI02=y
 CONFIG_MICRODRIVE=y
 CONFIG_USB_MUSB=y
 
+CONFIG_ARM_GIC=y
 CONFIG_ARM_TIMER=y
 CONFIG_ARM_MPTIMER=y
 CONFIG_PL011=y
@@ -62,6 +64,7 @@ CONFIG_BLIZZARD=y
 CONFIG_ONENAND=y
 CONFIG_TUSB6010=y
 CONFIG_IMX=y
+CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
 
 CONFIG_VERSATILE_PCI=y
default-configs/i386-softmmu.mak +2 -0
index 213b4e7..6067024 100644
@@ -41,3 +41,5 @@ CONFIG_VMPORT=y
 CONFIG_SGA=y
 CONFIG_LPC_ICH9=y
 CONFIG_Q35=y
+CONFIG_APIC=y
+CONFIG_IOAPIC=y
default-configs/ppc-softmmu.mak +1 -0
index 6eb472d..92e28ca 100644
@@ -41,6 +41,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_OPENPIC=y
 CONFIG_PCI_PPC4XX=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
default-configs/ppc64-softmmu.mak +1 -0
index bc69d3c..6406af4 100644
@@ -42,6 +42,7 @@ CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
 CONFIG_PCI_PPC4XX=y
+CONFIG_OPENPIC=y
 CONFIG_PSERIES=$(CONFIG_FDT)
 CONFIG_E500=$(CONFIG_FDT)
 # For pSeries
default-configs/ppcemb-softmmu.mak +1 -0
index ee63657..c1a1e6d 100644
@@ -36,6 +36,7 @@ CONFIG_PTIMER=y
 CONFIG_I8259=y
 CONFIG_XILINX=y
 CONFIG_XILINX_ETHLITE=y
+CONFIG_OPENPIC=y
 CONFIG_PCI_PPC4XX=y
 CONFIG_E500=$(CONFIG_FDT)
 # For PReP
default-configs/x86_64-softmmu.mak +2 -0
index b2e8932..5999fd2 100644
@@ -40,3 +40,5 @@ CONFIG_VMPORT=y
 CONFIG_SGA=y
 CONFIG_LPC_ICH9=y
 CONFIG_Q35=y
+CONFIG_APIC=y
+CONFIG_IOAPIC=y
hw/arm/Makefile.objs +3 -6
index 59b5cf6..da51491 100644
@@ -1,19 +1,16 @@
 obj-y += zynq_slcr.o
-obj-y += arm_gic.o arm_gic_common.o
 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 += arm_sysctl.o arm11mpcore.o a9mpcore.o
 obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
-obj-y += armv7m_nvic.o
 obj-y += pxa2xx_pcmcia.o
 obj-y += zaurus.o
-obj-y += omap_clk.o omap_gpio.o omap_intc.o
+obj-y += omap_clk.o omap_gpio.o
 obj-y += omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
 obj-y += cbus.o
 obj-y += mst_fpga.o
 obj-y += strongarm.o
-obj-y += imx_ccm.o imx_avic.o
+obj-y += imx_ccm.o
 obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
 obj-y := $(addprefix ../,$(obj-y))
hw/cris/Makefile.objs +0 -6
index f8c85a4..776db7c 100644
@@ -1,9 +1,3 @@
-# IO blocks
-obj-y += etraxfs_pic.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
-# Boards
 obj-y += pic_cpu.o
 obj-y += boot.o
 obj-y += axis_dev88.o
hw/i386/Makefile.objs +0 -2
index c06e92a..c1d73a8 100644
@@ -1,5 +1,3 @@
-obj-y += apic_common.o apic.o
-obj-y += ioapic_common.o ioapic.o
 obj-y += kvm/
 
 obj-y := $(addprefix ../,$(obj-y))
hw/intc/Makefile.objs +16 -0
index 2813adb..157f461 100644
@@ -3,3 +3,19 @@ common-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
 common-obj-$(CONFIG_PL190) += pl190.o
 common-obj-$(CONFIG_PUV3) += puv3_intc.o
 common-obj-$(CONFIG_XILINX) += xilinx_intc.o
+
+obj-$(CONFIG_APIC) += apic.o apic_common.o
+obj-$(CONFIG_ARM_GIC) += arm_gic.o arm_gic_common.o
+obj-$(CONFIG_STELLARIS) += armv7m_nvic.o
+obj-$(CONFIG_ETRAXFS) += etraxfs_pic.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_gic.o exynos4210_combiner.o
+obj-$(CONFIG_GRLIB) += grlib_irqmp.o
+obj-$(CONFIG_IMX) += imx_avic.o
+obj-$(CONFIG_IOAPIC) += ioapic.o
+obj-$(CONFIG_IOAPIC) += ioapic_common.o
+obj-$(CONFIG_LM32) += lm32_pic.o
+obj-$(CONFIG_OMAP) += omap_intc.o
+obj-$(CONFIG_OPENPIC) += openpic.o
+obj-$(CONFIG_REALVIEW) += realview_gic.o
+obj-$(CONFIG_SH4) += sh_intc.o
+obj-$(CONFIG_SLAVIO) += sbi.o slavio_intctl.o sun4c_intctl.o
hw/intc/apic.c renamed from hw/apic.c +0 -0
similarity index 100%
rename from hw/apic.c
rename to hw/intc/apic.c
hw/intc/apic_common.c renamed from hw/apic_common.c +0 -0
similarity index 100%
rename from hw/apic_common.c
rename to hw/intc/apic_common.c
hw/intc/arm_gic.c renamed from hw/arm_gic.c +0 -0
similarity index 100%
rename from hw/arm_gic.c
rename to hw/intc/arm_gic.c
hw/intc/arm_gic_common.c renamed from hw/arm_gic_common.c +0 -0
similarity index 100%
rename from hw/arm_gic_common.c
rename to hw/intc/arm_gic_common.c
hw/intc/armv7m_nvic.c renamed from hw/armv7m_nvic.c +0 -0
similarity index 100%
rename from hw/armv7m_nvic.c
rename to hw/intc/armv7m_nvic.c
hw/intc/etraxfs_pic.c renamed from hw/etraxfs_pic.c +0 -0
similarity index 100%
rename from hw/etraxfs_pic.c
rename to hw/intc/etraxfs_pic.c
hw/intc/exynos4210_combiner.c renamed from hw/exynos4210_combiner.c +0 -0
similarity index 100%
rename from hw/exynos4210_combiner.c
rename to hw/intc/exynos4210_combiner.c
hw/intc/exynos4210_gic.c renamed from hw/exynos4210_gic.c +0 -0
similarity index 100%
rename from hw/exynos4210_gic.c
rename to hw/intc/exynos4210_gic.c
hw/intc/grlib_irqmp.c renamed from hw/grlib_irqmp.c +0 -0
similarity index 100%
rename from hw/grlib_irqmp.c
rename to hw/intc/grlib_irqmp.c
hw/intc/imx_avic.c renamed from hw/imx_avic.c +0 -0
similarity index 100%
rename from hw/imx_avic.c
rename to hw/intc/imx_avic.c
hw/intc/ioapic.c renamed from hw/ioapic.c +0 -0
similarity index 100%
rename from hw/ioapic.c
rename to hw/intc/ioapic.c
hw/intc/ioapic_common.c renamed from hw/ioapic_common.c +0 -0
similarity index 100%
rename from hw/ioapic_common.c
rename to hw/intc/ioapic_common.c
hw/intc/lm32_pic.c renamed from hw/lm32_pic.c +0 -0
similarity index 100%
rename from hw/lm32_pic.c
rename to hw/intc/lm32_pic.c
hw/intc/omap_intc.c renamed from hw/omap_intc.c +0 -0
similarity index 100%
rename from hw/omap_intc.c
rename to hw/intc/omap_intc.c
hw/intc/openpic.c renamed from hw/openpic.c +0 -0
similarity index 100%
rename from hw/openpic.c
rename to hw/intc/openpic.c
hw/intc/realview_gic.c renamed from hw/realview_gic.c +0 -0
similarity index 100%
rename from hw/realview_gic.c
rename to hw/intc/realview_gic.c
hw/intc/sbi.c renamed from hw/sbi.c +0 -0
similarity index 100%
rename from hw/sbi.c
rename to hw/intc/sbi.c
hw/intc/sh_intc.c renamed from hw/sh_intc.c +0 -0
similarity index 100%
rename from hw/sh_intc.c
rename to hw/intc/sh_intc.c
hw/intc/slavio_intctl.c renamed from hw/slavio_intctl.c +0 -0
similarity index 100%
rename from hw/slavio_intctl.c
rename to hw/intc/slavio_intctl.c
hw/intc/sun4c_intctl.c renamed from hw/sun4c_intctl.c +0 -0
similarity index 100%
rename from hw/sun4c_intctl.c
rename to hw/intc/sun4c_intctl.c
hw/lm32/Makefile.objs +0 -1
index b9c1918..204685a 100644
@@ -1,5 +1,4 @@
 # LM32 peripherals
-obj-y += lm32_pic.o
 obj-y += lm32_sys.o
 obj-y += milkymist-hpdmc.o
 obj-y += milkymist-pfpu.o
hw/ppc/Makefile.objs +0 -2
index 79b5c1e..dd2bd08 100644
@@ -1,7 +1,5 @@
 # IBM pSeries (sPAPR)
 obj-$(CONFIG_PSERIES) += spapr_nvram.o
-# PowerPC OpenPIC
-obj-y += openpic.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
hw/sh4/Makefile.objs +0 -4
index 5a49ae8..235271f 100644
@@ -1,7 +1,3 @@
-obj-y += sh_intc.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += shix.o r2d.o
 
 obj-y += sh7750.o sh7750_regnames.o
hw/sparc/Makefile.objs +1 -5
index 3de10ff..3246bb1 100644
@@ -1,9 +1,5 @@
-obj-y = slavio_intctl.o
 obj-y += slavio_misc.o
-obj-y += eccmemctl.o sbi.o sun4c_intctl.o
-
-# GRLIB
-obj-y += grlib_irqmp.o
+obj-y += eccmemctl.o
 
 obj-y := $(addprefix ../,$(obj-y))
 
Signature · 1 line
1.8.1.4
#51 lore raw

PATCH 30/35 hw: move GPIO interfaces to hw/gpio/, configure with default-configs/

In reply to Paolo Bonzini
---
 hw/arm/Makefile.objs      | 3 +--
 hw/gpio/Makefile.objs     | 3 +++
 hw/{ => gpio}/omap_gpio.c | 0
 hw/{ => gpio}/zaurus.c    | 0
 4 files changed, 4 insertions(+), 2 deletions(-)
 rename hw/{ => gpio}/omap_gpio.c (100%)
 rename hw/{ => gpio}/zaurus.c (100%)
hw/arm/Makefile.objs +1 -2
index da51491..6f70934 100644
@@ -4,8 +4,7 @@ obj-y += arm_sysctl.o arm11mpcore.o a9mpcore.o
 obj-y += exynos4210_pmu.o
 obj-y += a15mpcore.o
 obj-y += pxa2xx_pcmcia.o
-obj-y += zaurus.o
-obj-y += omap_clk.o omap_gpio.o
+obj-y += omap_clk.o
 obj-y += omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
 obj-y += cbus.o
 obj-y += mst_fpga.o
hw/gpio/Makefile.objs +3 -0
index f8d8ee8..28e4939 100644
@@ -1,3 +1,6 @@
 common-obj-$(CONFIG_MAX7310) += max7310.o
 common-obj-$(CONFIG_PL061) += pl061.o
 common-obj-$(CONFIG_PUV3) += puv3_gpio.o
+
+obj-$(CONFIG_OMAP) += omap_gpio.o
+obj-$(CONFIG_ZAURUS) += zaurus.o
hw/gpio/omap_gpio.c renamed from hw/omap_gpio.c +0 -0
similarity index 100%
rename from hw/omap_gpio.c
rename to hw/gpio/omap_gpio.c
hw/gpio/zaurus.c renamed from hw/zaurus.c +0 -0
similarity index 100%
rename from hw/zaurus.c
rename to hw/gpio/zaurus.c
Signature · 1 line
1.8.1.4
#52 lore raw

PATCH 31/35 hw: move NVRAM interfaces to hw/nvram/, configure with default-configs/

In reply to Paolo Bonzini
---
 hw/nvram/Makefile.objs       | 1 +
 hw/{ => nvram}/spapr_nvram.c | 0
 hw/ppc/Makefile.objs         | 5 -----
 3 files changed, 1 insertion(+), 5 deletions(-)
 rename hw/{ => nvram}/spapr_nvram.c (100%)
hw/nvram/Makefile.objs +1 -0
index 80fb1b0..e9a6694 100644
@@ -2,3 +2,4 @@ common-obj-$(CONFIG_DS1225Y) += ds1225y.o
 common-obj-y += eeprom93xx.o
 common-obj-y += fw_cfg.o
 common-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
+obj-$(CONFIG_PSERIES) += spapr_nvram.o
hw/nvram/spapr_nvram.c renamed from hw/spapr_nvram.c +0 -0
similarity index 100%
rename from hw/spapr_nvram.c
rename to hw/nvram/spapr_nvram.c
hw/ppc/Makefile.objs +0 -5
index dd2bd08..fd0a660 100644
@@ -1,8 +1,3 @@
-# IBM pSeries (sPAPR)
-obj-$(CONFIG_PSERIES) += spapr_nvram.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 # shared objects
 obj-y += ppc.o ppc_booke.o
 # IBM pSeries (sPAPR)
Signature · 1 line
1.8.1.4
#53 lore raw

PATCH 32/35 hw: move other devices to hw/misc/, configure with default-configs/

In reply to Paolo Bonzini
---
 default-configs/arm-softmmu.mak   |  4 ++++
 default-configs/sparc-softmmu.mak |  1 +
 hw/arm/Makefile.objs              | 11 +----------
 hw/lm32/Makefile.objs             |  8 --------
 hw/misc/Makefile.objs             | 19 +++++++++++++++++++
 hw/{ => misc}/a9scu.c             |  0
 hw/{ => misc}/arm_sysctl.c        |  0
 hw/{ => misc}/cbus.c              |  0
 hw/{ => misc}/eccmemctl.c         |  0
 hw/{ => misc}/exynos4210_pmu.c    |  0
 hw/{ => misc}/imx_ccm.c           |  0
 hw/{ => misc}/lm32_sys.c          |  0
 hw/{ => misc}/milkymist-hpdmc.c   |  0
 hw/{ => misc}/milkymist-pfpu.c    |  0
 hw/{ => misc}/mst_fpga.c          |  0
 hw/{ => misc}/omap_clk.c          |  0
 hw/{ => misc}/omap_gpmc.c         |  0
 hw/{ => misc}/omap_l4.c           |  0
 hw/{ => misc}/omap_sdrc.c         |  0
 hw/{ => misc}/omap_tap.c          |  0
 hw/{ => misc}/pxa2xx_pcmcia.c     |  0
 hw/{ => misc}/slavio_misc.c       |  0
 hw/{ => misc}/zynq_slcr.c         |  0
 hw/sparc/Makefile.objs            |  5 -----
 24 files changed, 25 insertions(+), 23 deletions(-)
 rename hw/{ => misc}/a9scu.c (100%)
 rename hw/{ => misc}/arm_sysctl.c (100%)
 rename hw/{ => misc}/cbus.c (100%)
 rename hw/{ => misc}/eccmemctl.c (100%)
 rename hw/{ => misc}/exynos4210_pmu.c (100%)
 rename hw/{ => misc}/imx_ccm.c (100%)
 rename hw/{ => misc}/lm32_sys.c (100%)
 rename hw/{ => misc}/milkymist-hpdmc.c (100%)
 rename hw/{ => misc}/milkymist-pfpu.c (100%)
 rename hw/{ => misc}/mst_fpga.c (100%)
 rename hw/{ => misc}/omap_clk.c (100%)
 rename hw/{ => misc}/omap_gpmc.c (100%)
 rename hw/{ => misc}/omap_l4.c (100%)
 rename hw/{ => misc}/omap_sdrc.c (100%)
 rename hw/{ => misc}/omap_tap.c (100%)
 rename hw/{ => misc}/pxa2xx_pcmcia.c (100%)
 rename hw/{ => misc}/slavio_misc.c (100%)
 rename hw/{ => misc}/zynq_slcr.c (100%)
default-configs/arm-softmmu.mak +4 -0
index 5aef0d2..500c391 100644
@@ -57,6 +57,7 @@ CONFIG_BITBANG_I2C=y
 CONFIG_FRAMEBUFFER=y
 CONFIG_XILINX_SPIPS=y
 
+CONFIG_A9SCU=y
 CONFIG_MARVELL_88W8618=y
 CONFIG_OMAP=y
 CONFIG_TSC210X=y
@@ -64,8 +65,11 @@ CONFIG_BLIZZARD=y
 CONFIG_ONENAND=y
 CONFIG_TUSB6010=y
 CONFIG_IMX=y
+CONFIG_MAINSTONE=y
+CONFIG_NSERIES=y
 CONFIG_REALVIEW=y
 CONFIG_ZAURUS=y
+CONFIG_ZYNQ=y
 
 CONFIG_VERSATILE_PCI=y
 CONFIG_VERSATILE_I2C=y
default-configs/sparc-softmmu.mak +1 -0
index 8c4d0a6..8fc93dd 100644
@@ -14,4 +14,5 @@ CONFIG_SLAVIO=y
 CONFIG_CS4231=y
 CONFIG_GRLIB=y
 CONFIG_STP2000=y
+CONFIG_ECCMEMCTL=y
 CONFIG_SUN4M=y
hw/arm/Makefile.objs +1 -10
index 6f70934..9ffb911 100644
@@ -1,15 +1,6 @@
-obj-y += zynq_slcr.o
-obj-y += a9scu.o
-obj-y += arm_sysctl.o arm11mpcore.o a9mpcore.o
-obj-y += exynos4210_pmu.o
+obj-y += arm11mpcore.o a9mpcore.o
 obj-y += a15mpcore.o
-obj-y += pxa2xx_pcmcia.o
-obj-y += omap_clk.o
-obj-y += omap_gpmc.o omap_sdrc.o omap_tap.o omap_l4.o
-obj-y += cbus.o
-obj-y += mst_fpga.o
 obj-y += strongarm.o
-obj-y += imx_ccm.o
 obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
 obj-y := $(addprefix ../,$(obj-y))
hw/lm32/Makefile.objs +0 -8
index 204685a..ea6418a 100644
@@ -1,11 +1,3 @@
-# LM32 peripherals
-obj-y += lm32_sys.o
-obj-y += milkymist-hpdmc.o
-obj-y += milkymist-pfpu.o
-obj-y += milkymist-sysctl.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 # LM32 boards
 obj-y += lm32_boards.o
 obj-y += milkymist.o
hw/misc/Makefile.objs +19 -0
index d44458e..8c5c528 100644
@@ -8,3 +8,22 @@ common-obj-$(CONFIG_PL310) += arm_l2x0.o
 common-obj-$(CONFIG_PUV3) += puv3_pm.o
 
 common-obj-$(CONFIG_MACIO) += macio/
+
+obj-$(CONFIG_REALVIEW) += arm_sysctl.o
+obj-$(CONFIG_A9SCU) += a9scu.o
+obj-$(CONFIG_NSERIES) += cbus.o
+obj-$(CONFIG_ECCMEMCTL) += eccmemctl.o
+obj-$(CONFIG_EXYNOS4) += exynos4210_pmu.o
+obj-$(CONFIG_IMX) += imx_ccm.o
+obj-$(CONFIG_LM32) += lm32_sys.o
+obj-$(CONFIG_MILKYMIST) += milkymist-hpdmc.o
+obj-$(CONFIG_MILKYMIST) += milkymist-pfpu.o
+obj-$(CONFIG_MAINSTONE) += mst_fpga.o
+obj-$(CONFIG_OMAP) += omap_clk.o
+obj-$(CONFIG_OMAP) += omap_gpmc.o
+obj-$(CONFIG_OMAP) += omap_l4.o
+obj-$(CONFIG_OMAP) += omap_sdrc.o
+obj-$(CONFIG_OMAP) += omap_tap.o
+obj-$(CONFIG_PXA2XX) += pxa2xx_pcmcia.o
+obj-$(CONFIG_SLAVIO) += slavio_misc.o
+obj-$(CONFIG_ZYNQ) += zynq_slcr.o
hw/misc/a9scu.c renamed from hw/a9scu.c +0 -0
similarity index 100%
rename from hw/a9scu.c
rename to hw/misc/a9scu.c
hw/misc/arm_sysctl.c renamed from hw/arm_sysctl.c +0 -0
similarity index 100%
rename from hw/arm_sysctl.c
rename to hw/misc/arm_sysctl.c
hw/misc/cbus.c renamed from hw/cbus.c +0 -0
similarity index 100%
rename from hw/cbus.c
rename to hw/misc/cbus.c
hw/misc/eccmemctl.c renamed from hw/eccmemctl.c +0 -0
similarity index 100%
rename from hw/eccmemctl.c
rename to hw/misc/eccmemctl.c
hw/misc/exynos4210_pmu.c renamed from hw/exynos4210_pmu.c +0 -0
similarity index 100%
rename from hw/exynos4210_pmu.c
rename to hw/misc/exynos4210_pmu.c
hw/misc/imx_ccm.c renamed from hw/imx_ccm.c +0 -0
similarity index 100%
rename from hw/imx_ccm.c
rename to hw/misc/imx_ccm.c
hw/misc/lm32_sys.c renamed from hw/lm32_sys.c +0 -0
similarity index 100%
rename from hw/lm32_sys.c
rename to hw/misc/lm32_sys.c
hw/misc/milkymist-hpdmc.c renamed from hw/milkymist-hpdmc.c +0 -0
similarity index 100%
rename from hw/milkymist-hpdmc.c
rename to hw/misc/milkymist-hpdmc.c
hw/misc/milkymist-pfpu.c renamed from hw/milkymist-pfpu.c +0 -0
similarity index 100%
rename from hw/milkymist-pfpu.c
rename to hw/misc/milkymist-pfpu.c
hw/misc/mst_fpga.c renamed from hw/mst_fpga.c +0 -0
similarity index 100%
rename from hw/mst_fpga.c
rename to hw/misc/mst_fpga.c
hw/misc/omap_clk.c renamed from hw/omap_clk.c +0 -0
similarity index 100%
rename from hw/omap_clk.c
rename to hw/misc/omap_clk.c
hw/misc/omap_gpmc.c renamed from hw/omap_gpmc.c +0 -0
similarity index 100%
rename from hw/omap_gpmc.c
rename to hw/misc/omap_gpmc.c
hw/misc/omap_l4.c renamed from hw/omap_l4.c +0 -0
similarity index 100%
rename from hw/omap_l4.c
rename to hw/misc/omap_l4.c
hw/misc/omap_sdrc.c renamed from hw/omap_sdrc.c +0 -0
similarity index 100%
rename from hw/omap_sdrc.c
rename to hw/misc/omap_sdrc.c
hw/misc/omap_tap.c renamed from hw/omap_tap.c +0 -0
similarity index 100%
rename from hw/omap_tap.c
rename to hw/misc/omap_tap.c
hw/misc/pxa2xx_pcmcia.c renamed from hw/pxa2xx_pcmcia.c +0 -0
similarity index 100%
rename from hw/pxa2xx_pcmcia.c
rename to hw/misc/pxa2xx_pcmcia.c
hw/misc/slavio_misc.c renamed from hw/slavio_misc.c +0 -0
similarity index 100%
rename from hw/slavio_misc.c
rename to hw/misc/slavio_misc.c
hw/misc/zynq_slcr.c renamed from hw/zynq_slcr.c +0 -0
similarity index 100%
rename from hw/zynq_slcr.c
rename to hw/misc/zynq_slcr.c
hw/sparc/Makefile.objs +0 -5
index 3246bb1..c987b5b 100644
@@ -1,6 +1 @@
-obj-y += slavio_misc.o
-obj-y += eccmemctl.o
-
-obj-y := $(addprefix ../,$(obj-y))
-
 obj-y += sun4m.o leon3.o
Signature · 1 line
1.8.1.4
#54 lore raw

PATCH 33/35 arm: move remaining files to hw/arm/

In reply to Paolo Bonzini
---
 hw/arm/Makefile.objs       | 8 ++++++--
 hw/{ => arm}/a15mpcore.c   | 0
 hw/{ => arm}/a9mpcore.c    | 0
 hw/{ => arm}/arm11mpcore.c | 0
 hw/{ => arm}/strongarm.c   | 0
 5 files changed, 6 insertions(+), 2 deletions(-)
 rename hw/{ => arm}/a15mpcore.c (100%)
 rename hw/{ => arm}/a9mpcore.c (100%)
 rename hw/{ => arm}/arm11mpcore.c (100%)
 rename hw/{ => arm}/strongarm.c (100%)
hw/arm/Makefile.objs +6 -2
index 9ffb911..66d67d3 100644
@@ -1,14 +1,18 @@
+# CPU cores
 obj-y += arm11mpcore.o a9mpcore.o
 obj-y += a15mpcore.o
+
+# All-in-one devices, should be refactored
 obj-y += strongarm.o
-obj-$(CONFIG_KVM) += kvm/arm_gic.o
 
-obj-y := $(addprefix ../,$(obj-y))
+obj-$(CONFIG_KVM) += ../kvm/arm_gic.o
 
+# Boards
 obj-y += boot.o collie.o exynos4_boards.o gumstix.o highbank.o
 obj-y += integratorcp.o kzm.o mainstone.o musicpal.o nseries.o
 obj-y += omap_sx1.o palm.o pic_cpu.o realview.o spitz.o stellaris.o
 obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o
 
+# Devices that require ARMCPU
 obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o
 obj-y += omap1.o omap2.o
hw/arm/a15mpcore.c renamed from hw/a15mpcore.c +0 -0
similarity index 100%
rename from hw/a15mpcore.c
rename to hw/arm/a15mpcore.c
hw/arm/a9mpcore.c renamed from hw/a9mpcore.c +0 -0
similarity index 100%
rename from hw/a9mpcore.c
rename to hw/arm/a9mpcore.c
hw/arm/arm11mpcore.c renamed from hw/arm11mpcore.c +0 -0
similarity index 100%
rename from hw/arm11mpcore.c
rename to hw/arm/arm11mpcore.c
hw/arm/strongarm.c renamed from hw/strongarm.c +0 -0
similarity index 100%
rename from hw/strongarm.c
rename to hw/arm/strongarm.c
Signature · 1 line
1.8.1.4
#55 lore raw

PATCH 34/35 MAINTAINERS: update for source code movement

In reply to Paolo Bonzini
---
 MAINTAINERS | 170 +++++++++++++++++++++++++++++++++---------------------------
 1 file changed, 93 insertions(+), 77 deletions(-)
MAINTAINERS +93 -77
index 0ca7e1d..f8e25c5 100644
@@ -59,75 +59,90 @@ Alpha
 M: Richard Henderson <[email protected]>
 S: Maintained
 F: target-alpha/
+F: hw/alpha/
 
 ARM
 M: Paul Brook <[email protected]>
 M: Peter Maydell <[email protected]>
 S: Maintained
 F: target-arm/
+F: hw/arm/
 
 CRIS
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
 F: target-cris/
+F: hw/cris/
 
 LM32
 M: Michael Walle <[email protected]>
 S: Maintained
 F: target-lm32/
+F: hw/lm32/
 
 M68K
 M: Paul Brook <[email protected]>
 S: Odd Fixes
 F: target-m68k/
+F: hw/m68k/
 
 MicroBlaze
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
 F: target-microblaze/
+F: hw/microblaze/
 
 MIPS
 M: Aurelien Jarno <[email protected]>
 S: Odd Fixes
 F: target-mips/
+F: hw/mips/
 
 PowerPC
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Maintained
 F: target-ppc/
+F: hw/ppc/
 
 S390
 M: Richard Henderson <[email protected]>
 M: Alexander Graf <[email protected]>
 S: Maintained
 F: target-s390x/
+F: hw/s390x/
 
 SH4
 M: Aurelien Jarno <[email protected]>
 S: Odd Fixes
 F: target-sh4/
+F: hw/sh4/
 
 SPARC
 M: Blue Swirl <[email protected]>
 S: Maintained
 F: target-sparc/
+F: hw/sparc/
+F: hw/sparc64/
 
 UniCore32
 M: Guan Xuetao <[email protected]>
 S: Maintained
 F: target-unicore32/
+F: hw/unicore32/
 
 X86
 M: [email protected]
 S: Odd Fixes
 F: target-i386/
+F: hw/i386/
 
 Xtensa
 M: Max Filippov <[email protected]>
 W: http://wiki.osll.spb.ru/doku.php?id=etc:users:jcmvbkbc:qemu-target-xtensa
 S: Maintained
 F: target-xtensa/
+F: hw/xtensa/
 
 Guest CPU Cores (KVM):
 ----------------------
@@ -200,156 +215,156 @@ M: Maksim Kozlov <[email protected]>
 M: Igor Mitsyanko <[email protected]>
 M: Dmitry Solodkiy <[email protected]>
 S: Maintained
-F: hw/exynos*
+F: hw/*/exynos*
 
 Calxeda Highbank
 M: Mark Langsdorf <[email protected]>
 S: Supported
-F: hw/highbank.c
-F: hw/xgmac.c
+F: hw/arm/highbank.c
+F: hw/net/xgmac.c
 
 Gumstix
 M: [email protected]
 S: Orphan
-F: hw/gumstix.c
+F: hw/arm/gumstix.c
 
 i.MX31
 M: Peter Chubb <[email protected]>
 S: Odd fixes
-F: hw/imx*
-F: hw/kzm.c
+F: hw/*/imx*
+F: hw/arm/kzm.c
 
 Integrator CP
 M: Paul Brook <[email protected]>
 M: Peter Maydell <[email protected]>
 S: Maintained
-F: hw/integratorcp.c
+F: hw/arm/integratorcp.c
 
 Mainstone
 M: [email protected]
 S: Orphan
-F: hw/mainstone.c
+F: hw/arm/mainstone.c
 
 Musicpal
 M: Jan Kiszka <[email protected]>
 S: Maintained
-F: hw/musicpal.c
+F: hw/arm/musicpal.c
 
 nSeries
 M: Andrzej Zaborowski <[email protected]>
 S: Maintained
-F: hw/nseries.c
+F: hw/arm/nseries.c
 
 Palm
 M: Andrzej Zaborowski <[email protected]>
 S: Maintained
-F: hw/palm.c
+F: hw/arm/palm.c
 
 Real View
 M: Paul Brook <[email protected]>
 M: Peter Maydell <[email protected]>
 S: Maintained
-F: hw/realview*
+F: hw/arm/realview*
 
 Spitz
 M: Andrzej Zaborowski <[email protected]>
 S: Maintained
-F: hw/spitz.c
+F: hw/arm/spitz.c
 
 Stellaris
 M: Paul Brook <[email protected]>
 M: Peter Maydell <[email protected]>
 S: Maintained
-F: hw/stellaris.c
+F: hw/*/stellaris*
 
 Versatile PB
 M: Paul Brook <[email protected]>
 M: Peter Maydell <[email protected]>
 S: Maintained
-F: hw/versatilepb.c
+F: hw/*/versatile*
 
 Xilinx Zynq
 M: Peter Crosthwaite <[email protected]>
 S: Maintained
-F: hw/xilinx_zynq.c
-F: hw/zynq_slcr.c
-F: hw/cadence_*
-F: hw/xilinx_spips.c
+F: hw/arm/xilinx_zynq.c
+F: hw/misc/zynq_slcr.c
+F: hw/*/cadence_*
+F: hw/ssi/xilinx_spips.c
 
 CRIS Machines
 -------------
 Axis Dev88
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
-F: hw/axis_dev88.c
+F: hw/cris/axis_dev88.c
 
 etraxfs
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
-F: hw/etraxfs.c
+F: hw/cris/etraxfs.c
 
 LM32 Machines
 -------------
 EVR32 and uclinux BSP
 M: Michael Walle <[email protected]>
 S: Maintained
-F: hw/lm32_boards.c
+F: hw/lm32/lm32_boards.c
 
 milkymist
 M: Michael Walle <[email protected]>
 S: Maintained
-F: hw/milkymist.c
+F: hw/lm32/milkymist.c
 
 M68K Machines
 -------------
 an5206
 M: Paul Brook <[email protected]>
 S: Maintained
-F: hw/an5206.c
+F: hw/m68k/an5206.c
 
 dummy_m68k
 M: Paul Brook <[email protected]>
 S: Maintained
-F: hw/dummy_m68k.c
+F: hw/m68k/dummy_m68k.c
 
 mcf5208
 M: Paul Brook <[email protected]>
 S: Maintained
-F: hw/mcf5208.c
+F: hw/m68k/mcf5208.c
 
 MicroBlaze Machines
 -------------------
 petalogix_s3adsp1800
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
-F: hw/petalogix_s3adsp1800.c
+F: hw/microblaze/petalogix_s3adsp1800.c
 
 petalogix_ml605
 M: Peter Crosthwaite <[email protected]>
 S: Maintained
-F: hw/petalogix_ml605_mmu.c
+F: hw/microblaze/petalogix_ml605_mmu.c
 
 MIPS Machines
 -------------
 Jazz
 M: Hervé Poussineau <[email protected]>
 S: Maintained
-F: hw/mips_jazz.c
+F: hw/mips/mips_jazz.c
 
 Malta
 M: Aurelien Jarno <[email protected]>
 S: Maintained
-F: hw/mips_malta.c
+F: hw/mips/mips_malta.c
 
 Mipssim
 M: [email protected]
 S: Orphan
-F: hw/mips_mipssim.c
+F: hw/mips/mips_mipssim.c
 
 R4000
 M: Aurelien Jarno <[email protected]>
 S: Maintained
-F: hw/mips_r4k.c
+F: hw/mips/mips_r4k.c
 
 PowerPC Machines
 ----------------
@@ -357,13 +372,13 @@ PowerPC Machines
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/ppc405_boards.c
+F: hw/ppc/ppc405_boards.c
 
 Bamboo
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/ppc440_bamboo.c
+F: hw/ppc/ppc440_bamboo.c
 
 e500
 M: Alexander Graf <[email protected]>
@@ -379,43 +394,45 @@ M: Scott Wood <[email protected]>
 L: [email protected]
 S: Supported
 F: hw/ppc/mpc8544ds.c
-F: hw/mpc8544_guts.c
+F: hw/ppc/mpc8544_guts.c
 
 New World
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/ppc/mac_newworld.c
-F: hw/unin_pci.c
-F: hw/dec_pci.[hc]
+F: hw/pci/host-uninorth.c
+F: hw/pci/host-dec.[hc]
+F: hw/misc/macio/
 
 Old World
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Maintained
 F: hw/ppc/mac_oldworld.c
-F: hw/grackle_pci.c
+F: hw/pci/host-grackle.c
+F: hw/misc/macio/
 
 PReP
 M: Andreas Färber <[email protected]>
 L: [email protected]
 S: Odd Fixes
 F: hw/ppc/prep.c
-F: hw/prep_pci.[hc]
-F: hw/pc87312.[hc]
+F: hw/pci/host-prep.[hc]
+F: hw/isa/pc87312.[hc]
 
 sPAPR
 M: David Gibson <[email protected]>
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Supported
-F: hw/spapr*
+F: hw/*/spapr*
 
 virtex_ml507
 M: Edgar E. Iglesias <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/virtex_ml507.c
+F: hw/pci/virtex_ml507.c
 
 SH4 Machines
 ------------
@@ -434,25 +451,25 @@ SPARC Machines
 Sun4m
 M: Blue Swirl <[email protected]>
 S: Maintained
-F: hw/sun4m.c
+F: hw/sparc/sun4m.c
 
 Sun4u
 M: Blue Swirl <[email protected]>
 S: Maintained
-F: hw/sun4u.c
+F: hw/sparc64/sun4u.c
 
 Leon3
 M: Fabien Chouteau <[email protected]>
 S: Maintained
-F: hw/leon3.c
-F: hw/grlib*
+F: hw/sparc/leon3.c
+F: hw/*/grlib*
 
 S390 Machines
 -------------
 S390 Virtio
 M: Alexander Graf <[email protected]>
 S: Maintained
-F: hw/s390-*.c
+F: hw/s390/s390-*.c
 
 S390 Virtio-ccw
 M: Cornelia Huck <[email protected]>
@@ -467,7 +484,7 @@ UniCore32 Machines
 PKUnity-3 SoC initramfs-with-busybox
 M: Guan Xuetao <[email protected]>
 S: Maintained
-F: hw/puv3*
+F: hw/*/puv3*
 F: hw/unicore32/
 
 X86 Machines
@@ -475,90 +492,92 @@ X86 Machines
 PC
 M: Anthony Liguori <[email protected]>
 S: Supported
-F: hw/pc.[ch]
-F: hw/pc_piix.c
+F: hw/i386/pc.[ch]
+F: hw/i386/pc_piix.c
 
 Xtensa Machines
 ---------------
 sim
 M: Max Filippov <[email protected]>
 S: Maintained
-F: hw/xtensa_sim.c
+F: hw/xtensa/xtensa_sim.c
 
 Avnet LX60
 M: Max Filippov <[email protected]>
 S: Maintained
-F: hw/xtensa_lx60.c
+F: hw/xtensa/xtensa_lx60.c
 
 Devices
 -------
 IDE
 M: Kevin Wolf <[email protected]>
 S: Odd Fixes
+F: include/hw/ide.h
 F: hw/ide/
 
 OMAP
 M: Peter Maydell <[email protected]>
 S: Maintained
-F: hw/omap*
+F: hw/*/omap*
 
 PCI
 M: Michael S. Tsirkin <[email protected]>
 S: Supported
+F: include/hw/pci/*
 F: hw/pci/*
-F: hw/pci*
-F: hw/piix*
+F: hw/acpi/piix4.c
 
 ppc4xx
 M: Alexander Graf <[email protected]>
 L: [email protected]
 S: Odd Fixes
-F: hw/ppc4xx*.[hc]
+F: hw/host-ppc4xx.c
+F: hw/ppc4xx_devs.c
 
 ppce500
 M: Alexander Graf <[email protected]>
 M: Scott Wood <[email protected]>
 L: [email protected]
 S: Supported
-F: hw/ppce500_*
+F: hw/ppc/e500_*
 
 SCSI
 M: Paolo Bonzini <[email protected]>
 S: Supported
-F: hw/virtio-scsi.*
-F: hw/scsi*
+F: include/hw/scsi*
+F: hw/scsi/*
 T: git git://github.com/bonzini/qemu.git scsi-next
 
 LSI53C895A
 M: Paul Brook <[email protected]>
 S: Odd Fixes
-F: hw/lsi53c895a.c
+F: hw/scsi/lsi53c895a.c
 
 SSI
 M: Peter Crosthwaite <[email protected]>
 S: Maintained
-F: hw/ssi.*
-F: hw/m25p80.c
+F: hw/ssi/*
+F: hw/block/m25p80.c
 
 USB
 M: Gerd Hoffmann <[email protected]>
 S: Maintained
-F: hw/usb*
+F: hw/usb/*
 
 VFIO
 M: Alex Williamson <[email protected]>
 S: Supported
-F: hw/vfio*
+F: hw/pci/vfio.c
 
 vhost
 M: Michael S. Tsirkin <[email protected]>
 S: Supported
-F: hw/vhost*
+F: hw/*/*vhost*
 
 virtio
 M: Anthony Liguori <[email protected]>
 S: Supported
-F: hw/virtio*
+F: hw/*/virtio*
 
 virtio-9p
 M: Aneesh Kumar K.V <[email protected]>
@@ -571,7 +590,7 @@ virtio-blk
 M: Kevin Wolf <[email protected]>
 M: Stefan Hajnoczi <[email protected]>
 S: Supported
-F: hw/virtio-blk*
+F: hw/block/virtio-blk.c
 
 virtio-ccw
 M: Cornelia Huck <[email protected]>
@@ -582,20 +601,15 @@ T: git git://github.com/cohuck/qemu virtio-ccw-upstr
 virtio-serial
 M: Amit Shah <[email protected]>
 S: Supported
-F: hw/virtio-serial*
-F: hw/virtio-console*
+F: hw/char/virtio-serial-bus.c
+F: hw/char/virtio-console.c
 
 Xilinx EDK
 M: Peter Crosthwaite <[email protected]>
 M: Edgar E. Iglesias <[email protected]>
 S: Maintained
-F: hw/xilinx_axi*
-F: hw/xilinx_uartlite.c
-F: hw/xilinx_intc.c
-F: hw/xilinx_ethlite.c
-F: hw/xilinx_timer.c
-F: hw/xilinx.h
-F: hw/xilinx_spi.c
+F: hw/*/xilinx_*
+F: include/hw/xilinx.h
 
 Subsystems
 ----------
@@ -603,6 +617,7 @@ Audio
 M: Vassili Karpov (malc) <[email protected]>
 S: Maintained
 F: audio/
+F: hw/audio/
 
 Block
 M: Kevin Wolf <[email protected]>
@@ -610,6 +625,7 @@ M: Stefan Hajnoczi <[email protected]>
 S: Supported
 F: block*
 F: block/
+F: hw/block/
 
 Character Devices
 M: Anthony Liguori <[email protected]>
@@ -641,7 +657,7 @@ S: Supported
 F: ui/qemu-spice.h
 F: ui/spice-*.c
 F: audio/spiceaudio.c
-F: hw/qxl*
+F: hw/display/qxl*
 
 Graphics
 M: Anthony Liguori <[email protected]>
Signature · 1 line
1.8.1.4
#56 lore raw

PATCH 35/35 hw: move private headers to hw/ subdirectories.

In reply to Paolo Bonzini

Many headers are used only in a single directory. These can be kept in hw/.

---
 hw/arm/collie.c                                   |  2 +-
 hw/arm/strongarm.c                                |  2 +-
 hw/{ => arm}/strongarm.h                          |  0
 hw/audio/adlib.c                                  |  2 +-
 hw/audio/fmopl.c                                  |  2 +-
 hw/{ => audio}/fmopl.h                            |  0
 hw/audio/gus.c                                    |  4 +--
 hw/{ => audio}/gusemu.h                           |  0
 hw/audio/gusemu_hal.c                             |  4 +--
 hw/audio/gusemu_mixer.c                           |  4 +--
 hw/{ => audio}/gustate.h                          |  0
 hw/audio/hda-codec.c                              |  4 +--
 hw/{ => audio}/intel-hda-defs.h                   |  0
 hw/audio/intel-hda.c                              |  4 +--
 hw/{ => audio}/intel-hda.h                        |  0
 hw/audio/lm4549.c                                 |  2 +-
 hw/{ => audio}/lm4549.h                           |  0
 hw/audio/pl041.c                                  |  4 +--
 hw/{ => audio}/pl041.h                            |  0
 hw/{ => block}/xen_blkif.h                        |  0
 hw/block/xen_disk.c                               |  2 +-
 hw/char/ipack.c                                   |  2 +-
 hw/{ => char}/ipack.h                             |  0
 hw/char/ipoctal232.c                              |  2 +-
 hw/char/tpci200.c                                 |  2 +-
 hw/core/loader.c                                  |  2 +-
 hw/{ => core}/uboot_image.h                       |  0
 hw/cris/axis_dev88.c                              |  2 +-
 hw/cris/boot.c                                    |  2 +-
 hw/{cris-boot.h => cris/boot.h}                   |  0
 hw/display/blizzard.c                             | 12 +++----
 hw/{ => display}/blizzard_template.h              |  0
 hw/display/cirrus_vga.c                           | 38 +++++++++++------------
 hw/{ => display}/cirrus_vga_rop.h                 |  8 ++---
 hw/{ => display}/cirrus_vga_rop2.h                |  0
 hw/{ => display}/cirrus_vga_template.h            |  0
 hw/display/framebuffer.c                          |  2 +-
 hw/{ => display}/framebuffer.h                    |  0
 hw/display/milkymist-vgafb.c                      | 12 +++----
 hw/{ => display}/milkymist-vgafb_template.h       |  0
 hw/{ => display}/omap_lcd_template.h              |  0
 hw/display/omap_lcdc.c                            | 10 +++---
 hw/display/pl110.c                                | 12 +++----
 hw/{ => display}/pl110_template.h                 | 12 +++----
 hw/display/pxa2xx_lcd.c                           | 12 +++----
 hw/{ => display}/pxa2xx_template.h                |  0
 hw/display/qxl-logger.c                           |  2 +-
 hw/display/qxl-render.c                           |  2 +-
 hw/display/qxl.c                                  |  2 +-
 hw/{ => display}/qxl.h                            |  2 +-
 hw/display/sm501.c                                | 14 ++++-----
 hw/{ => display}/sm501_template.h                 |  0
 hw/display/tc6393xb.c                             | 10 +++---
 hw/{ => display}/tc6393xb_template.h              |  0
 hw/display/vga-isa-mm.c                           |  2 +-
 hw/display/vga-isa.c                              |  2 +-
 hw/display/vga-pci.c                              |  2 +-
 hw/display/vga.c                                  | 18 +++++------
 hw/{ => display}/vga.h                            |  0
 hw/{ => display}/vga_int.h                        |  0
 hw/{ => display}/vga_template.h                   |  0
 hw/display/vmware_vga.c                           |  2 +-
 hw/i2c/bitbang_i2c.c                              |  2 +-
 hw/{ => i2c}/bitbang_i2c.h                        |  0
 hw/i2c/versatile_i2c.c                            |  2 +-
 hw/i386/multiboot.c                               |  2 +-
 hw/{ => i386}/multiboot.h                         |  0
 hw/i386/pc.c                                      |  2 +-
 hw/i386/xen_domainbuild.c                         |  2 +-
 hw/{ => i386}/xen_domainbuild.h                   |  0
 hw/i386/xen_machine_pv.c                          |  2 +-
 hw/intc/arm_gic.c                                 |  2 +-
 hw/intc/arm_gic_common.c                          |  2 +-
 hw/intc/armv7m_nvic.c                             |  2 +-
 hw/{arm_gic_internal.h => intc/gic_internal.h}    |  0
 hw/kvm/arm_gic.c                                  |  2 +-
 hw/{ => lm32}/lm32.h                              |  0
 hw/lm32/lm32_boards.c                             |  4 +--
 hw/{ => lm32}/lm32_hwsetup.h                      |  0
 hw/{ => lm32}/milkymist-hw.h                      |  0
 hw/lm32/milkymist.c                               |  4 +--
 hw/microblaze/boot.c                              |  2 +-
 hw/{microblaze_boot.h => microblaze/boot.h}       |  0
 hw/microblaze/petalogix_ml605_mmu.c               |  4 +--
 hw/microblaze/petalogix_s3adsp1800_mmu.c          |  4 +--
 hw/microblaze/pic_cpu.c                           |  2 +-
 hw/{microblaze_pic_cpu.h => microblaze/pic_cpu.h} |  0
 hw/misc/tmp105.c                                  |  2 +-
 hw/{ => misc}/tmp105.h                            |  0
 hw/net/e1000.c                                    |  2 +-
 hw/{e1000_hw.h => net/e1000_regs.h}               |  0
 hw/net/lance.c                                    |  2 +-
 hw/net/ne2000-isa.c                               |  2 +-
 hw/net/ne2000.c                                   |  2 +-
 hw/{ => net}/ne2000.h                             |  0
 hw/net/pcnet-pci.c                                |  2 +-
 hw/net/pcnet.c                                    |  2 +-
 hw/{ => net}/pcnet.h                              |  0
 hw/pci/host-dec.c                                 |  2 +-
 hw/{dec_pci.h => pci/host-dec.h}                  |  0
 hw/pci/ioh3420.c                                  |  2 +-
 hw/{ => pci}/ioh3420.h                            |  0
 hw/pci/xio3130_downstream.c                       |  2 +-
 hw/{ => pci}/xio3130_downstream.h                 |  0
 hw/pci/xio3130_upstream.c                         |  2 +-
 hw/{ => pci}/xio3130_upstream.h                   |  0
 hw/{ => ppc}/ppc405.h                             |  0
 hw/ppc/ppc405_boards.c                            |  2 +-
 hw/ppc/ppc405_uc.c                                |  2 +-
 hw/ppc/ppc440_bamboo.c                            |  2 +-
 hw/ppc/virtex_ml507.c                             |  2 +-
 hw/scsi/megasas.c                                 |  2 +-
 hw/{ => scsi}/mfi.h                               |  0
 hw/scsi/spapr_vscsi.c                             |  4 +--
 hw/{ => scsi}/srp.h                               |  0
 hw/{ppc-viosrp.h => scsi/viosrp.h}                |  0
 hw/sd/sdhci.c                                     |  2 +-
 hw/{ => sd}/sdhci.h                               |  0
 hw/sh4/r2d.c                                      |  2 +-
 hw/sh4/sh7750.c                                   |  4 +--
 hw/sh4/sh7750_regnames.c                          |  4 +--
 hw/{ => sh4}/sh7750_regnames.h                    |  0
 hw/{ => sh4}/sh7750_regs.h                        |  0
 hw/usb/ccid-card-emulated.c                       |  2 +-
 hw/usb/ccid-card-passthru.c                       |  2 +-
 hw/{ => usb}/ccid.h                               |  0
 hw/usb/dev-smartcard-reader.c                     |  2 +-
 hw/virtio/virtio-pci.c                            |  2 +-
 hw/{ => virtio}/virtio-pci.h                      |  0
 hw/xen/xen-host-pci-device.c                      |  2 +-
 hw/{ => xen}/xen-host-pci-device.h                |  0
 hw/xen/xen_pt.c                                   |  2 +-
 hw/{ => xen}/xen_pt.h                             |  2 +-
 hw/xen/xen_pt_config_init.c                       |  2 +-
 hw/xen/xen_pt_msi.c                               |  2 +-
 hw/{ => xtensa}/xtensa_bootparam.h                |  0
 hw/xtensa/xtensa_lx60.c                           |  2 +-
 137 files changed, 166 insertions(+), 166 deletions(-)
 rename hw/{ => arm}/strongarm.h (100%)
 rename hw/{ => audio}/fmopl.h (100%)
 rename hw/{ => audio}/gusemu.h (100%)
 rename hw/{ => audio}/gustate.h (100%)
 rename hw/{ => audio}/intel-hda-defs.h (100%)
 rename hw/{ => audio}/intel-hda.h (100%)
 rename hw/{ => audio}/lm4549.h (100%)
 rename hw/{ => audio}/pl041.h (100%)
 rename hw/{ => block}/xen_blkif.h (100%)
 rename hw/{ => char}/ipack.h (100%)
 rename hw/{ => core}/uboot_image.h (100%)
 rename hw/{cris-boot.h => cris/boot.h} (100%)
 rename hw/{ => display}/blizzard_template.h (100%)
 rename hw/{ => display}/cirrus_vga_rop.h (97%)
 rename hw/{ => display}/cirrus_vga_rop2.h (100%)
 rename hw/{ => display}/cirrus_vga_template.h (100%)
 rename hw/{ => display}/framebuffer.h (100%)
 rename hw/{ => display}/milkymist-vgafb_template.h (100%)
 rename hw/{ => display}/omap_lcd_template.h (100%)
 rename hw/{ => display}/pl110_template.h (98%)
 rename hw/{ => display}/pxa2xx_template.h (100%)
 rename hw/{ => display}/qxl.h (99%)
 rename hw/{ => display}/sm501_template.h (100%)
 rename hw/{ => display}/tc6393xb_template.h (100%)
 rename hw/{ => display}/vga.h (100%)
 rename hw/{ => display}/vga_int.h (100%)
 rename hw/{ => display}/vga_template.h (100%)
 rename hw/{ => i2c}/bitbang_i2c.h (100%)
 rename hw/{ => i386}/multiboot.h (100%)
 rename hw/{ => i386}/xen_domainbuild.h (100%)
 rename hw/{arm_gic_internal.h => intc/gic_internal.h} (100%)
 rename hw/{ => lm32}/lm32.h (100%)
 rename hw/{ => lm32}/lm32_hwsetup.h (100%)
 rename hw/{ => lm32}/milkymist-hw.h (100%)
 rename hw/{microblaze_boot.h => microblaze/boot.h} (100%)
 rename hw/{microblaze_pic_cpu.h => microblaze/pic_cpu.h} (100%)
 rename hw/{ => misc}/tmp105.h (100%)
 rename hw/{e1000_hw.h => net/e1000_regs.h} (100%)
 rename hw/{ => net}/ne2000.h (100%)
 rename hw/{ => net}/pcnet.h (100%)
 rename hw/{dec_pci.h => pci/host-dec.h} (100%)
 rename hw/{ => pci}/ioh3420.h (100%)
 rename hw/{ => pci}/xio3130_downstream.h (100%)
 rename hw/{ => pci}/xio3130_upstream.h (100%)
 rename hw/{ => ppc}/ppc405.h (100%)
 rename hw/{ => scsi}/mfi.h (100%)
 rename hw/{ => scsi}/srp.h (100%)
 rename hw/{ppc-viosrp.h => scsi/viosrp.h} (100%)
 rename hw/{ => sd}/sdhci.h (100%)
 rename hw/{ => sh4}/sh7750_regnames.h (100%)
 rename hw/{ => sh4}/sh7750_regs.h (100%)
 rename hw/{ => usb}/ccid.h (100%)
 rename hw/{ => virtio}/virtio-pci.h (100%)
 rename hw/{ => xen}/xen-host-pci-device.h (100%)
 rename hw/{ => xen}/xen_pt.h (99%)
 rename hw/{ => xtensa}/xtensa_bootparam.h (100%)
hw/arm/collie.c +1 -1
index 76eda8e..5420bb4 100644
@@ -12,7 +12,7 @@
 #include "hw/sysbus.h"
 #include "hw/boards.h"
 #include "hw/arm/devices.h"
-#include "hw/strongarm.h"
+#include "strongarm.h"
 #include "hw/arm.h"
 #include "hw/block/flash.h"
 #include "sysemu/blockdev.h"
hw/arm/strongarm.c +1 -1
index 0e5262d..5873a3c 100644
@@ -27,7 +27,7 @@
  *  GNU GPL, version 2 or (at your option) any later version.
  */
 #include "hw/sysbus.h"
-#include "hw/strongarm.h"
+#include "strongarm.h"
 #include "qemu/error-report.h"
 #include "hw/arm.h"
 #include "char/char.h"
hw/arm/strongarm.h renamed from hw/strongarm.h +0 -0
similarity index 100%
rename from hw/strongarm.h
rename to hw/arm/strongarm.h
hw/audio/adlib.c +1 -1
index 133c0ff..4a58e6e 100644
@@ -47,7 +47,7 @@
 void YMF262UpdateOneQEMU (int which, INT16 *dst, int length);
 #define SHIFT 2
 #else
-#include "hw/fmopl.h"
+#include "fmopl.h"
 #define SHIFT 1
 #endif
 
hw/audio/fmopl.c +1 -1
index e50ba6c..f0a0234 100644
@@ -39,7 +39,7 @@
 #include <stdarg.h>
 #include <math.h>
 //#include "driver.h"		/* use M.A.M.E. */
-#include "hw/fmopl.h"
+#include "fmopl.h"
 
 #ifndef PI
 #define PI 3.14159265358979323846
hw/audio/fmopl.h renamed from hw/fmopl.h +0 -0
similarity index 100%
rename from hw/fmopl.h
rename to hw/audio/fmopl.h
hw/audio/gus.c +2 -2
index e44704b..0604d6e 100644
@@ -25,8 +25,8 @@
 #include "hw/audio/audio.h"
 #include "audio/audio.h"
 #include "hw/isa/isa.h"
-#include "hw/gusemu.h"
-#include "hw/gustate.h"
+#include "gusemu.h"
+#include "gustate.h"
 
 #define dolog(...) AUD_log ("audio", __VA_ARGS__)
 #ifdef DEBUG
hw/audio/gusemu.h renamed from hw/gusemu.h +0 -0
similarity index 100%
rename from hw/gusemu.h
rename to hw/audio/gusemu.h
hw/audio/gusemu_hal.c +2 -2
index 0eee617..6096690 100644
@@ -26,8 +26,8 @@
  * TODO: check mixer: see 7.20 of sdk for panning pos (applies to all gus models?)?
  */
 
-#include "hw/gustate.h"
-#include "hw/gusemu.h"
+#include "gustate.h"
+#include "gusemu.h"
 
 #define GUSregb(position) (*            (gusptr+(position)))
 #define GUSregw(position) (*(GUSword *) (gusptr+(position)))
hw/audio/gusemu_mixer.c +2 -2
index 816c58a..6d8d9ce 100644
@@ -22,8 +22,8 @@
  * THE SOFTWARE.
  */
 
-#include "hw/gusemu.h"
-#include "hw/gustate.h"
+#include "gusemu.h"
+#include "gustate.h"
 
 #define GUSregb(position)  (*            (gusptr+(position)))
 #define GUSregw(position)  (*(GUSword *) (gusptr+(position)))
hw/audio/gustate.h renamed from hw/gustate.h +0 -0
similarity index 100%
rename from hw/gustate.h
rename to hw/audio/gustate.h
hw/audio/hda-codec.c +2 -2
index 6bdd820..362d8c0 100644
@@ -19,8 +19,8 @@
 
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
-#include "hw/intel-hda.h"
-#include "hw/intel-hda-defs.h"
+#include "intel-hda.h"
+#include "intel-hda-defs.h"
 #include "audio/audio.h"
 
 /* -------------------------------------------------------------------------- */
hw/audio/intel-hda-defs.h renamed from hw/intel-hda-defs.h +0 -0
similarity index 100%
rename from hw/intel-hda-defs.h
rename to hw/audio/intel-hda-defs.h
hw/audio/intel-hda.c +2 -2
index 68201cd..3d8077a 100644
@@ -22,8 +22,8 @@
 #include "hw/pci/msi.h"
 #include "qemu/timer.h"
 #include "hw/audio/audio.h"
-#include "hw/intel-hda.h"
-#include "hw/intel-hda-defs.h"
+#include "intel-hda.h"
+#include "intel-hda-defs.h"
 #include "sysemu/dma.h"
 
 /* --------------------------------------------------------------------- */
hw/audio/intel-hda.h renamed from hw/intel-hda.h +0 -0
similarity index 100%
rename from hw/intel-hda.h
rename to hw/audio/intel-hda.h
hw/audio/lm4549.c +1 -1
index 67335cb..d75f7ec 100644
@@ -15,7 +15,7 @@
 
 #include "hw/hw.h"
 #include "audio/audio.h"
-#include "hw/lm4549.h"
+#include "lm4549.h"
 
 #if 0
 #define LM4549_DEBUG  1
hw/audio/lm4549.h renamed from hw/lm4549.h +0 -0
similarity index 100%
rename from hw/lm4549.h
rename to hw/audio/lm4549.h
hw/audio/pl041.c +2 -2
index 92dddc2..653ab4f 100644
@@ -22,8 +22,8 @@
 
 #include "hw/sysbus.h"
 
-#include "hw/pl041.h"
-#include "hw/lm4549.h"
+#include "pl041.h"
+#include "lm4549.h"
 
 #if 0
 #define PL041_DEBUG_LEVEL 1
hw/audio/pl041.h renamed from hw/pl041.h +0 -0
similarity index 100%
rename from hw/pl041.h
rename to hw/audio/pl041.h
hw/block/xen_blkif.h renamed from hw/xen_blkif.h +0 -0
similarity index 100%
rename from hw/xen_blkif.h
rename to hw/block/xen_blkif.h
hw/block/xen_disk.c +1 -1
index e341168..1104b1a 100644
@@ -37,7 +37,7 @@
 
 #include "hw/hw.h"
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_blkif.h"
+#include "xen_blkif.h"
 #include "sysemu/blockdev.h"
 
 /* ------------------------------------------------------------- */
hw/char/ipack.c +1 -1
index b1f46c1..e15540d 100644
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "hw/ipack.h"
+#include "ipack.h"
 
 IPackDevice *ipack_device_find(IPackBus *bus, int32_t slot)
 {
hw/char/ipack.h renamed from hw/ipack.h +0 -0
similarity index 100%
rename from hw/ipack.h
rename to hw/char/ipack.h
hw/char/ipoctal232.c +1 -1
index 1da6a99..c1e3b19 100644
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "hw/ipack.h"
+#include "ipack.h"
 #include "qemu/bitops.h"
 #include "char/char.h"
 
hw/char/tpci200.c +1 -1
index e3408ef..0170602 100644
@@ -8,7 +8,7 @@
  * later version.
  */
 
-#include "hw/ipack.h"
+#include "ipack.h"
 #include "hw/pci/pci.h"
 #include "qemu/bitops.h"
 #include <stdio.h>
hw/core/loader.c +1 -1
index 2f5072d..7507914 100644
@@ -46,7 +46,7 @@
 #include "disas/disas.h"
 #include "monitor/monitor.h"
 #include "sysemu/sysemu.h"
-#include "hw/uboot_image.h"
+#include "uboot_image.h"
 #include "hw/loader.h"
 #include "hw/nvram/fw_cfg.h"
 #include "exec/memory.h"
hw/core/uboot_image.h renamed from hw/uboot_image.h +0 -0
similarity index 100%
rename from hw/uboot_image.h
rename to hw/core/uboot_image.h
hw/cris/axis_dev88.c +1 -1
index 00daceb..7475671 100644
@@ -29,7 +29,7 @@
 #include "hw/cris/etraxfs.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "hw/cris-boot.h"
+#include "boot.h"
 #include "sysemu/blockdev.h"
 #include "exec/address-spaces.h"
 
hw/cris/boot.c +1 -1
index c330e22..622f353 100644
@@ -25,7 +25,7 @@
 #include "hw/hw.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "hw/cris-boot.h"
+#include "boot.h"
 
 static void main_cpu_reset(void *opaque)
 {
hw/cris/boot.h renamed from hw/cris-boot.h +0 -0
similarity index 100%
rename from hw/cris-boot.h
rename to hw/cris/boot.h
hw/display/blizzard.c +6 -6
index bdb0b15..175c5cd 100644
@@ -21,7 +21,7 @@
 #include "qemu-common.h"
 #include "ui/console.h"
 #include "hw/arm/devices.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "ui/pixel_ops.h"
 
 typedef void (*blizzard_fn_t)(uint8_t *, const uint8_t *, unsigned int);
@@ -946,15 +946,15 @@ static void blizzard_screen_dump(void *opaque, const char *filename,
 }
 
 #define DEPTH 8
-#include "hw/blizzard_template.h"
+#include "blizzard_template.h"
 #define DEPTH 15
-#include "hw/blizzard_template.h"
+#include "blizzard_template.h"
 #define DEPTH 16
-#include "hw/blizzard_template.h"
+#include "blizzard_template.h"
 #define DEPTH 24
-#include "hw/blizzard_template.h"
+#include "blizzard_template.h"
 #define DEPTH 32
-#include "hw/blizzard_template.h"
+#include "blizzard_template.h"
 
 void *s1d13745_init(qemu_irq gpio_int)
 {
hw/display/blizzard_template.h renamed from hw/blizzard_template.h +0 -0
similarity index 100%
rename from hw/blizzard_template.h
rename to hw/display/blizzard_template.h
hw/display/cirrus_vga.c +19 -19
index 7a4d634..bf2181a 100644
@@ -29,7 +29,7 @@
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
 #include "ui/console.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "hw/loader.h"
 
 /*
@@ -288,63 +288,63 @@ static void cirrus_bitblt_fill_nop(CirrusVGAState *s,
 
 #define ROP_NAME 0
 #define ROP_FN(d, s) 0
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_and_dst
 #define ROP_FN(d, s) (s) & (d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_and_notdst
 #define ROP_FN(d, s) (s) & (~(d))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notdst
 #define ROP_FN(d, s) ~(d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src
 #define ROP_FN(d, s) s
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME 1
 #define ROP_FN(d, s) ~0
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notsrc_and_dst
 #define ROP_FN(d, s) (~(s)) & (d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_xor_dst
 #define ROP_FN(d, s) (s) ^ (d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_or_dst
 #define ROP_FN(d, s) (s) | (d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notsrc_or_notdst
 #define ROP_FN(d, s) (~(s)) | (~(d))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_notxor_dst
 #define ROP_FN(d, s) ~((s) ^ (d))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME src_or_notdst
 #define ROP_FN(d, s) (s) | (~(d))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notsrc
 #define ROP_FN(d, s) (~(s))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notsrc_or_dst
 #define ROP_FN(d, s) (~(s)) | (d)
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 #define ROP_NAME notsrc_and_notdst
 #define ROP_FN(d, s) (~(s)) & (~(d))
-#include "hw/cirrus_vga_rop.h"
+#include "cirrus_vga_rop.h"
 
 static const cirrus_bitblt_rop_t cirrus_fwd_rop[16] = {
     cirrus_bitblt_rop_fwd_0,
@@ -2166,13 +2166,13 @@ static void cirrus_cursor_invalidate(VGACommonState *s1)
 }
 
 #define DEPTH 8
-#include "hw/cirrus_vga_template.h"
+#include "cirrus_vga_template.h"
 
 #define DEPTH 16
-#include "hw/cirrus_vga_template.h"
+#include "cirrus_vga_template.h"
 
 #define DEPTH 32
-#include "hw/cirrus_vga_template.h"
+#include "cirrus_vga_template.h"
 
 static void cirrus_cursor_draw_line(VGACommonState *s1, uint8_t *d1, int scr_y)
 {
hw/display/cirrus_vga_rop.h renamed from hw/cirrus_vga_rop.h +4 -4
similarity index 97%
rename from hw/cirrus_vga_rop.h
rename to hw/display/cirrus_vga_rop.h
index 894610c..9c7bb09 100644
@@ -191,16 +191,16 @@ glue(glue(cirrus_bitblt_rop_bkwd_transp_, ROP_NAME),_16)(CirrusVGAState *s,
 }
 
 #define DEPTH 8
-#include "hw/cirrus_vga_rop2.h"
+#include "cirrus_vga_rop2.h"
 
 #define DEPTH 16
-#include "hw/cirrus_vga_rop2.h"
+#include "cirrus_vga_rop2.h"
 
 #define DEPTH 24
-#include "hw/cirrus_vga_rop2.h"
+#include "cirrus_vga_rop2.h"
 
 #define DEPTH 32
-#include "hw/cirrus_vga_rop2.h"
+#include "cirrus_vga_rop2.h"
 
 #undef ROP_NAME
 #undef ROP_OP
hw/display/cirrus_vga_rop2.h renamed from hw/cirrus_vga_rop2.h +0 -0
similarity index 100%
rename from hw/cirrus_vga_rop2.h
rename to hw/display/cirrus_vga_rop2.h
hw/display/cirrus_vga_template.h renamed from hw/cirrus_vga_template.h +0 -0
similarity index 100%
rename from hw/cirrus_vga_template.h
rename to hw/display/cirrus_vga_template.h
hw/display/framebuffer.c +1 -1
index 7326a98..6be31db 100644
@@ -19,7 +19,7 @@
 
 #include "hw/hw.h"
 #include "ui/console.h"
-#include "hw/framebuffer.h"
+#include "framebuffer.h"
 
 /* Render an image from a shared memory framebuffer.  */
    
hw/display/framebuffer.h renamed from hw/framebuffer.h +0 -0
similarity index 100%
rename from hw/framebuffer.h
rename to hw/display/framebuffer.h
hw/display/milkymist-vgafb.c +6 -6
index 98762ec..3219041 100644
@@ -26,20 +26,20 @@
 #include "hw/sysbus.h"
 #include "trace.h"
 #include "ui/console.h"
-#include "hw/framebuffer.h"
+#include "framebuffer.h"
 #include "ui/pixel_ops.h"
 #include "qemu/error-report.h"
 
 #define BITS 8
-#include "hw/milkymist-vgafb_template.h"
+#include "milkymist-vgafb_template.h"
 #define BITS 15
-#include "hw/milkymist-vgafb_template.h"
+#include "milkymist-vgafb_template.h"
 #define BITS 16
-#include "hw/milkymist-vgafb_template.h"
+#include "milkymist-vgafb_template.h"
 #define BITS 24
-#include "hw/milkymist-vgafb_template.h"
+#include "milkymist-vgafb_template.h"
 #define BITS 32
-#include "hw/milkymist-vgafb_template.h"
+#include "milkymist-vgafb_template.h"
 
 enum {
     R_CTRL = 0,
hw/display/milkymist-vgafb_template.h renamed from hw/milkymist-vgafb_template.h +0 -0
similarity index 100%
rename from hw/milkymist-vgafb_template.h
rename to hw/display/milkymist-vgafb_template.h
hw/display/omap_lcd_template.h renamed from hw/omap_lcd_template.h +0 -0
similarity index 100%
rename from hw/omap_lcd_template.h
rename to hw/display/omap_lcd_template.h
hw/display/omap_lcdc.c +5 -5
index 4048cc1..be7e9c0 100644
@@ -19,7 +19,7 @@
 #include "hw/hw.h"
 #include "ui/console.h"
 #include "hw/arm/omap.h"
-#include "hw/framebuffer.h"
+#include "framebuffer.h"
 #include "ui/pixel_ops.h"
 
 struct omap_lcd_panel_s {
@@ -70,13 +70,13 @@ static void omap_lcd_interrupts(struct omap_lcd_panel_s *s)
 #define draw_line_func drawfn
 
 #define DEPTH 8
-#include "hw/omap_lcd_template.h"
+#include "omap_lcd_template.h"
 #define DEPTH 15
-#include "hw/omap_lcd_template.h"
+#include "omap_lcd_template.h"
 #define DEPTH 16
-#include "hw/omap_lcd_template.h"
+#include "omap_lcd_template.h"
 #define DEPTH 32
-#include "hw/omap_lcd_template.h"
+#include "omap_lcd_template.h"
 
 static draw_line_func draw_line_table2[33] = {
     [0 ... 32]	= NULL,
hw/display/pl110.c +6 -6
index fbef675..295434e 100644
@@ -9,7 +9,7 @@
 
 #include "hw/sysbus.h"
 #include "ui/console.h"
-#include "hw/framebuffer.h"
+#include "framebuffer.h"
 #include "ui/pixel_ops.h"
 
 #define PL110_CR_EN   0x001
@@ -111,15 +111,15 @@ static const unsigned char *idregs[] = {
 };
 
 #define BITS 8
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define BITS 15
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define BITS 16
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define BITS 24
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define BITS 32
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 
 static int pl110_enabled(pl110_state *s)
 {
hw/display/pl110_template.h renamed from hw/pl110_template.h +6 -6
similarity index 98%
rename from hw/pl110_template.h
rename to hw/display/pl110_template.h
index ec4bfd6..e738e4a 100644
@@ -27,20 +27,20 @@
 #undef RGB
 #define BORDER bgr
 #define ORDER 0
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define ORDER 1
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define ORDER 2
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #undef BORDER
 #define RGB
 #define BORDER rgb
 #define ORDER 0
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define ORDER 1
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #define ORDER 2
-#include "hw/pl110_template.h"
+#include "pl110_template.h"
 #undef BORDER
 
 static drawfn glue(pl110_draw_fn_,BITS)[48] =
hw/display/pxa2xx_lcd.c +6 -6
index ee59bc2..c9bd42e 100644
@@ -16,7 +16,7 @@
 #include "ui/pixel_ops.h"
 /* FIXME: For graphic_rotate. Should probably be done in common code.  */
 #include "sysemu/sysemu.h"
-#include "hw/framebuffer.h"
+#include "framebuffer.h"
 
 struct DMAChannel {
     uint32_t branch;
@@ -981,15 +981,15 @@ static const VMStateDescription vmstate_pxa2xx_lcdc = {
 };
 
 #define BITS 8
-#include "hw/pxa2xx_template.h"
+#include "pxa2xx_template.h"
 #define BITS 15
-#include "hw/pxa2xx_template.h"
+#include "pxa2xx_template.h"
 #define BITS 16
-#include "hw/pxa2xx_template.h"
+#include "pxa2xx_template.h"
 #define BITS 24
-#include "hw/pxa2xx_template.h"
+#include "pxa2xx_template.h"
 #define BITS 32
-#include "hw/pxa2xx_template.h"
+#include "pxa2xx_template.h"
 
 PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem,
                                  hwaddr base, qemu_irq irq)
hw/display/pxa2xx_template.h renamed from hw/pxa2xx_template.h +0 -0
similarity index 100%
rename from hw/pxa2xx_template.h
rename to hw/display/pxa2xx_template.h
hw/display/qxl-logger.c +1 -1
index 84f9aa1..3cd85d9 100644
@@ -20,7 +20,7 @@
  */
 
 #include "qemu/timer.h"
-#include "hw/qxl.h"
+#include "qxl.h"
 
 static const char *qxl_type[] = {
     [ QXL_CMD_NOP ]     = "nop",
hw/display/qxl-render.c +1 -1
index 8cd9be4..f511a62 100644
@@ -19,7 +19,7 @@
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hw/qxl.h"
+#include "qxl.h"
 
 static void qxl_blit(PCIQXLDevice *qxl, QXLRect *rect)
 {
hw/display/qxl.c +1 -1
index b66b414..930b7cf 100644
@@ -27,7 +27,7 @@
 #include "sysemu/sysemu.h"
 #include "trace.h"
 
-#include "hw/qxl.h"
+#include "qxl.h"
 
 /*
  * NOTE: SPICE_RING_PROD_ITEM accesses memory on the pci bar and as
hw/display/qxl.h renamed from hw/qxl.h +1 -1
similarity index 99%
rename from hw/qxl.h
rename to hw/display/qxl.h
index 36f1a25..8e9b0c2 100644
@@ -6,7 +6,7 @@
 #include "ui/console.h"
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "qemu/thread.h"
 
 #include "ui/qemu-spice.h"
hw/display/sm501.c +7 -7
index d9fcead..6b660ac 100644
@@ -1171,28 +1171,28 @@ typedef void draw_hwc_line_func(SM501State * s, int crt, uint8_t * palette,
                                 int c_y, uint8_t *d, int width);
 
 #define DEPTH 8
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define DEPTH 15
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 15
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define DEPTH 16
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 16
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define DEPTH 32
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 32
-#include "hw/sm501_template.h"
+#include "sm501_template.h"
 
 static draw_line_func * draw_line8_funcs[] = {
     draw_line8_8,
hw/display/sm501_template.h renamed from hw/sm501_template.h +0 -0
similarity index 100%
rename from hw/sm501_template.h
rename to hw/display/sm501_template.h
hw/display/tc6393xb.c +5 -5
index 2d5fa89..e252ce9 100644
@@ -421,15 +421,15 @@ static void tc6393xb_nand_writeb(TC6393xbState *s, hwaddr addr, uint32_t value)
 }
 
 #define BITS 8
-#include "hw/tc6393xb_template.h"
+#include "tc6393xb_template.h"
 #define BITS 15
-#include "hw/tc6393xb_template.h"
+#include "tc6393xb_template.h"
 #define BITS 16
-#include "hw/tc6393xb_template.h"
+#include "tc6393xb_template.h"
 #define BITS 24
-#include "hw/tc6393xb_template.h"
+#include "tc6393xb_template.h"
 #define BITS 32
-#include "hw/tc6393xb_template.h"
+#include "tc6393xb_template.h"
 
 static void tc6393xb_draw_graphic(TC6393xbState *s, int full_update)
 {
hw/display/tc6393xb_template.h renamed from hw/tc6393xb_template.h +0 -0
similarity index 100%
rename from hw/tc6393xb_template.h
rename to hw/display/tc6393xb_template.h
hw/display/vga-isa-mm.c +1 -1
index 3b08720..1c50070 100644
@@ -24,7 +24,7 @@
 #include "hw/hw.h"
 #include "ui/console.h"
 #include "hw/i386/pc.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
 
hw/display/vga-isa.c +1 -1
index 89d7fa6..90959eb 100644
@@ -26,7 +26,7 @@
 #include "hw/hw.h"
 #include "ui/console.h"
 #include "hw/i386/pc.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
 #include "hw/loader.h"
hw/display/vga-pci.c +1 -1
index 05fa9bc..a9c69b6 100644
@@ -26,7 +26,7 @@
 #include "hw/hw.h"
 #include "ui/console.h"
 #include "hw/pci/pci.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
 #include "hw/loader.h"
hw/display/vga.c +9 -9
index dc31fd5..c1b67bb 100644
@@ -22,11 +22,11 @@
  * THE SOFTWARE.
  */
 #include "hw/hw.h"
-#include "hw/vga.h"
+#include "vga.h"
 #include "ui/console.h"
 #include "hw/i386/pc.h"
 #include "hw/pci/pci.h"
-#include "hw/vga_int.h"
+#include "vga_int.h"
 #include "ui/pixel_ops.h"
 #include "qemu/timer.h"
 #include "hw/xen/xen.h"
@@ -986,28 +986,28 @@ typedef void vga_draw_line_func(VGACommonState *s1, uint8_t *d,
                                 const uint8_t *s, int width);
 
 #define DEPTH 8
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define DEPTH 15
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 15
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define DEPTH 16
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 16
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define DEPTH 32
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 #define BGR_FORMAT
 #define DEPTH 32
-#include "hw/vga_template.h"
+#include "vga_template.h"
 
 static unsigned int rgb_to_pixel8_dup(unsigned int r, unsigned int g, unsigned b)
 {
hw/display/vga.h renamed from hw/vga.h +0 -0
similarity index 100%
rename from hw/vga.h
rename to hw/display/vga.h
hw/display/vga_int.h renamed from hw/vga_int.h +0 -0
similarity index 100%
rename from hw/vga_int.h
rename to hw/display/vga_int.h
hw/display/vga_template.h renamed from hw/vga_template.h +0 -0
similarity index 100%
rename from hw/vga_template.h
rename to hw/display/vga_template.h
hw/display/vmware_vga.c +1 -1
index 5b9ce8f..bcad47a 100644
@@ -31,7 +31,7 @@
 #define HW_FILL_ACCEL
 #define HW_MOUSE_ACCEL
 
-#include "hw/vga_int.h"
+#include "vga_int.h"
 
 /* See http://vmware-svga.sf.net/ for some documentation on VMWare SVGA */
 
hw/i2c/bitbang_i2c.c +1 -1
index b8e6d3a..854b8e1 100644
@@ -10,7 +10,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  */
 #include "hw/hw.h"
-#include "hw/bitbang_i2c.h"
+#include "bitbang_i2c.h"
 #include "hw/sysbus.h"
 
 //#define DEBUG_BITBANG_I2C
hw/i2c/bitbang_i2c.h renamed from hw/bitbang_i2c.h +0 -0
similarity index 100%
rename from hw/bitbang_i2c.h
rename to hw/i2c/bitbang_i2c.h
hw/i2c/versatile_i2c.c +1 -1
index d0444ae..e09c83d 100644
@@ -22,7 +22,7 @@
  */
 
 #include "hw/sysbus.h"
-#include "hw/bitbang_i2c.h"
+#include "bitbang_i2c.h"
 
 typedef struct {
     SysBusDevice busdev;
hw/i386/multiboot.c +1 -1
index c7f01df..d696507 100644
@@ -24,7 +24,7 @@
 
 #include "hw/hw.h"
 #include "hw/nvram/fw_cfg.h"
-#include "hw/multiboot.h"
+#include "multiboot.h"
 #include "hw/loader.h"
 #include "elf.h"
 #include "sysemu/sysemu.h"
hw/i386/multiboot.h renamed from hw/multiboot.h +0 -0
similarity index 100%
rename from hw/multiboot.h
rename to hw/i386/multiboot.h
hw/i386/pc.c +1 -1
index cb8623c..a63d2d8 100644
@@ -34,7 +34,7 @@
 #include "hw/i386/smbios.h"
 #include "hw/loader.h"
 #include "elf.h"
-#include "hw/multiboot.h"
+#include "multiboot.h"
 #include "hw/timer/mc146818rtc.h"
 #include "hw/timer/i8254.h"
 #include "hw/audio/pcspk.h"
hw/i386/xen_domainbuild.c +1 -1
index ed90b4b..4e2cf95 100644
@@ -1,6 +1,6 @@
 #include <signal.h>
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_domainbuild.h"
+#include "xen_domainbuild.h"
 #include "qemu/timer.h"
 #include "qemu/log.h"
 
hw/i386/xen_domainbuild.h renamed from hw/xen_domainbuild.h +0 -0
similarity index 100%
rename from hw/xen_domainbuild.h
rename to hw/i386/xen_domainbuild.h
hw/i386/xen_machine_pv.c +1 -1
index fdd9374..f829a52 100644
@@ -26,7 +26,7 @@
 #include "hw/i386/pc.h"
 #include "hw/boards.h"
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_domainbuild.h"
+#include "xen_domainbuild.h"
 #include "sysemu/blockdev.h"
 
 static void xen_init_pv(QEMUMachineInitArgs *args)
hw/intc/arm_gic.c +1 -1
index bcb072b..bae6572 100644
@@ -19,7 +19,7 @@
  */
 
 #include "hw/sysbus.h"
-#include "hw/arm_gic_internal.h"
+#include "gic_internal.h"
 
 //#define DEBUG_GIC
 
hw/intc/arm_gic_common.c +1 -1
index f2dc8bf..f37d360 100644
@@ -18,7 +18,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "hw/arm_gic_internal.h"
+#include "gic_internal.h"
 
 static void gic_save(QEMUFile *f, void *opaque)
 {
hw/intc/armv7m_nvic.c +1 -1
index 39d727e..c75891f 100644
@@ -14,7 +14,7 @@
 #include "qemu/timer.h"
 #include "hw/arm.h"
 #include "exec/address-spaces.h"
-#include "hw/arm_gic_internal.h"
+#include "gic_internal.h"
 
 typedef struct {
     GICState gic;
hw/intc/gic_internal.h renamed from hw/arm_gic_internal.h +0 -0
similarity index 100%
rename from hw/arm_gic_internal.h
rename to hw/intc/gic_internal.h
hw/kvm/arm_gic.c +1 -1
index 22b40b4..b756456 100644
@@ -21,7 +21,7 @@
 #include "hw/sysbus.h"
 #include "sysemu/kvm.h"
 #include "kvm_arm.h"
-#include "hw/arm_gic_internal.h"
+#include "gic_internal.h"
 
 #define TYPE_KVM_ARM_GIC "kvm-arm-gic"
 #define KVM_ARM_GIC(obj) \
hw/lm32/lm32.h renamed from hw/lm32.h +0 -0
similarity index 100%
rename from hw/lm32.h
rename to hw/lm32/lm32.h
hw/lm32/lm32_boards.c +2 -2
index b22c94f..6555a97 100644
@@ -25,8 +25,8 @@
 #include "hw/loader.h"
 #include "sysemu/blockdev.h"
 #include "elf.h"
-#include "hw/lm32_hwsetup.h"
-#include "hw/lm32.h"
+#include "lm32_hwsetup.h"
+#include "lm32.h"
 #include "exec/address-spaces.h"
 
 typedef struct {
hw/lm32/lm32_hwsetup.h renamed from hw/lm32_hwsetup.h +0 -0
similarity index 100%
rename from hw/lm32_hwsetup.h
rename to hw/lm32/lm32_hwsetup.h
hw/lm32/milkymist-hw.h renamed from hw/milkymist-hw.h +0 -0
similarity index 100%
rename from hw/milkymist-hw.h
rename to hw/lm32/milkymist-hw.h
hw/lm32/milkymist.c +2 -2
index c3724de..d02ca0c 100644
@@ -26,8 +26,8 @@
 #include "hw/loader.h"
 #include "elf.h"
 #include "sysemu/blockdev.h"
-#include "hw/milkymist-hw.h"
-#include "hw/lm32.h"
+#include "milkymist-hw.h"
+#include "lm32.h"
 #include "exec/address-spaces.h"
 
 #define BIOS_FILENAME    "mmone-bios.bin"
hw/microblaze/boot.c +1 -1
index e13b3e1..23cb11d 100644
@@ -31,7 +31,7 @@
 #include "hw/loader.h"
 #include "elf.h"
 
-#include "hw/microblaze_boot.h"
+#include "boot.h"
 
 static struct
 {
hw/microblaze/boot.h renamed from hw/microblaze_boot.h +0 -0
similarity index 100%
rename from hw/microblaze_boot.h
rename to hw/microblaze/boot.h
hw/microblaze/petalogix_ml605_mmu.c +2 -2
index 813ef8c..ee6e366 100644
@@ -38,8 +38,8 @@
 #include "exec/address-spaces.h"
 #include "hw/ssi.h"
 
-#include "hw/microblaze_boot.h"
-#include "hw/microblaze_pic_cpu.h"
+#include "boot.h"
+#include "pic_cpu.h"
 
 #include "hw/stream.h"
 
hw/microblaze/petalogix_s3adsp1800_mmu.c +2 -2
index b386403..eedd60e 100644
@@ -34,8 +34,8 @@
 #include "sysemu/blockdev.h"
 #include "exec/address-spaces.h"
 
-#include "hw/microblaze_boot.h"
-#include "hw/microblaze_pic_cpu.h"
+#include "boot.h"
+#include "pic_cpu.h"
 
 #define LMB_BRAM_SIZE  (128 * 1024)
 #define FLASH_SIZE     (16 * 1024 * 1024)
hw/microblaze/pic_cpu.c +1 -1
index 6248de9..16902f7 100644
@@ -23,7 +23,7 @@
  */
 
 #include "hw/hw.h"
-#include "hw/microblaze_pic_cpu.h"
+#include "pic_cpu.h"
 
 #define D(x)
 
hw/microblaze/pic_cpu.h renamed from hw/microblaze_pic_cpu.h +0 -0
similarity index 100%
rename from hw/microblaze_pic_cpu.h
rename to hw/microblaze/pic_cpu.h
hw/misc/tmp105.c +1 -1
index 21a27a6..155e03d 100644
@@ -20,7 +20,7 @@
 
 #include "hw/hw.h"
 #include "hw/i2c/i2c.h"
-#include "hw/tmp105.h"
+#include "tmp105.h"
 #include "qapi/visitor.h"
 
 static void tmp105_interrupt_update(TMP105State *s)
hw/misc/tmp105.h renamed from hw/tmp105.h +0 -0
similarity index 100%
rename from hw/tmp105.h
rename to hw/misc/tmp105.h
hw/net/e1000.c +1 -1
index 80b6ee3..7fc5317 100644
@@ -33,7 +33,7 @@
 #include "sysemu/sysemu.h"
 #include "sysemu/dma.h"
 
-#include "hw/e1000_hw.h"
+#include "e1000_regs.h"
 
 #define E1000_DEBUG
 
hw/net/e1000_regs.h renamed from hw/e1000_hw.h +0 -0
similarity index 100%
rename from hw/e1000_hw.h
rename to hw/net/e1000_regs.h
hw/net/lance.c +1 -1
index 0f4e808..187497c 100644
@@ -40,7 +40,7 @@
 #include "qemu/timer.h"
 #include "qemu/sockets.h"
 #include "hw/sparc/sun4m.h"
-#include "hw/pcnet.h"
+#include "pcnet.h"
 #include "trace.h"
 
 typedef struct {
hw/net/ne2000-isa.c +1 -1
index e4c10db..a093aa8 100644
@@ -26,7 +26,7 @@
 #include "hw/isa/isa.h"
 #include "hw/qdev.h"
 #include "net/net.h"
-#include "hw/ne2000.h"
+#include "ne2000.h"
 #include "exec/address-spaces.h"
 
 typedef struct ISANE2000State {
hw/net/ne2000.c +1 -1
index 7dadc1c..94d6110 100644
@@ -24,7 +24,7 @@
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
 #include "net/net.h"
-#include "hw/ne2000.h"
+#include "ne2000.h"
 #include "hw/loader.h"
 #include "sysemu/sysemu.h"
 
hw/net/ne2000.h renamed from hw/ne2000.h +0 -0
similarity index 100%
rename from hw/ne2000.h
rename to hw/net/ne2000.h
hw/net/pcnet-pci.c +1 -1
index 55f80ca..e07f388 100644
@@ -33,7 +33,7 @@
 #include "qemu/timer.h"
 #include "sysemu/dma.h"
 
-#include "hw/pcnet.h"
+#include "pcnet.h"
 
 //#define PCNET_DEBUG
 //#define PCNET_DEBUG_IO
hw/net/pcnet.c +1 -1
index b0b462b..b606d2b 100644
@@ -41,7 +41,7 @@
 #include "qemu/sockets.h"
 #include "sysemu/sysemu.h"
 
-#include "hw/pcnet.h"
+#include "pcnet.h"
 
 //#define PCNET_DEBUG
 //#define PCNET_DEBUG_IO
hw/net/pcnet.h renamed from hw/pcnet.h +0 -0
similarity index 100%
rename from hw/pcnet.h
rename to hw/net/pcnet.h
hw/pci/host-dec.c +1 -1
index 64a5092..62b483a 100644
@@ -23,7 +23,7 @@
  * THE SOFTWARE.
  */
 
-#include "hw/dec_pci.h"
+#include "host-dec.h"
 #include "hw/sysbus.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci_host.h"
hw/pci/host-dec.h renamed from hw/dec_pci.h +0 -0
similarity index 100%
rename from hw/dec_pci.h
rename to hw/pci/host-dec.h
hw/pci/ioh3420.c +1 -1
index 43f8554..252cb98 100644
@@ -23,7 +23,7 @@
 #include "hw/pci/pci_ids.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/pcie.h"
-#include "hw/ioh3420.h"
+#include "ioh3420.h"
 
 #define PCI_DEVICE_ID_IOH_EPORT         0x3420  /* D0:F0 express mode */
 #define PCI_DEVICE_ID_IOH_REV           0x2
hw/pci/ioh3420.h renamed from hw/ioh3420.h +0 -0
similarity index 100%
rename from hw/ioh3420.h
rename to hw/pci/ioh3420.h
hw/pci/xio3130_downstream.c +1 -1
index 4bccd0d..134d2f2 100644
@@ -22,7 +22,7 @@
 #include "hw/pci/pci_ids.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/pcie.h"
-#include "hw/xio3130_downstream.h"
+#include "xio3130_downstream.h"
 
 #define PCI_DEVICE_ID_TI_XIO3130D       0x8233  /* downstream port */
 #define XIO3130_REVISION                0x1
hw/pci/xio3130_downstream.h renamed from hw/xio3130_downstream.h +0 -0
similarity index 100%
rename from hw/xio3130_downstream.h
rename to hw/pci/xio3130_downstream.h
hw/pci/xio3130_upstream.c +1 -1
index 82556aa..c02cecf 100644
@@ -22,7 +22,7 @@
 #include "hw/pci/pci_ids.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/pcie.h"
-#include "hw/xio3130_upstream.h"
+#include "xio3130_upstream.h"
 
 #define PCI_DEVICE_ID_TI_XIO3130U       0x8232  /* upstream port */
 #define XIO3130_REVISION                0x2
hw/pci/xio3130_upstream.h renamed from hw/xio3130_upstream.h +0 -0
similarity index 100%
rename from hw/xio3130_upstream.h
rename to hw/pci/xio3130_upstream.h
hw/ppc/ppc405.h renamed from hw/ppc405.h +0 -0
similarity index 100%
rename from hw/ppc405.h
rename to hw/ppc/ppc405.h
hw/ppc/ppc405_boards.c +1 -1
index 18a29db..8e56b16 100644
@@ -23,7 +23,7 @@
  */
 #include "hw/hw.h"
 #include "hw/ppc/ppc.h"
-#include "hw/ppc405.h"
+#include "ppc405.h"
 #include "hw/timer/m48t59.h"
 #include "hw/block/flash.h"
 #include "sysemu/sysemu.h"
hw/ppc/ppc405_uc.c +1 -1
index 82b8956..c6c909e 100644
@@ -23,7 +23,7 @@
  */
 #include "hw/hw.h"
 #include "hw/ppc/ppc.h"
-#include "hw/ppc405.h"
+#include "ppc405.h"
 #include "hw/char/serial.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
hw/ppc/ppc440_bamboo.c +1 -1
index 48a0218..a55e717 100644
@@ -25,7 +25,7 @@
 #include "exec/address-spaces.h"
 #include "hw/char/serial.h"
 #include "hw/ppc/ppc.h"
-#include "hw/ppc405.h"
+#include "ppc405.h"
 #include "sysemu/sysemu.h"
 #include "hw/sysbus.h"
 
hw/ppc/virtex_ml507.c +1 -1
index db52649..92b4394 100644
@@ -37,7 +37,7 @@
 
 #include "hw/ppc/ppc.h"
 #include "hw/ppc/ppc4xx.h"
-#include "hw/ppc405.h"
+#include "ppc405.h"
 
 #include "sysemu/blockdev.h"
 #include "hw/xilinx.h"
hw/scsi/megasas.c +1 -1
index f46f800..14b0552 100644
@@ -27,7 +27,7 @@
 #include "block/scsi.h"
 #include "trace.h"
 
-#include "hw/mfi.h"
+#include "mfi.h"
 
 #define MEGASAS_VERSION "1.70"
 #define MEGASAS_MAX_FRAMES 2048         /* Firmware limit at 65535 */
hw/scsi/mfi.h renamed from hw/mfi.h +0 -0
similarity index 100%
rename from hw/mfi.h
rename to hw/scsi/mfi.h
hw/scsi/spapr_vscsi.c +2 -2
index e92b09a..999a463 100644
@@ -34,11 +34,11 @@
 #include "hw/hw.h"
 #include "hw/scsi/scsi.h"
 #include "block/scsi.h"
-#include "hw/srp.h"
+#include "srp.h"
 #include "hw/qdev.h"
 #include "hw/ppc/spapr.h"
 #include "hw/ppc/spapr_vio.h"
-#include "hw/ppc-viosrp.h"
+#include "viosrp.h"
 
 #include <libfdt.h>
 
hw/scsi/srp.h renamed from hw/srp.h +0 -0
similarity index 100%
rename from hw/srp.h
rename to hw/scsi/srp.h
hw/scsi/viosrp.h renamed from hw/ppc-viosrp.h +0 -0
similarity index 100%
rename from hw/ppc-viosrp.h
rename to hw/scsi/viosrp.h
hw/sd/sdhci.c +1 -1
index 93feada..b8e1d23 100644
@@ -29,7 +29,7 @@
 #include "block/block_int.h"
 #include "qemu/bitops.h"
 
-#include "hw/sdhci.h"
+#include "sdhci.h"
 
 /* host controller debug messages */
 #ifndef SDHC_DEBUG
hw/sd/sdhci.h renamed from hw/sdhci.h +0 -0
similarity index 100%
rename from hw/sdhci.h
rename to hw/sd/sdhci.h
hw/sh4/r2d.c +1 -1
index bcc326a..256a58c 100644
@@ -31,7 +31,7 @@
 #include "hw/boards.h"
 #include "hw/pci/pci.h"
 #include "net/net.h"
-#include "hw/sh7750_regs.h"
+#include "sh7750_regs.h"
 #include "hw/ide.h"
 #include "hw/loader.h"
 #include "hw/usb.h"
hw/sh4/sh7750.c +2 -2
index d72708e..2218b9c 100644
@@ -26,8 +26,8 @@
 #include "hw/hw.h"
 #include "hw/sh4/sh.h"
 #include "sysemu/sysemu.h"
-#include "hw/sh7750_regs.h"
-#include "hw/sh7750_regnames.h"
+#include "sh7750_regs.h"
+#include "sh7750_regnames.h"
 #include "hw/sh4/sh_intc.h"
 #include "cpu.h"
 #include "exec/address-spaces.h"
hw/sh4/sh7750_regnames.c +2 -2
index 7a3cdf3..52ac1cc 100644
@@ -1,7 +1,7 @@
 #include "hw/hw.h"
 #include "hw/sh4/sh.h"
-#include "hw/sh7750_regs.h"
-#include "hw/sh7750_regnames.h"
+#include "sh7750_regs.h"
+#include "sh7750_regnames.h"
 
 #define REGNAME(r) {r, #r},
 
hw/sh4/sh7750_regnames.h renamed from hw/sh7750_regnames.h +0 -0
similarity index 100%
rename from hw/sh7750_regnames.h
rename to hw/sh4/sh7750_regnames.h
hw/sh4/sh7750_regs.h renamed from hw/sh7750_regs.h +0 -0
similarity index 100%
rename from hw/sh7750_regs.h
rename to hw/sh4/sh7750_regs.h
hw/usb/ccid-card-emulated.c +1 -1
index c8f8ba3..29dcd7a 100644
@@ -34,7 +34,7 @@
 #include "qemu/thread.h"
 #include "char/char.h"
 #include "monitor/monitor.h"
-#include "hw/ccid.h"
+#include "ccid.h"
 
 #define DPRINTF(card, lvl, fmt, ...) \
 do {\
hw/usb/ccid-card-passthru.c +1 -1
index 984bd0b..5e017ae 100644
@@ -11,7 +11,7 @@
 #include "char/char.h"
 #include "qemu/sockets.h"
 #include "monitor/monitor.h"
-#include "hw/ccid.h"
+#include "ccid.h"
 #include "libcacard/vscard_common.h"
 
 #define DPRINTF(card, lvl, fmt, ...)                    \
hw/usb/ccid.h renamed from hw/ccid.h +0 -0
similarity index 100%
rename from hw/ccid.h
rename to hw/usb/ccid.h
hw/usb/dev-smartcard-reader.c +1 -1
index caebc1c..db8ce02 100644
@@ -40,7 +40,7 @@
 #include "hw/usb/desc.h"
 #include "monitor/monitor.h"
 
-#include "hw/ccid.h"
+#include "ccid.h"
 
 #define DPRINTF(s, lvl, fmt, ...) \
 do { \
hw/virtio/virtio-pci.c +1 -1
index c29be01..f5e148f 100644
@@ -29,7 +29,7 @@
 #include "hw/loader.h"
 #include "sysemu/kvm.h"
 #include "sysemu/blockdev.h"
-#include "hw/virtio-pci.h"
+#include "virtio-pci.h"
 #include "qemu/range.h"
 #include "hw/virtio/virtio-bus.h"
 
hw/virtio/virtio-pci.h renamed from hw/virtio-pci.h +0 -0
similarity index 100%
rename from hw/virtio-pci.h
rename to hw/virtio/virtio-pci.h
hw/xen/xen-host-pci-device.c +1 -1
index ff2e876..743b37b 100644
@@ -7,7 +7,7 @@
  */
 
 #include "qemu-common.h"
-#include "hw/xen-host-pci-device.h"
+#include "xen-host-pci-device.h"
 
 #define XEN_HOST_PCI_MAX_EXT_CAP \
     ((PCIE_CONFIG_SPACE_SIZE - PCI_CONFIG_SPACE_SIZE) / (PCI_CAP_SIZEOF + 4))
hw/xen/xen-host-pci-device.h renamed from hw/xen-host-pci-device.h +0 -0
similarity index 100%
rename from hw/xen-host-pci-device.h
rename to hw/xen/xen-host-pci-device.h
hw/xen/xen_pt.c +1 -1
index 0cc4538..c199818 100644
@@ -57,7 +57,7 @@
 #include "hw/pci/pci.h"
 #include "hw/xen/xen.h"
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_pt.h"
+#include "xen_pt.h"
 #include "qemu/range.h"
 #include "exec/address-spaces.h"
 
hw/xen/xen_pt.h renamed from hw/xen_pt.h +1 -1
similarity index 99%
rename from hw/xen_pt.h
rename to hw/xen/xen_pt.h
index d2cac18..942dc60 100644
@@ -4,7 +4,7 @@
 #include "qemu-common.h"
 #include "hw/xen/xen_common.h"
 #include "hw/pci/pci.h"
-#include "hw/xen-host-pci-device.h"
+#include "xen-host-pci-device.h"
 
 void xen_pt_log(const PCIDevice *d, const char *f, ...) GCC_FMT_ATTR(2, 3);
 
hw/xen/xen_pt_config_init.c +1 -1
index 3ee2adf..01872db 100644
@@ -14,7 +14,7 @@
 
 #include "qemu/timer.h"
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_pt.h"
+#include "xen_pt.h"
 
 #define XEN_PT_MERGE_VALUE(value, data, val_mask) \
     (((value) & (val_mask)) | ((data) & ~(val_mask)))
hw/xen/xen_pt_msi.c +1 -1
index dcdfc5c..db2c842 100644
@@ -12,7 +12,7 @@
 #include <sys/mman.h>
 
 #include "hw/xen/xen_backend.h"
-#include "hw/xen_pt.h"
+#include "xen_pt.h"
 #include "hw/i386/apic-msidef.h"
 
 
hw/xtensa/xtensa_bootparam.h renamed from hw/xtensa_bootparam.h +0 -0
similarity index 100%
rename from hw/xtensa_bootparam.h
rename to hw/xtensa/xtensa_bootparam.h
hw/xtensa/xtensa_lx60.c +1 -1
index 5695897..2682eda 100644
@@ -37,7 +37,7 @@
 #include "hw/block/flash.h"
 #include "sysemu/blockdev.h"
 #include "char/char.h"
-#include "hw/xtensa_bootparam.h"
+#include "xtensa_bootparam.h"
 
 typedef struct LxBoardDesc {
     size_t flash_size;
Signature · 1 line
1.8.1.4