hw: move target-independent files to subdirectories
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 1 Mar 2013 12:59:19 +0000 (13:59 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 16:13:12 +0000 (18:13 +0200)
This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
227 files changed:
default-configs/i386-softmmu.mak
default-configs/mips-softmmu.mak
default-configs/mips64-softmmu.mak
default-configs/mips64el-softmmu.mak
default-configs/mipsel-softmmu.mak
default-configs/ppc-softmmu.mak
default-configs/ppc64-softmmu.mak
default-configs/ppcemb-softmmu.mak
default-configs/x86_64-softmmu.mak
hw/Makefile.objs
hw/acpi/Makefile.objs
hw/acpi/core.c [moved from hw/acpi.c with 100% similarity]
hw/acpi/ich9.c [moved from hw/acpi_ich9.c with 100% similarity]
hw/acpi/piix4.c [moved from hw/acpi_piix4.c with 100% similarity]
hw/audio/Makefile.objs
hw/audio/ac97.c [moved from hw/ac97.c with 100% similarity]
hw/audio/adlib.c [moved from hw/adlib.c with 100% similarity]
hw/audio/cs4231a.c [moved from hw/cs4231a.c with 100% similarity]
hw/audio/es1370.c [moved from hw/es1370.c with 100% similarity]
hw/audio/fmopl.c [moved from hw/fmopl.c with 100% similarity]
hw/audio/gus.c [moved from hw/gus.c with 100% similarity]
hw/audio/gusemu_hal.c [moved from hw/gusemu_hal.c with 100% similarity]
hw/audio/gusemu_mixer.c [moved from hw/gusemu_mixer.c with 100% similarity]
hw/audio/hda-codec.c [moved from hw/hda-audio.c with 100% similarity]
hw/audio/intel-hda.c [moved from hw/intel-hda.c with 100% similarity]
hw/audio/lm4549.c [moved from hw/lm4549.c with 100% similarity]
hw/audio/pcspk.c [moved from hw/pcspk.c with 100% similarity]
hw/audio/pl041.c [moved from hw/pl041.c with 100% similarity]
hw/audio/pl041.hx [moved from hw/pl041.hx with 100% similarity]
hw/audio/sb16.c [moved from hw/sb16.c with 100% similarity]
hw/audio/wm8750.c [moved from hw/wm8750.c with 100% similarity]
hw/block/Makefile.objs
hw/block/block.c [moved from hw/block-common.c with 100% similarity]
hw/block/cdrom.c [moved from hw/cdrom.c with 100% similarity]
hw/block/ecc.c [moved from hw/ecc.c with 100% similarity]
hw/block/fdc.c [moved from hw/fdc.c with 100% similarity]
hw/block/hd-geometry.c [moved from hw/hd-geometry.c with 100% similarity]
hw/block/m25p80.c [moved from hw/m25p80.c with 100% similarity]
hw/block/nand.c [moved from hw/nand.c with 100% similarity]
hw/block/pflash_cfi01.c [moved from hw/pflash_cfi01.c with 100% similarity]
hw/block/pflash_cfi02.c [moved from hw/pflash_cfi02.c with 100% similarity]
hw/block/xen_disk.c [moved from hw/xen_disk.c with 100% similarity]
hw/bt/Makefile.objs
hw/bt/core.c [moved from hw/bt.c with 100% similarity]
hw/bt/hci-csr.c [moved from hw/bt-hci-csr.c with 100% similarity]
hw/bt/hci.c [moved from hw/bt-hci.c with 100% similarity]
hw/bt/hid.c [moved from hw/bt-hid.c with 100% similarity]
hw/bt/l2cap.c [moved from hw/bt-l2cap.c with 100% similarity]
hw/bt/sdp.c [moved from hw/bt-sdp.c with 100% similarity]
hw/char/Makefile.objs
hw/char/cadence_uart.c [moved from hw/cadence_uart.c with 100% similarity]
hw/char/escc.c [moved from hw/escc.c with 100% similarity]
hw/char/ipack.c [moved from hw/ipack.c with 100% similarity]
hw/char/ipoctal232.c [moved from hw/ipoctal232.c with 100% similarity]
hw/char/parallel.c [moved from hw/parallel.c with 100% similarity]
hw/char/pl011.c [moved from hw/pl011.c with 100% similarity]
hw/char/serial-isa.c [moved from hw/serial-isa.c with 100% similarity]
hw/char/serial-pci.c [moved from hw/serial-pci.c with 100% similarity]
hw/char/serial.c [moved from hw/serial.c with 100% similarity]
hw/char/tpci200.c [moved from hw/tpci200.c with 100% similarity]
hw/char/virtio-console.c [moved from hw/virtio-console.c with 100% similarity]
hw/char/xen_console.c [moved from hw/xen_console.c with 100% similarity]
hw/char/xilinx_uartlite.c [moved from hw/xilinx_uartlite.c with 100% similarity]
hw/core/Makefile.objs
hw/core/empty_slot.c [moved from hw/empty_slot.c with 100% similarity]
hw/core/irq.c [moved from hw/irq.c with 100% similarity]
hw/core/loader.c [moved from hw/loader.c with 100% similarity]
hw/core/null-machine.c [moved from hw/null-machine.c with 100% similarity]
hw/core/ptimer.c [moved from hw/ptimer.c with 100% similarity]
hw/core/qdev-addr.c [moved from hw/qdev-addr.c with 100% similarity]
hw/core/qdev-properties-system.c [moved from hw/qdev-properties-system.c with 100% similarity]
hw/core/qdev-properties.c [moved from hw/qdev-properties.c with 100% similarity]
hw/core/qdev.c [moved from hw/qdev.c with 100% similarity]
hw/core/stream.c [moved from hw/stream.c with 100% similarity]
hw/core/sysbus.c [moved from hw/sysbus.c with 100% similarity]
hw/display/Makefile.objs
hw/display/ads7846.c [moved from hw/ads7846.c with 100% similarity]
hw/display/cirrus_vga.c [moved from hw/cirrus_vga.c with 100% similarity]
hw/display/g364fb.c [moved from hw/g364fb.c with 100% similarity]
hw/display/jazz_led.c [moved from hw/jazz_led.c with 100% similarity]
hw/display/pl110.c [moved from hw/pl110.c with 100% similarity]
hw/display/ssd0303.c [moved from hw/ssd0303.c with 100% similarity]
hw/display/ssd0323.c [moved from hw/ssd0323.c with 100% similarity]
hw/display/vga-isa-mm.c [moved from hw/vga-isa-mm.c with 100% similarity]
hw/display/vga-isa.c [moved from hw/vga-isa.c with 100% similarity]
hw/display/vga-pci.c [moved from hw/vga-pci.c with 100% similarity]
hw/display/vmware_vga.c [moved from hw/vmware_vga.c with 100% similarity]
hw/display/xenfb.c [moved from hw/xenfb.c with 100% similarity]
hw/dma/Makefile.objs
hw/dma/i82374.c [moved from hw/i82374.c with 100% similarity]
hw/dma/i8257.c [moved from hw/dma.c with 100% similarity]
hw/dma/pl080.c [moved from hw/pl080.c with 100% similarity]
hw/dma/pl330.c [moved from hw/pl330.c with 100% similarity]
hw/dma/puv3_dma.c [moved from hw/puv3_dma.c with 100% similarity]
hw/dma/rc4030.c [moved from hw/rc4030.c with 100% similarity]
hw/dma/xilinx_axidma.c [moved from hw/xilinx_axidma.c with 100% similarity]
hw/gpio/Makefile.objs
hw/gpio/max7310.c [moved from hw/max7310.c with 100% similarity]
hw/gpio/pl061.c [moved from hw/pl061.c with 100% similarity]
hw/gpio/puv3_gpio.c [moved from hw/puv3_gpio.c with 100% similarity]
hw/i2c/Makefile.objs
hw/i2c/core.c [moved from hw/i2c.c with 100% similarity]
hw/i2c/pm_smbus.c [moved from hw/pm_smbus.c with 100% similarity]
hw/i2c/smbus.c [moved from hw/smbus.c with 100% similarity]
hw/i2c/smbus_eeprom.c [moved from hw/smbus_eeprom.c with 100% similarity]
hw/i2c/smbus_ich9.c [moved from hw/smbus_ich9.c with 100% similarity]
hw/i2c/versatile_i2c.c [moved from hw/versatile_i2c.c with 100% similarity]
hw/input/Makefile.objs
hw/input/adb.c [moved from hw/adb.c with 100% similarity]
hw/input/hid.c [moved from hw/hid.c with 100% similarity]
hw/input/lm832x.c [moved from hw/lm832x.c with 100% similarity]
hw/input/pckbd.c [moved from hw/pckbd.c with 100% similarity]
hw/input/pl050.c [moved from hw/pl050.c with 100% similarity]
hw/input/ps2.c [moved from hw/ps2.c with 100% similarity]
hw/input/stellaris_input.c [moved from hw/stellaris_input.c with 100% similarity]
hw/input/tsc2005.c [moved from hw/tsc2005.c with 100% similarity]
hw/input/vmmouse.c [moved from hw/vmmouse.c with 100% similarity]
hw/intc/Makefile.objs
hw/intc/heathrow_pic.c [moved from hw/heathrow_pic.c with 100% similarity]
hw/intc/i8259.c [moved from hw/i8259.c with 100% similarity]
hw/intc/i8259_common.c [moved from hw/i8259_common.c with 100% similarity]
hw/intc/pl190.c [moved from hw/pl190.c with 100% similarity]
hw/intc/puv3_intc.c [moved from hw/puv3_intc.c with 100% similarity]
hw/intc/xilinx_intc.c [moved from hw/xilinx_intc.c with 100% similarity]
hw/isa/Makefile.objs
hw/isa/apm.c [moved from hw/apm.c with 100% similarity]
hw/isa/i82378.c [moved from hw/i82378.c with 100% similarity]
hw/isa/isa-bus.c [moved from hw/isa-bus.c with 100% similarity]
hw/isa/isa_mmio.c [moved from hw/isa_mmio.c with 100% similarity]
hw/isa/pc87312.c [moved from hw/pc87312.c with 100% similarity]
hw/isa/piix4.c [moved from hw/piix4.c with 100% similarity]
hw/misc/Makefile.objs
hw/misc/applesmc.c [moved from hw/applesmc.c with 100% similarity]
hw/misc/arm_l2x0.c [moved from hw/arm_l2x0.c with 100% similarity]
hw/misc/macio/Makefile.objs [new file with mode: 0644]
hw/misc/macio/cuda.c [moved from hw/cuda.c with 100% similarity]
hw/misc/macio/mac_dbdma.c [moved from hw/mac_dbdma.c with 100% similarity]
hw/misc/macio/macio.c [moved from hw/macio.c with 100% similarity]
hw/misc/max111x.c [moved from hw/max111x.c with 100% similarity]
hw/misc/puv3_pm.c [moved from hw/puv3_pm.c with 100% similarity]
hw/misc/tmp105.c [moved from hw/tmp105.c with 100% similarity]
hw/net/Makefile.objs
hw/net/cadence_gem.c [moved from hw/cadence_gem.c with 100% similarity]
hw/net/dp8393x.c [moved from hw/dp8393x.c with 100% similarity]
hw/net/e1000.c [moved from hw/e1000.c with 100% similarity]
hw/net/eepro100.c [moved from hw/eepro100.c with 100% similarity]
hw/net/lan9118.c [moved from hw/lan9118.c with 100% similarity]
hw/net/mipsnet.c [moved from hw/mipsnet.c with 100% similarity]
hw/net/ne2000-isa.c [moved from hw/ne2000-isa.c with 100% similarity]
hw/net/ne2000.c [moved from hw/ne2000.c with 100% similarity]
hw/net/opencores_eth.c [moved from hw/opencores_eth.c with 100% similarity]
hw/net/pcnet-pci.c [moved from hw/pcnet-pci.c with 100% similarity]
hw/net/pcnet.c [moved from hw/pcnet.c with 100% similarity]
hw/net/rtl8139.c [moved from hw/rtl8139.c with 100% similarity]
hw/net/smc91c111.c [moved from hw/smc91c111.c with 100% similarity]
hw/net/vmware_utils.h [moved from hw/vmware_utils.h with 100% similarity]
hw/net/vmxnet3.c [moved from hw/vmxnet3.c with 100% similarity]
hw/net/vmxnet3.h [moved from hw/vmxnet3.h with 100% similarity]
hw/net/vmxnet_debug.h [moved from hw/vmxnet_debug.h with 100% similarity]
hw/net/vmxnet_rx_pkt.c [moved from hw/vmxnet_rx_pkt.c with 100% similarity]
hw/net/vmxnet_rx_pkt.h [moved from hw/vmxnet_rx_pkt.h with 100% similarity]
hw/net/vmxnet_tx_pkt.c [moved from hw/vmxnet_tx_pkt.c with 100% similarity]
hw/net/vmxnet_tx_pkt.h [moved from hw/vmxnet_tx_pkt.h with 100% similarity]
hw/net/xen_nic.c [moved from hw/xen_nic.c with 100% similarity]
hw/net/xgmac.c [moved from hw/xgmac.c with 100% similarity]
hw/net/xilinx_axienet.c [moved from hw/xilinx_axienet.c with 100% similarity]
hw/nvram/Makefile.objs
hw/nvram/ds1225y.c [moved from hw/ds1225y.c with 100% similarity]
hw/nvram/eeprom93xx.c [moved from hw/eeprom93xx.c with 100% similarity]
hw/nvram/fw_cfg.c [moved from hw/fw_cfg.c with 100% similarity]
hw/nvram/mac_nvram.c [moved from hw/mac_nvram.c with 100% similarity]
hw/pci/Makefile.objs
hw/pci/bridge/Makefile.objs [new file with mode: 0644]
hw/pci/bridge/i82801b11.c [moved from hw/i82801b11.c with 100% similarity]
hw/pci/bridge/ioh3420.c [moved from hw/ioh3420.c with 100% similarity]
hw/pci/bridge/pci_bridge_dev.c [moved from hw/pci_bridge_dev.c with 100% similarity]
hw/pci/bridge/xio3130_downstream.c [moved from hw/xio3130_downstream.c with 100% similarity]
hw/pci/bridge/xio3130_upstream.c [moved from hw/xio3130_upstream.c with 100% similarity]
hw/pci/host/Makefile.objs [new file with mode: 0644]
hw/pci/host/dec.c [moved from hw/dec_pci.c with 100% similarity]
hw/pci/host/grackle.c [moved from hw/grackle_pci.c with 100% similarity]
hw/pci/host/pam.c [moved from hw/pam.c with 100% similarity]
hw/pci/host/ppce500.c [moved from hw/ppce500_pci.c with 100% similarity]
hw/pci/host/prep.c [moved from hw/prep_pci.c with 100% similarity]
hw/pci/host/uninorth.c [moved from hw/unin_pci.c with 100% similarity]
hw/pci/host/versatile.c [moved from hw/versatile_pci.c with 100% similarity]
hw/scsi/Makefile.objs
hw/scsi/esp-pci.c [moved from hw/esp-pci.c with 100% similarity]
hw/scsi/esp.c [moved from hw/esp.c with 100% similarity]
hw/scsi/lsi53c895a.c [moved from hw/lsi53c895a.c with 100% similarity]
hw/scsi/megasas.c [moved from hw/megasas.c with 100% similarity]
hw/scsi/scsi-bus.c [moved from hw/scsi-bus.c with 100% similarity]
hw/scsi/scsi-disk.c [moved from hw/scsi-disk.c with 100% similarity]
hw/scsi/scsi-generic.c [moved from hw/scsi-generic.c with 100% similarity]
hw/sd/Makefile.objs
hw/sd/pl181.c [moved from hw/pl181.c with 100% similarity]
hw/sd/sd.c [moved from hw/sd.c with 100% similarity]
hw/sd/sdhci.c [moved from hw/sdhci.c with 100% similarity]
hw/sd/ssi-sd.c [moved from hw/ssi-sd.c with 100% similarity]
hw/ssi/Makefile.objs
hw/ssi/pl022.c [moved from hw/pl022.c with 100% similarity]
hw/ssi/ssi.c [moved from hw/ssi.c with 100% similarity]
hw/timer/Makefile.objs
hw/timer/arm_timer.c [moved from hw/arm_timer.c with 100% similarity]
hw/timer/cadence_ttc.c [moved from hw/cadence_ttc.c with 100% similarity]
hw/timer/ds1338.c [moved from hw/ds1338.c with 100% similarity]
hw/timer/hpet.c [moved from hw/hpet.c with 100% similarity]
hw/timer/i8254.c [moved from hw/i8254.c with 100% similarity]
hw/timer/i8254_common.c [moved from hw/i8254_common.c with 100% similarity]
hw/timer/m48t59.c [moved from hw/m48t59.c with 100% similarity]
hw/timer/pl031.c [moved from hw/pl031.c with 100% similarity]
hw/timer/puv3_ost.c [moved from hw/puv3_ost.c with 100% similarity]
hw/timer/twl92230.c [moved from hw/twl92230.c with 100% similarity]
hw/timer/xilinx_timer.c [moved from hw/xilinx_timer.c with 100% similarity]
hw/usb/Makefile.objs
hw/usb/ccid-card-emulated.c [moved from hw/ccid-card-emulated.c with 100% similarity]
hw/usb/ccid-card-passthru.c [moved from hw/ccid-card-passthru.c with 100% similarity]
hw/virtio/Makefile.objs
hw/virtio/virtio-bus.c [moved from hw/virtio-bus.c with 100% similarity]
hw/virtio/virtio-pci.c [moved from hw/virtio-pci.c with 100% similarity]
hw/virtio/virtio-rng.c [moved from hw/virtio-rng.c with 100% similarity]
hw/watchdog/Makefile.objs
hw/watchdog/watchdog.c [moved from hw/watchdog.c with 100% similarity]
hw/watchdog/wdt_i6300esb.c [moved from hw/wdt_i6300esb.c with 100% similarity]
hw/xen/Makefile.objs
hw/xen/xen_backend.c [moved from hw/xen_backend.c with 100% similarity]
hw/xen/xen_devconfig.c [moved from hw/xen_devconfig.c with 100% similarity]

index df9e126..a2658cd 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
 CONFIG_NE2000_ISA=y
index 4f04a33..dff6fef 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_PIIX4=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
index a5b6c3c..0968e5f 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_PIIX4=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
index a0e6de8..6f115d4 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_PIIX4=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
index 753dd76..e391cf7 100644 (file)
@@ -18,7 +18,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_PIIX4=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
index c209a8d..cdf82b1 100644 (file)
@@ -13,7 +13,7 @@ CONFIG_PARALLEL=y
 CONFIG_I8254=y
 CONFIG_PCKBD=y
 CONFIG_FDC=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_I82374=y
 CONFIG_OPENPIC=y
 CONFIG_PREP_PCI=y
index 8d490bd..ee895e9 100644 (file)
@@ -13,7 +13,7 @@ CONFIG_PARALLEL=y
 CONFIG_I8254=y
 CONFIG_PCKBD=y
 CONFIG_FDC=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_I82374=y
 CONFIG_OPENPIC=y
 CONFIG_PREP_PCI=y
index 7f13421..806adfd 100644 (file)
@@ -12,7 +12,7 @@ CONFIG_SERIAL=y
 CONFIG_I8254=y
 CONFIG_PCKBD=y
 CONFIG_FDC=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_OPENPIC=y
 CONFIG_PREP_PCI=y
 CONFIG_MACIO=y
index ab3cd5f..fe4b70b 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_PCKBD=y
 CONFIG_FDC=y
 CONFIG_ACPI=y
 CONFIG_APM=y
-CONFIG_DMA=y
+CONFIG_I8257=y
 CONFIG_IDE_ISA=y
 CONFIG_IDE_PIIX=y
 CONFIG_NE2000_ISA=y
index 0a92ff9..1d28ce2 100644 (file)
@@ -1,8 +1,3 @@
-# core qdev-related obj files, also used by *-user:
-common-obj-y += qdev.o qdev-properties.o
-# irq.o needed for qdev GPIO handling:
-common-obj-y += irq.o
-
 devices-dirs-$(CONFIG_REALLY_VIRTFS) += 9pfs/
 devices-dirs-$(CONFIG_ACPI) += acpi/
 devices-dirs-$(CONFIG_SOFTMMU) += audio/
@@ -35,198 +30,6 @@ common-obj-y += $(devices-dirs-y)
 obj-y += $(devices-dirs-y)
 
 ifeq ($(CONFIG_SOFTMMU),y)
-common-obj-y += loader.o
-common-obj-$(CONFIG_VIRTIO) += virtio-console.o
-common-obj-$(CONFIG_VIRTIO) += virtio-rng.o
-common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
-common-obj-$(CONFIG_VIRTIO) += virtio-bus.o
-common-obj-y += fw_cfg.o
-common-obj-$(CONFIG_PCI) += pci_bridge_dev.o
-common-obj-$(CONFIG_PCI) += ioh3420.o xio3130_upstream.o xio3130_downstream.o
-common-obj-$(CONFIG_PCI) += i82801b11.o
-common-obj-y += watchdog.o
-common-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
-common-obj-$(CONFIG_ECC) += ecc.o
-common-obj-$(CONFIG_NAND) += nand.o
-common-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
-common-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
-
-common-obj-$(CONFIG_M48T59) += m48t59.o
-common-obj-$(CONFIG_ESCC) += escc.o
-common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
-
-common-obj-$(CONFIG_SERIAL) += serial.o serial-isa.o
-common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o
-common-obj-$(CONFIG_PARALLEL) += parallel.o
-common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o
-common-obj-$(CONFIG_PCSPK) += pcspk.o
-common-obj-$(CONFIG_PCKBD) += pckbd.o
-common-obj-$(CONFIG_FDC) += fdc.o
-common-obj-$(CONFIG_ACPI) += acpi.o acpi_piix4.o acpi_ich9.o smbus_ich9.o
-common-obj-$(CONFIG_APM) += pm_smbus.o apm.o
-common-obj-$(CONFIG_DMA) += dma.o
-common-obj-$(CONFIG_I82374) += i82374.o
-common-obj-$(CONFIG_HPET) += hpet.o
-common-obj-$(CONFIG_APPLESMC) += applesmc.o
-ifeq ($(CONFIG_USB_SMARTCARD),y)
-common-obj-y += ccid-card-passthru.o
-common-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
-endif
-common-obj-$(CONFIG_I8259) += i8259_common.o i8259.o
-common-obj-$(CONFIG_SDHCI) += sdhci.o
-common-obj-y += pam.o
-
-# PPC devices
-common-obj-$(CONFIG_PREP_PCI) += prep_pci.o
-common-obj-$(CONFIG_I82378) += i82378.o
-common-obj-$(CONFIG_PC87312) += pc87312.o
-# Mac shared devices
-common-obj-$(CONFIG_MACIO) += macio.o
-common-obj-$(CONFIG_CUDA) += cuda.o
-common-obj-$(CONFIG_ADB) += adb.o
-common-obj-$(CONFIG_MAC_NVRAM) += mac_nvram.o
-common-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
-# OldWorld PowerMac
-common-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
-common-obj-$(CONFIG_GRACKLE_PCI) += grackle_pci.o
-# NewWorld PowerMac
-common-obj-$(CONFIG_UNIN_PCI) += unin_pci.o
-common-obj-$(CONFIG_DEC_PCI) += dec_pci.o
-# PowerPC E500 boards
-common-obj-$(CONFIG_PPCE500_PCI) += ppce500_pci.o
-
-# MIPS devices
-common-obj-$(CONFIG_PIIX4) += piix4.o
-common-obj-$(CONFIG_G364FB) += g364fb.o
-common-obj-$(CONFIG_JAZZ_LED) += jazz_led.o
-
-# Xilinx devices
-common-obj-$(CONFIG_XILINX) += xilinx_intc.o
-common-obj-$(CONFIG_XILINX) += xilinx_timer.o
-common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
-common-obj-$(CONFIG_XILINX_AXI) += xilinx_axidma.o
-common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o
-common-obj-$(CONFIG_XILINX_AXI) += stream.o
-
-# PKUnity SoC devices
-common-obj-$(CONFIG_PUV3) += puv3_intc.o
-common-obj-$(CONFIG_PUV3) += puv3_ost.o
-common-obj-$(CONFIG_PUV3) += puv3_gpio.o
-common-obj-$(CONFIG_PUV3) += puv3_pm.o
-common-obj-$(CONFIG_PUV3) += puv3_dma.o
-
-# ARM devices
-common-obj-$(CONFIG_ARM_TIMER) += arm_timer.o
-common-obj-$(CONFIG_PL011) += pl011.o
-common-obj-$(CONFIG_PL022) += pl022.o
-common-obj-$(CONFIG_PL031) += pl031.o
-common-obj-$(CONFIG_PL041) += pl041.o lm4549.o
-common-obj-$(CONFIG_PL050) += pl050.o
-common-obj-$(CONFIG_PL061) += pl061.o
-common-obj-$(CONFIG_PL080) += pl080.o
-common-obj-$(CONFIG_PL110) += pl110.o
-common-obj-$(CONFIG_PL181) += pl181.o
-common-obj-$(CONFIG_PL190) += pl190.o
-common-obj-$(CONFIG_PL310) += arm_l2x0.o
-common-obj-$(CONFIG_PL330) += pl330.o
-common-obj-$(CONFIG_VERSATILE_PCI) += versatile_pci.o
-common-obj-$(CONFIG_VERSATILE_I2C) += versatile_i2c.o
-common-obj-$(CONFIG_CADENCE) += cadence_uart.o
-common-obj-$(CONFIG_CADENCE) += cadence_ttc.o
-common-obj-$(CONFIG_CADENCE) += cadence_gem.o
-common-obj-$(CONFIG_XGMAC) += xgmac.o
-
-# PCI watchdog devices
-common-obj-$(CONFIG_PCI) += wdt_i6300esb.o
-
-# IndustryPack
-common-obj-$(CONFIG_IPACK) += tpci200.o ipoctal232.o ipack.o
-
-# PCI network cards
-common-obj-$(CONFIG_NE2000_PCI) += ne2000.o
-common-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
-common-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
-common-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
-common-obj-$(CONFIG_E1000_PCI) += e1000.o
-common-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
-common-obj-$(CONFIG_VMXNET3_PCI) += vmxnet_tx_pkt.o vmxnet_rx_pkt.o
-common-obj-$(CONFIG_VMXNET3_PCI) += vmxnet3.o
-
-common-obj-$(CONFIG_SMC91C111) += smc91c111.o
-common-obj-$(CONFIG_LAN9118) += lan9118.o
-common-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
-common-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
-
-# SCSI layer
-common-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
-common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
-common-obj-$(CONFIG_ESP) += esp.o
-common-obj-$(CONFIG_ESP_PCI) += esp-pci.o
-
-common-obj-y += sysbus.o isa-bus.o
-common-obj-y += qdev-addr.o
-
-# VGA
-common-obj-$(CONFIG_VGA_PCI) += vga-pci.o
-common-obj-$(CONFIG_VGA_ISA) += vga-isa.o
-common-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
-common-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
-common-obj-$(CONFIG_VMMOUSE) += vmmouse.o
-common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
-
-common-obj-$(CONFIG_RC4030) += rc4030.o
-common-obj-$(CONFIG_DP8393X) += dp8393x.o
-common-obj-$(CONFIG_DS1225Y) += ds1225y.o
-common-obj-$(CONFIG_MIPSNET) += mipsnet.o
-
-common-obj-y += null-machine.o
-
-# Sound
-sound-obj-y =
-sound-obj-$(CONFIG_SB16) += sb16.o
-sound-obj-$(CONFIG_ES1370) += es1370.o
-sound-obj-$(CONFIG_AC97) += ac97.o
-sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
-sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
-sound-obj-$(CONFIG_CS4231A) += cs4231a.o
-sound-obj-$(CONFIG_HDA) += intel-hda.o hda-audio.o
-
-$(obj)/adlib.o $(obj)/fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
-
-common-obj-$(CONFIG_SOUND) += $(sound-obj-y)
-
-common-obj-$(CONFIG_REALLY_VIRTFS) += 9pfs/
-
-common-obj-$(CONFIG_PTIMER) += ptimer.o
-common-obj-$(CONFIG_MAX7310) += max7310.o
-common-obj-$(CONFIG_WM8750) += wm8750.o
-common-obj-$(CONFIG_TWL92230) += twl92230.o
-common-obj-$(CONFIG_TSC2005) += tsc2005.o
-common-obj-$(CONFIG_LM832X) += lm832x.o
-common-obj-$(CONFIG_TMP105) += tmp105.o
-common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o
-common-obj-$(CONFIG_SSD0303) += ssd0303.o
-common-obj-$(CONFIG_SSD0323) += ssd0323.o
-common-obj-$(CONFIG_ADS7846) += ads7846.o
-common-obj-$(CONFIG_MAX111X) += max111x.o
-common-obj-$(CONFIG_DS1338) += ds1338.o
-common-obj-y += i2c.o smbus.o smbus_eeprom.o
-common-obj-y += eeprom93xx.o
-common-obj-y += scsi-disk.o cdrom.o hd-geometry.o block-common.o
-common-obj-y += scsi-generic.o scsi-bus.o
-common-obj-y += hid.o
-common-obj-$(CONFIG_SSI) += ssi.o
-common-obj-$(CONFIG_SSI_M25P80) += m25p80.o
-common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
-common-obj-$(CONFIG_SD) += sd.o
-common-obj-y += bt.o bt-l2cap.o bt-sdp.o bt-hci.o bt-hid.o
-common-obj-y += bt-hci-csr.o
-common-obj-y += ps2.o
-common-obj-y += qdev-properties-system.o
-
-# xen backend driver support
-common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
-common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o xenfb.o xen_disk.o xen_nic.o
 
 # Per-target files
 # virtio has to be here due to weird dependency between PCI and virtio-net.
index e69de29..a0b63b5 100644 (file)
@@ -0,0 +1,2 @@
+common-obj-$(CONFIG_ACPI) += core.o piix4.o ich9.o
+
similarity index 100%
rename from hw/acpi.c
rename to hw/acpi/core.c
similarity index 100%
rename from hw/acpi_ich9.c
rename to hw/acpi/ich9.c
similarity index 100%
rename from hw/acpi_piix4.c
rename to hw/acpi/piix4.c
index e69de29..c50c367 100644 (file)
@@ -0,0 +1,16 @@
+# Sound
+sound-obj-y =
+sound-obj-$(CONFIG_SB16) += sb16.o
+sound-obj-$(CONFIG_ES1370) += es1370.o
+sound-obj-$(CONFIG_AC97) += ac97.o
+sound-obj-$(CONFIG_ADLIB) += fmopl.o adlib.o
+sound-obj-$(CONFIG_GUS) += gus.o gusemu_hal.o gusemu_mixer.o
+sound-obj-$(CONFIG_CS4231A) += cs4231a.o
+sound-obj-$(CONFIG_HDA) += intel-hda.o hda-codec.o
+
+common-obj-$(CONFIG_SOUND) += $(sound-obj-y)
+common-obj-$(CONFIG_PCSPK) += pcspk.o
+common-obj-$(CONFIG_WM8750) += wm8750.o
+common-obj-$(CONFIG_PL041) += pl041.o lm4549.o
+
+$(obj)/adlib.o $(obj)/fmopl.o: QEMU_CFLAGS += -DBUILD_Y8950=0
similarity index 100%
rename from hw/ac97.c
rename to hw/audio/ac97.c
similarity index 100%
rename from hw/adlib.c
rename to hw/audio/adlib.c
similarity index 100%
rename from hw/cs4231a.c
rename to hw/audio/cs4231a.c
similarity index 100%
rename from hw/es1370.c
rename to hw/audio/es1370.c
similarity index 100%
rename from hw/fmopl.c
rename to hw/audio/fmopl.c
similarity index 100%
rename from hw/gus.c
rename to hw/audio/gus.c
similarity index 100%
rename from hw/gusemu_hal.c
rename to hw/audio/gusemu_hal.c
similarity index 100%
rename from hw/gusemu_mixer.c
rename to hw/audio/gusemu_mixer.c
similarity index 100%
rename from hw/hda-audio.c
rename to hw/audio/hda-codec.c
similarity index 100%
rename from hw/intel-hda.c
rename to hw/audio/intel-hda.c
similarity index 100%
rename from hw/lm4549.c
rename to hw/audio/lm4549.c
similarity index 100%
rename from hw/pcspk.c
rename to hw/audio/pcspk.c
similarity index 100%
rename from hw/pl041.c
rename to hw/audio/pl041.c
similarity index 100%
rename from hw/pl041.hx
rename to hw/audio/pl041.hx
similarity index 100%
rename from hw/sb16.c
rename to hw/audio/sb16.c
similarity index 100%
rename from hw/wm8750.c
rename to hw/audio/wm8750.c
index e69de29..5fa5101 100644 (file)
@@ -0,0 +1,8 @@
+common-obj-y += block.o cdrom.o hd-geometry.o
+common-obj-$(CONFIG_FDC) += fdc.o
+common-obj-$(CONFIG_SSI_M25P80) += m25p80.o
+common-obj-$(CONFIG_NAND) += nand.o
+common-obj-$(CONFIG_PFLASH_CFI01) += pflash_cfi01.o
+common-obj-$(CONFIG_PFLASH_CFI02) += pflash_cfi02.o
+common-obj-$(CONFIG_XEN_BACKEND) += xen_disk.o
+common-obj-$(CONFIG_ECC) += ecc.o
similarity index 100%
rename from hw/block-common.c
rename to hw/block/block.c
similarity index 100%
rename from hw/cdrom.c
rename to hw/block/cdrom.c
similarity index 100%
rename from hw/ecc.c
rename to hw/block/ecc.c
similarity index 100%
rename from hw/fdc.c
rename to hw/block/fdc.c
similarity index 100%
rename from hw/hd-geometry.c
rename to hw/block/hd-geometry.c
similarity index 100%
rename from hw/m25p80.c
rename to hw/block/m25p80.c
similarity index 100%
rename from hw/nand.c
rename to hw/block/nand.c
similarity index 100%
rename from hw/pflash_cfi01.c
rename to hw/block/pflash_cfi01.c
similarity index 100%
rename from hw/pflash_cfi02.c
rename to hw/block/pflash_cfi02.c
similarity index 100%
rename from hw/xen_disk.c
rename to hw/block/xen_disk.c
index e69de29..867a7d2 100644 (file)
@@ -0,0 +1,3 @@
+common-obj-y += core.o l2cap.o sdp.o hci.o hid.o
+common-obj-y += hci-csr.o
+
similarity index 100%
rename from hw/bt.c
rename to hw/bt/core.c
similarity index 100%
rename from hw/bt-hci-csr.c
rename to hw/bt/hci-csr.c
similarity index 100%
rename from hw/bt-hci.c
rename to hw/bt/hci.c
similarity index 100%
rename from hw/bt-hid.c
rename to hw/bt/hid.c
similarity index 100%
rename from hw/bt-l2cap.c
rename to hw/bt/l2cap.c
similarity index 100%
rename from hw/bt-sdp.c
rename to hw/bt/sdp.c
index e69de29..eee23ff 100644 (file)
@@ -0,0 +1,10 @@
+common-obj-$(CONFIG_IPACK) += tpci200.o ipoctal232.o ipack.o
+common-obj-$(CONFIG_ESCC) += escc.o
+common-obj-$(CONFIG_PARALLEL) += parallel.o
+common-obj-$(CONFIG_PL011) += pl011.o
+common-obj-$(CONFIG_SERIAL) += serial.o serial-isa.o
+common-obj-$(CONFIG_SERIAL_PCI) += serial-pci.o
+common-obj-$(CONFIG_VIRTIO) += virtio-console.o
+common-obj-$(CONFIG_XILINX) += xilinx_uartlite.o
+common-obj-$(CONFIG_XEN_BACKEND) += xen_console.o
+common-obj-$(CONFIG_CADENCE) += cadence_uart.o
similarity index 100%
rename from hw/cadence_uart.c
rename to hw/char/cadence_uart.c
similarity index 100%
rename from hw/escc.c
rename to hw/char/escc.c
similarity index 100%
rename from hw/ipack.c
rename to hw/char/ipack.c
similarity index 100%
rename from hw/ipoctal232.c
rename to hw/char/ipoctal232.c
similarity index 100%
rename from hw/parallel.c
rename to hw/char/parallel.c
similarity index 100%
rename from hw/pl011.c
rename to hw/char/pl011.c
similarity index 100%
rename from hw/serial-isa.c
rename to hw/char/serial-isa.c
similarity index 100%
rename from hw/serial-pci.c
rename to hw/char/serial-pci.c
similarity index 100%
rename from hw/serial.c
rename to hw/char/serial.c
similarity index 100%
rename from hw/tpci200.c
rename to hw/char/tpci200.c
similarity index 100%
rename from hw/virtio-console.c
rename to hw/char/virtio-console.c
similarity index 100%
rename from hw/xen_console.c
rename to hw/char/xen_console.c
index e69de29..94109f3 100644 (file)
@@ -0,0 +1,14 @@
+# core qdev-related obj files, also used by *-user:
+common-obj-y += qdev.o qdev-properties.o
+# irq.o needed for qdev GPIO handling:
+common-obj-y += irq.o
+
+common-obj-$(CONFIG_EMPTY_SLOT) += empty_slot.o
+common-obj-$(CONFIG_XILINX_AXI) += stream.o
+common-obj-$(CONFIG_PTIMER) += ptimer.o
+common-obj-$(CONFIG_SOFTMMU) += sysbus.o
+common-obj-$(CONFIG_SOFTMMU) += null-machine.o
+common-obj-$(CONFIG_SOFTMMU) += loader.o
+common-obj-$(CONFIG_SOFTMMU) += qdev-addr.o
+common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o
+
similarity index 100%
rename from hw/empty_slot.c
rename to hw/core/empty_slot.c
similarity index 100%
rename from hw/irq.c
rename to hw/core/irq.c
similarity index 100%
rename from hw/loader.c
rename to hw/core/loader.c
similarity index 100%
rename from hw/null-machine.c
rename to hw/core/null-machine.c
similarity index 100%
rename from hw/ptimer.c
rename to hw/core/ptimer.c
similarity index 100%
rename from hw/qdev-addr.c
rename to hw/core/qdev-addr.c
similarity index 100%
rename from hw/qdev.c
rename to hw/core/qdev.c
similarity index 100%
rename from hw/stream.c
rename to hw/core/stream.c
similarity index 100%
rename from hw/sysbus.c
rename to hw/core/sysbus.c
index e69de29..3ac154d 100644 (file)
@@ -0,0 +1,13 @@
+common-obj-$(CONFIG_ADS7846) += ads7846.o
+common-obj-$(CONFIG_VGA_CIRRUS) += cirrus_vga.o
+common-obj-$(CONFIG_G364FB) += g364fb.o
+common-obj-$(CONFIG_JAZZ_LED) += jazz_led.o
+common-obj-$(CONFIG_PL110) += pl110.o
+common-obj-$(CONFIG_SSD0303) += ssd0303.o
+common-obj-$(CONFIG_SSD0323) += ssd0323.o
+common-obj-$(CONFIG_XEN_BACKEND) += xenfb.o
+
+common-obj-$(CONFIG_VGA_PCI) += vga-pci.o
+common-obj-$(CONFIG_VGA_ISA) += vga-isa.o
+common-obj-$(CONFIG_VGA_ISA_MM) += vga-isa-mm.o
+common-obj-$(CONFIG_VMWARE_VGA) += vmware_vga.o
similarity index 100%
rename from hw/ads7846.c
rename to hw/display/ads7846.c
similarity index 100%
rename from hw/cirrus_vga.c
rename to hw/display/cirrus_vga.c
similarity index 100%
rename from hw/g364fb.c
rename to hw/display/g364fb.c
similarity index 100%
rename from hw/jazz_led.c
rename to hw/display/jazz_led.c
similarity index 100%
rename from hw/pl110.c
rename to hw/display/pl110.c
similarity index 100%
rename from hw/ssd0303.c
rename to hw/display/ssd0303.c
similarity index 100%
rename from hw/ssd0323.c
rename to hw/display/ssd0323.c
similarity index 100%
rename from hw/vga-isa-mm.c
rename to hw/display/vga-isa-mm.c
similarity index 100%
rename from hw/vga-isa.c
rename to hw/display/vga-isa.c
similarity index 100%
rename from hw/vga-pci.c
rename to hw/display/vga-pci.c
similarity index 100%
rename from hw/vmware_vga.c
rename to hw/display/vmware_vga.c
similarity index 100%
rename from hw/xenfb.c
rename to hw/display/xenfb.c
index e69de29..bce31cd 100644 (file)
@@ -0,0 +1,7 @@
+common-obj-$(CONFIG_PUV3) += puv3_dma.o
+common-obj-$(CONFIG_RC4030) += rc4030.o
+common-obj-$(CONFIG_PL080) += pl080.o
+common-obj-$(CONFIG_PL330) += pl330.o
+common-obj-$(CONFIG_I82374) += i82374.o
+common-obj-$(CONFIG_I8257) += i8257.o
+common-obj-$(CONFIG_XILINX_AXI) += xilinx_axidma.o
similarity index 100%
rename from hw/i82374.c
rename to hw/dma/i82374.c
similarity index 100%
rename from hw/dma.c
rename to hw/dma/i8257.c
similarity index 100%
rename from hw/pl080.c
rename to hw/dma/pl080.c
similarity index 100%
rename from hw/pl330.c
rename to hw/dma/pl330.c
similarity index 100%
rename from hw/puv3_dma.c
rename to hw/dma/puv3_dma.c
similarity index 100%
rename from hw/rc4030.c
rename to hw/dma/rc4030.c
similarity index 100%
rename from hw/xilinx_axidma.c
rename to hw/dma/xilinx_axidma.c
index e69de29..f8d8ee8 100644 (file)
@@ -0,0 +1,3 @@
+common-obj-$(CONFIG_MAX7310) += max7310.o
+common-obj-$(CONFIG_PL061) += pl061.o
+common-obj-$(CONFIG_PUV3) += puv3_gpio.o
similarity index 100%
rename from hw/max7310.c
rename to hw/gpio/max7310.c
similarity index 100%
rename from hw/pl061.c
rename to hw/gpio/pl061.c
similarity index 100%
rename from hw/puv3_gpio.c
rename to hw/gpio/puv3_gpio.c
index e69de29..f6bd8fa 100644 (file)
@@ -0,0 +1,4 @@
+common-obj-y += core.o smbus.o smbus_eeprom.o
+common-obj-$(CONFIG_VERSATILE_I2C) += versatile_i2c.o
+common-obj-$(CONFIG_ACPI) += smbus_ich9.o
+common-obj-$(CONFIG_APM) += pm_smbus.o
similarity index 100%
rename from hw/i2c.c
rename to hw/i2c/core.c
similarity index 100%
rename from hw/pm_smbus.c
rename to hw/i2c/pm_smbus.c
similarity index 100%
rename from hw/smbus.c
rename to hw/i2c/smbus.c
similarity index 100%
rename from hw/smbus_eeprom.c
rename to hw/i2c/smbus_eeprom.c
similarity index 100%
rename from hw/smbus_ich9.c
rename to hw/i2c/smbus_ich9.c
similarity index 100%
rename from hw/versatile_i2c.c
rename to hw/i2c/versatile_i2c.c
index e69de29..824997e 100644 (file)
@@ -0,0 +1,9 @@
+common-obj-$(CONFIG_ADB) += adb.o
+common-obj-y += hid.o
+common-obj-$(CONFIG_LM832X) += lm832x.o
+common-obj-$(CONFIG_PCKBD) += pckbd.o
+common-obj-$(CONFIG_PL050) += pl050.o
+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
similarity index 100%
rename from hw/adb.c
rename to hw/input/adb.c
similarity index 100%
rename from hw/hid.c
rename to hw/input/hid.c
similarity index 100%
rename from hw/lm832x.c
rename to hw/input/lm832x.c
similarity index 100%
rename from hw/pckbd.c
rename to hw/input/pckbd.c
similarity index 100%
rename from hw/pl050.c
rename to hw/input/pl050.c
similarity index 100%
rename from hw/ps2.c
rename to hw/input/ps2.c
similarity index 100%
rename from hw/tsc2005.c
rename to hw/input/tsc2005.c
similarity index 100%
rename from hw/vmmouse.c
rename to hw/input/vmmouse.c
index e69de29..2813adb 100644 (file)
@@ -0,0 +1,5 @@
+common-obj-$(CONFIG_HEATHROW_PIC) += heathrow_pic.o
+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
similarity index 100%
rename from hw/heathrow_pic.c
rename to hw/intc/heathrow_pic.c
similarity index 100%
rename from hw/i8259.c
rename to hw/intc/i8259.c
similarity index 100%
rename from hw/i8259_common.c
rename to hw/intc/i8259_common.c
similarity index 100%
rename from hw/pl190.c
rename to hw/intc/pl190.c
similarity index 100%
rename from hw/puv3_intc.c
rename to hw/intc/puv3_intc.c
similarity index 100%
rename from hw/xilinx_intc.c
rename to hw/intc/xilinx_intc.c
index e69de29..ad3643b 100644 (file)
@@ -0,0 +1,7 @@
+common-obj-y += isa-bus.o
+common-obj-$(CONFIG_APM) += apm.o
+common-obj-$(CONFIG_I82378) += i82378.o
+common-obj-$(CONFIG_ISA_MMIO) += isa_mmio.o
+common-obj-$(CONFIG_PC87312) += pc87312.o
+common-obj-$(CONFIG_PIIX4) += piix4.o
+
similarity index 100%
rename from hw/apm.c
rename to hw/isa/apm.c
similarity index 100%
rename from hw/i82378.c
rename to hw/isa/i82378.c
similarity index 100%
rename from hw/isa-bus.c
rename to hw/isa/isa-bus.c
similarity index 100%
rename from hw/isa_mmio.c
rename to hw/isa/isa_mmio.c
similarity index 100%
rename from hw/pc87312.c
rename to hw/isa/pc87312.c
similarity index 100%
rename from hw/piix4.c
rename to hw/isa/piix4.c
index e69de29..009b1d9 100644 (file)
@@ -0,0 +1,11 @@
+common-obj-$(CONFIG_APPLESMC) += applesmc.o
+common-obj-$(CONFIG_MAX111X) += max111x.o
+common-obj-$(CONFIG_TMP105) += tmp105.o
+
+# ARM devices
+common-obj-$(CONFIG_PL310) += arm_l2x0.o
+
+# PKUnity SoC devices
+common-obj-$(CONFIG_PUV3) += puv3_pm.o
+
+common-obj-$(CONFIG_MACIO) += macio/
similarity index 100%
rename from hw/applesmc.c
rename to hw/misc/applesmc.c
similarity index 100%
rename from hw/arm_l2x0.c
rename to hw/misc/arm_l2x0.c
diff --git a/hw/misc/macio/Makefile.objs b/hw/misc/macio/Makefile.objs
new file mode 100644 (file)
index 0000000..ef7ac24
--- /dev/null
@@ -0,0 +1,3 @@
+common-obj-y += macio.o
+common-obj-$(CONFIG_CUDA) += cuda.o
+common-obj-$(CONFIG_MAC_DBDMA) += mac_dbdma.o
similarity index 100%
rename from hw/cuda.c
rename to hw/misc/macio/cuda.c
similarity index 100%
rename from hw/mac_dbdma.c
rename to hw/misc/macio/mac_dbdma.c
similarity index 100%
rename from hw/macio.c
rename to hw/misc/macio/macio.c
similarity index 100%
rename from hw/max111x.c
rename to hw/misc/max111x.c
similarity index 100%
rename from hw/puv3_pm.c
rename to hw/misc/puv3_pm.c
similarity index 100%
rename from hw/tmp105.c
rename to hw/misc/tmp105.c
index e69de29..ad91293 100644 (file)
@@ -0,0 +1,22 @@
+common-obj-$(CONFIG_DP8393X) += dp8393x.o
+common-obj-$(CONFIG_XEN_BACKEND) += xen_nic.o
+
+# PCI network cards
+common-obj-$(CONFIG_NE2000_PCI) += ne2000.o
+common-obj-$(CONFIG_EEPRO100_PCI) += eepro100.o
+common-obj-$(CONFIG_PCNET_PCI) += pcnet-pci.o
+common-obj-$(CONFIG_PCNET_COMMON) += pcnet.o
+common-obj-$(CONFIG_E1000_PCI) += e1000.o
+common-obj-$(CONFIG_RTL8139_PCI) += rtl8139.o
+common-obj-$(CONFIG_VMXNET3_PCI) += vmxnet_tx_pkt.o vmxnet_rx_pkt.o
+common-obj-$(CONFIG_VMXNET3_PCI) += vmxnet3.o
+
+common-obj-$(CONFIG_SMC91C111) += smc91c111.o
+common-obj-$(CONFIG_LAN9118) += lan9118.o
+common-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
+common-obj-$(CONFIG_OPENCORES_ETH) += opencores_eth.o
+common-obj-$(CONFIG_XGMAC) += xgmac.o
+common-obj-$(CONFIG_MIPSNET) += mipsnet.o
+common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o
+
+common-obj-$(CONFIG_CADENCE) += cadence_gem.o
similarity index 100%
rename from hw/cadence_gem.c
rename to hw/net/cadence_gem.c
similarity index 100%
rename from hw/dp8393x.c
rename to hw/net/dp8393x.c
similarity index 100%
rename from hw/e1000.c
rename to hw/net/e1000.c
similarity index 100%
rename from hw/eepro100.c
rename to hw/net/eepro100.c
similarity index 100%
rename from hw/lan9118.c
rename to hw/net/lan9118.c
similarity index 100%
rename from hw/mipsnet.c
rename to hw/net/mipsnet.c
similarity index 100%
rename from hw/ne2000-isa.c
rename to hw/net/ne2000-isa.c
similarity index 100%
rename from hw/ne2000.c
rename to hw/net/ne2000.c
similarity index 100%
rename from hw/opencores_eth.c
rename to hw/net/opencores_eth.c
similarity index 100%
rename from hw/pcnet-pci.c
rename to hw/net/pcnet-pci.c
similarity index 100%
rename from hw/pcnet.c
rename to hw/net/pcnet.c
similarity index 100%
rename from hw/rtl8139.c
rename to hw/net/rtl8139.c
similarity index 100%
rename from hw/smc91c111.c
rename to hw/net/smc91c111.c
similarity index 100%
rename from hw/vmware_utils.h
rename to hw/net/vmware_utils.h
similarity index 100%
rename from hw/vmxnet3.c
rename to hw/net/vmxnet3.c
similarity index 100%
rename from hw/vmxnet3.h
rename to hw/net/vmxnet3.h
similarity index 100%
rename from hw/vmxnet_debug.h
rename to hw/net/vmxnet_debug.h
similarity index 100%
rename from hw/vmxnet_rx_pkt.c
rename to hw/net/vmxnet_rx_pkt.c
similarity index 100%
rename from hw/vmxnet_rx_pkt.h
rename to hw/net/vmxnet_rx_pkt.h
similarity index 100%
rename from hw/vmxnet_tx_pkt.c
rename to hw/net/vmxnet_tx_pkt.c
similarity index 100%
rename from hw/vmxnet_tx_pkt.h
rename to hw/net/vmxnet_tx_pkt.h
similarity index 100%
rename from hw/xen_nic.c
rename to hw/net/xen_nic.c
similarity index 100%
rename from hw/xgmac.c
rename to hw/net/xgmac.c
similarity index 100%
rename from hw/xilinx_axienet.c
rename to hw/net/xilinx_axienet.c
index e69de29..80fb1b0 100644 (file)
@@ -0,0 +1,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
similarity index 100%
rename from hw/ds1225y.c
rename to hw/nvram/ds1225y.c
similarity index 100%
rename from hw/eeprom93xx.c
rename to hw/nvram/eeprom93xx.c
similarity index 100%
rename from hw/fw_cfg.c
rename to hw/nvram/fw_cfg.c
similarity index 100%
rename from hw/mac_nvram.c
rename to hw/nvram/mac_nvram.c
index 1cd6cde..aac5f65 100644 (file)
@@ -4,6 +4,8 @@ common-obj-$(CONFIG_PCI) += shpc.o
 common-obj-$(CONFIG_PCI) += slotid_cap.o
 common-obj-$(CONFIG_PCI) += pci_host.o pcie_host.o
 common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o
-common-obj-$(CONFIG_NO_PCI) += pci-stub.o
 
+common-obj-$(CONFIG_NO_PCI) += pci-stub.o
 common-obj-$(CONFIG_ALL) += pci-stub.o
+
+common-obj-$(CONFIG_PCI) += bridge/ host/
diff --git a/hw/pci/bridge/Makefile.objs b/hw/pci/bridge/Makefile.objs
new file mode 100644 (file)
index 0000000..5dd92d2
--- /dev/null
@@ -0,0 +1,3 @@
+common-obj-y += pci_bridge_dev.o
+common-obj-y += ioh3420.o xio3130_upstream.o xio3130_downstream.o
+common-obj-y += i82801b11.o
similarity index 100%
rename from hw/i82801b11.c
rename to hw/pci/bridge/i82801b11.c
similarity index 100%
rename from hw/ioh3420.c
rename to hw/pci/bridge/ioh3420.c
diff --git a/hw/pci/host/Makefile.objs b/hw/pci/host/Makefile.objs
new file mode 100644 (file)
index 0000000..e1d6cce
--- /dev/null
@@ -0,0 +1,13 @@
+common-obj-y += pam.o
+
+# PPC devices
+common-obj-$(CONFIG_PREP_PCI) += prep.o
+common-obj-$(CONFIG_GRACKLE_PCI) += grackle.o
+# NewWorld PowerMac
+common-obj-$(CONFIG_UNIN_PCI) += uninorth.o
+common-obj-$(CONFIG_DEC_PCI) += dec.o
+# PowerPC E500 boards
+common-obj-$(CONFIG_PPCE500_PCI) += ppce500.o
+
+# ARM devices
+common-obj-$(CONFIG_VERSATILE_PCI) += versatile.o
similarity index 100%
rename from hw/dec_pci.c
rename to hw/pci/host/dec.c
similarity index 100%
rename from hw/grackle_pci.c
rename to hw/pci/host/grackle.c
similarity index 100%
rename from hw/pam.c
rename to hw/pci/host/pam.c
similarity index 100%
rename from hw/ppce500_pci.c
rename to hw/pci/host/ppce500.c
similarity index 100%
rename from hw/prep_pci.c
rename to hw/pci/host/prep.c
similarity index 100%
rename from hw/unin_pci.c
rename to hw/pci/host/uninorth.c
similarity index 100%
rename from hw/versatile_pci.c
rename to hw/pci/host/versatile.c
index e69de29..6a56504 100644 (file)
@@ -0,0 +1,6 @@
+common-obj-y += scsi-disk.o
+common-obj-y += scsi-generic.o scsi-bus.o
+common-obj-$(CONFIG_LSI_SCSI_PCI) += lsi53c895a.o
+common-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
+common-obj-$(CONFIG_ESP) += esp.o
+common-obj-$(CONFIG_ESP_PCI) += esp-pci.o
similarity index 100%
rename from hw/esp-pci.c
rename to hw/scsi/esp-pci.c
similarity index 100%
rename from hw/esp.c
rename to hw/scsi/esp.c
similarity index 100%
rename from hw/lsi53c895a.c
rename to hw/scsi/lsi53c895a.c
similarity index 100%
rename from hw/megasas.c
rename to hw/scsi/megasas.c
similarity index 100%
rename from hw/scsi-bus.c
rename to hw/scsi/scsi-bus.c
similarity index 100%
rename from hw/scsi-disk.c
rename to hw/scsi/scsi-disk.c
similarity index 100%
rename from hw/scsi-generic.c
rename to hw/scsi/scsi-generic.c
index e69de29..8acce02 100644 (file)
@@ -0,0 +1,4 @@
+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
similarity index 100%
rename from hw/pl181.c
rename to hw/sd/pl181.c
similarity index 100%
rename from hw/sd.c
rename to hw/sd/sd.c
similarity index 100%
rename from hw/sdhci.c
rename to hw/sd/sdhci.c
similarity index 100%
rename from hw/ssi-sd.c
rename to hw/sd/ssi-sd.c
index e69de29..daada5c 100644 (file)
@@ -0,0 +1,2 @@
+common-obj-$(CONFIG_PL022) += pl022.o
+common-obj-$(CONFIG_SSI) += ssi.o
similarity index 100%
rename from hw/pl022.c
rename to hw/ssi/pl022.c
similarity index 100%
rename from hw/ssi.c
rename to hw/ssi/ssi.c
index e69de29..12781dd 100644 (file)
@@ -0,0 +1,10 @@
+common-obj-$(CONFIG_ARM_TIMER) += arm_timer.o
+common-obj-$(CONFIG_CADENCE) += cadence_ttc.o
+common-obj-$(CONFIG_DS1338) += ds1338.o
+common-obj-$(CONFIG_HPET) += hpet.o
+common-obj-$(CONFIG_I8254) += i8254_common.o i8254.o
+common-obj-$(CONFIG_M48T59) += m48t59.o
+common-obj-$(CONFIG_PL031) += pl031.o
+common-obj-$(CONFIG_PUV3) += puv3_ost.o
+common-obj-$(CONFIG_TWL92230) += twl92230.o
+common-obj-$(CONFIG_XILINX) += xilinx_timer.o
similarity index 100%
rename from hw/arm_timer.c
rename to hw/timer/arm_timer.c
similarity index 100%
rename from hw/cadence_ttc.c
rename to hw/timer/cadence_ttc.c
similarity index 100%
rename from hw/ds1338.c
rename to hw/timer/ds1338.c
similarity index 100%
rename from hw/hpet.c
rename to hw/timer/hpet.c
similarity index 100%
rename from hw/i8254.c
rename to hw/timer/i8254.c
similarity index 100%
rename from hw/i8254_common.c
rename to hw/timer/i8254_common.c
similarity index 100%
rename from hw/m48t59.c
rename to hw/timer/m48t59.c
similarity index 100%
rename from hw/pl031.c
rename to hw/timer/pl031.c
similarity index 100%
rename from hw/puv3_ost.c
rename to hw/timer/puv3_ost.c
similarity index 100%
rename from hw/twl92230.c
rename to hw/timer/twl92230.c
similarity index 100%
rename from hw/xilinx_timer.c
rename to hw/timer/xilinx_timer.c
index e63e287..5c20644 100644 (file)
@@ -21,7 +21,12 @@ common-obj-$(CONFIG_USB_NETWORK)      += dev-network.o
 # FIXME: make configurable too
 CONFIG_USB_BLUETOOTH := y
 common-obj-$(CONFIG_USB_BLUETOOTH)    += dev-bluetooth.o
-common-obj-$(CONFIG_USB_SMARTCARD)    += dev-smartcard-reader.o
+
+ifeq ($(CONFIG_USB_SMARTCARD),y)
+common-obj-y                          += dev-smartcard-reader.o
+common-obj-y                          += ccid-card-passthru.o
+common-obj-$(CONFIG_SMARTCARD_NSS)    += ccid-card-emulated.o
+endif
 
 # usb redirection
 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
index e69de29..ed63495 100644 (file)
@@ -0,0 +1,4 @@
+common-obj-$(CONFIG_VIRTIO) += virtio-rng.o
+common-obj-$(CONFIG_VIRTIO_PCI) += virtio-pci.o
+common-obj-$(CONFIG_VIRTIO) += virtio-bus.o
+
similarity index 100%
rename from hw/virtio-bus.c
rename to hw/virtio/virtio-bus.c
similarity index 100%
rename from hw/virtio-pci.c
rename to hw/virtio/virtio-pci.c
similarity index 100%
rename from hw/virtio-rng.c
rename to hw/virtio/virtio-rng.c
index e69de29..f57133b 100644 (file)
@@ -0,0 +1,2 @@
+common-obj-y += watchdog.o
+common-obj-$(CONFIG_PCI) += wdt_i6300esb.o
similarity index 100%
rename from hw/watchdog.c
rename to hw/watchdog/watchdog.c
similarity index 100%
rename from hw/wdt_i6300esb.c
rename to hw/watchdog/wdt_i6300esb.c
index e69de29..4b209a7 100644 (file)
@@ -0,0 +1,2 @@
+# xen backend driver support
+common-obj-$(CONFIG_XEN_BACKEND) += xen_backend.o xen_devconfig.o
similarity index 100%
rename from hw/xen_backend.c
rename to hw/xen/xen_backend.c
similarity index 100%
rename from hw/xen_devconfig.c
rename to hw/xen/xen_devconfig.c