From patchwork Thu Apr 4 19:22:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 233917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A030C2C0082 for ; Fri, 5 Apr 2013 06:32:37 +1100 (EST) Received: from localhost ([::1]:33766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNptj-0005dc-Rb for incoming@patchwork.ozlabs.org; Thu, 04 Apr 2013 15:32:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNplK-0001Jg-77 for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNplH-0001op-2a for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:54 -0400 Received: from mail-we0-x22c.google.com ([2a00:1450:400c:c03::22c]:32788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNplG-0001of-NY for qemu-devel@nongnu.org; Thu, 04 Apr 2013 15:23:50 -0400 Received: by mail-we0-f172.google.com with SMTP id r3so2302510wey.31 for ; Thu, 04 Apr 2013 12:23:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:date:message-id:x-mailer :in-reply-to:references; bh=m+juLe3NY8zLnk9kZlks30bA8Y21x4o2lBTlZLxoD4w=; b=HilhmGkeWgAvzq3HmpphN0snMJUmDhWwZmuHg4Zweb7ft/20PTUxhKnAVkUP10Inhp orSo+tJhKP8U3tSDbKZc5u21V0vNTZrP62BEDaCx/fRO5gAhlP4zGw3KDo/6EHnXHC4L 7rj94wXTYizXTztm7xIZ18wE9isYDp3zoAcAfHFeaKfRr9y4ko8Q3yZ60eFbzBWCXBbg KLDRa+jbrjY1KqytQWQidAJ3Bl7mPFHesiGXhI6PorHkbm3q31Oq2q4E1EZRMc2uBEiZ ZHzUcPqDpJuD3TOVAAVn9VnMOfc6jOtNb5e+dUewxTDI0g9E5ZPvTHeQ3pteYRR3keS8 U9Dw== X-Received: by 10.194.89.234 with SMTP id br10mr11639245wjb.43.1365103429985; Thu, 04 Apr 2013 12:23:49 -0700 (PDT) Received: from playground.lan (93-34-176-20.ip50.fastwebnet.it. [93.34.176.20]) by mx.google.com with ESMTPS id du2sm33093079wib.0.2013.04.04.12.23.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 04 Apr 2013 12:23:49 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 4 Apr 2013 21:22:52 +0200 Message-Id: <1365103395-11547-13-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> References: <1365103395-11547-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22c Subject: [Qemu-devel] [PATCH 12/35] hw: move NICs to hw/net/, configure via default-configs/ X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Paolo Bonzini --- default-configs/arm-softmmu.mak | 1 + default-configs/cris-softmmu.mak | 1 + default-configs/lm32-softmmu.mak | 1 + default-configs/m68k-softmmu.mak | 1 + default-configs/microblaze-softmmu.mak | 1 + default-configs/microblazeel-softmmu.mak | 1 + default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + default-configs/sparc-softmmu.mak | 1 + hw/arm/Makefile.objs | 2 +- hw/cris/Makefile.objs | 1 - hw/lm32/Makefile.objs | 1 - hw/m68k/Makefile.objs | 2 +- hw/microblaze/Makefile.objs | 1 - hw/net/Makefile.objs | 8 ++++++++ hw/{ => net}/etraxfs_eth.c | 0 hw/{ => net}/lance.c | 0 hw/{ => net}/mcf_fec.c | 0 hw/{ => net}/milkymist-minimac2.c | 0 hw/{ => net}/spapr_llan.c | 0 hw/{ => net}/stellaris_enet.c | 0 hw/{ => net}/xilinx_ethlite.c | 0 hw/ppc/Makefile.objs | 5 +---- hw/sparc/Makefile.objs | 2 +- 25 files changed, 22 insertions(+), 10 deletions(-) rename hw/{ => net}/etraxfs_eth.c (100%) rename hw/{ => net}/lance.c (100%) rename hw/{ => net}/mcf_fec.c (100%) rename hw/{ => net}/milkymist-minimac2.c (100%) rename hw/{ => net}/spapr_llan.c (100%) rename hw/{ => net}/stellaris_enet.c (100%) rename hw/{ => net}/xilinx_ethlite.c (100%) diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak index 4b72019..cd353bd 100644 --- a/default-configs/arm-softmmu.mak +++ b/default-configs/arm-softmmu.mak @@ -17,6 +17,7 @@ CONFIG_TSC2005=y CONFIG_LM832X=y CONFIG_TMP105=y CONFIG_STELLARIS_INPUT=y +CONFIG_STELLARIS_ENET=y CONFIG_SSD0303=y CONFIG_SSD0323=y CONFIG_ADS7846=y diff --git a/default-configs/cris-softmmu.mak b/default-configs/cris-softmmu.mak index 1a479cd..d970d50 100644 --- a/default-configs/cris-softmmu.mak +++ b/default-configs/cris-softmmu.mak @@ -1,5 +1,6 @@ # Default configuration for cris-softmmu +CONFIG_ETRAXFS=y CONFIG_NAND=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI02=y diff --git a/default-configs/lm32-softmmu.mak b/default-configs/lm32-softmmu.mak index 0d19974..2654ad6 100644 --- a/default-configs/lm32-softmmu.mak +++ b/default-configs/lm32-softmmu.mak @@ -1,5 +1,6 @@ # Default configuration for lm32-softmmu +CONFIG_MILKYMIST=y CONFIG_PTIMER=y CONFIG_PFLASH_CFI01=y CONFIG_PFLASH_CFI02=y diff --git a/default-configs/m68k-softmmu.mak b/default-configs/m68k-softmmu.mak index 778ea82..51fe5bb 100644 --- a/default-configs/m68k-softmmu.mak +++ b/default-configs/m68k-softmmu.mak @@ -2,5 +2,6 @@ include pci.mak include usb.mak +CONFIG_COLDFIRE=y CONFIG_GDBSTUB_XML=y CONFIG_PTIMER=y diff --git a/default-configs/microblaze-softmmu.mak b/default-configs/microblaze-softmmu.mak index 2f442e5..050e273 100644 --- a/default-configs/microblaze-softmmu.mak +++ b/default-configs/microblaze-softmmu.mak @@ -5,5 +5,6 @@ CONFIG_PFLASH_CFI01=y CONFIG_SERIAL=y CONFIG_XILINX=y CONFIG_XILINX_AXI=y +CONFIG_XILINX_ETHLITE=y CONFIG_SSI=y CONFIG_SSI_M25P80=y diff --git a/default-configs/microblazeel-softmmu.mak b/default-configs/microblazeel-softmmu.mak index af9a3cd..db82dd8 100644 --- a/default-configs/microblazeel-softmmu.mak +++ b/default-configs/microblazeel-softmmu.mak @@ -5,5 +5,6 @@ CONFIG_PFLASH_CFI01=y CONFIG_SERIAL=y CONFIG_XILINX=y CONFIG_XILINX_AXI=y +CONFIG_XILINX_ETHLITE=y CONFIG_SSI=y CONFIG_SSI_M25P80=y diff --git a/default-configs/ppc-softmmu.mak b/default-configs/ppc-softmmu.mak index d9ced3a..36a8ed3 100644 --- a/default-configs/ppc-softmmu.mak +++ b/default-configs/ppc-softmmu.mak @@ -40,6 +40,7 @@ CONFIG_PFLASH_CFI02=y CONFIG_PTIMER=y CONFIG_I8259=y CONFIG_XILINX=y +CONFIG_XILINX_ETHLITE=y CONFIG_E500=$(CONFIG_FDT) # For PReP CONFIG_MC146818RTC=y diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak index 7d62e14..2d5df77 100644 --- a/default-configs/ppc64-softmmu.mak +++ b/default-configs/ppc64-softmmu.mak @@ -40,6 +40,7 @@ CONFIG_PFLASH_CFI02=y CONFIG_PTIMER=y CONFIG_I8259=y CONFIG_XILINX=y +CONFIG_XILINX_ETHLITE=y CONFIG_PSERIES=$(CONFIG_FDT) CONFIG_E500=$(CONFIG_FDT) # For pSeries diff --git a/default-configs/ppcemb-softmmu.mak b/default-configs/ppcemb-softmmu.mak index 9d8c5c7..ce705a9 100644 --- a/default-configs/ppcemb-softmmu.mak +++ b/default-configs/ppcemb-softmmu.mak @@ -35,6 +35,7 @@ CONFIG_PFLASH_CFI02=y CONFIG_PTIMER=y CONFIG_I8259=y CONFIG_XILINX=y +CONFIG_XILINX_ETHLITE=y CONFIG_E500=$(CONFIG_FDT) # For PReP CONFIG_MC146818RTC=y diff --git a/default-configs/sparc-softmmu.mak b/default-configs/sparc-softmmu.mak index b0310c5..6d11ba0 100644 --- a/default-configs/sparc-softmmu.mak +++ b/default-configs/sparc-softmmu.mak @@ -8,3 +8,4 @@ CONFIG_PTIMER=y CONFIG_FDC=y CONFIG_EMPTY_SLOT=y CONFIG_PCNET_COMMON=y +CONFIG_LANCE=y diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs index d809ad8..b14beb8 100644 --- a/hw/arm/Makefile.objs +++ b/hw/arm/Makefile.objs @@ -8,7 +8,7 @@ obj-y += exynos4210_uart.o exynos4210_pwm.o obj-y += exynos4210_pmu.o exynos4210_mct.o exynos4210_fimd.o obj-y += exynos4210_rtc.o exynos4210_i2c.o obj-y += arm_mptimer.o a15mpcore.o -obj-y += armv7m_nvic.o stellaris_enet.o +obj-y += armv7m_nvic.o obj-y += pxa2xx_timer.o pxa2xx_dma.o obj-y += pxa2xx_lcd.o pxa2xx_mmci.o pxa2xx_pcmcia.o pxa2xx_keypad.o obj-y += zaurus.o tc6393xb.o diff --git a/hw/cris/Makefile.objs b/hw/cris/Makefile.objs index a94c624..e02365d 100644 --- a/hw/cris/Makefile.objs +++ b/hw/cris/Makefile.objs @@ -1,7 +1,6 @@ # IO blocks obj-y += etraxfs_dma.o obj-y += etraxfs_pic.o -obj-y += etraxfs_eth.o obj-y += etraxfs_timer.o obj-y += etraxfs_ser.o diff --git a/hw/lm32/Makefile.objs b/hw/lm32/Makefile.objs index 68ca90a..d72756c 100644 --- a/hw/lm32/Makefile.objs +++ b/hw/lm32/Makefile.objs @@ -7,7 +7,6 @@ obj-y += lm32_sys.o obj-y += milkymist-ac97.o obj-y += milkymist-hpdmc.o obj-y += milkymist-memcard.o -obj-y += milkymist-minimac2.o obj-y += milkymist-pfpu.o obj-y += milkymist-softusb.o obj-y += milkymist-sysctl.o diff --git a/hw/m68k/Makefile.objs b/hw/m68k/Makefile.objs index ede32a7..ebbe003 100644 --- a/hw/m68k/Makefile.objs +++ b/hw/m68k/Makefile.objs @@ -1,4 +1,4 @@ -obj-y = mcf_uart.o mcf_fec.o +obj-y = mcf_uart.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/hw/microblaze/Makefile.objs b/hw/microblaze/Makefile.objs index 9e7f249..75f5ce6 100644 --- a/hw/microblaze/Makefile.objs +++ b/hw/microblaze/Makefile.objs @@ -1,5 +1,4 @@ obj-y += xilinx_spi.o -obj-y += xilinx_ethlite.o obj-y := $(addprefix ../,$(obj-y)) diff --git a/hw/net/Makefile.objs b/hw/net/Makefile.objs index 73217d8..951cca3 100644 --- a/hw/net/Makefile.objs +++ b/hw/net/Makefile.objs @@ -20,6 +20,14 @@ common-obj-$(CONFIG_MIPSNET) += mipsnet.o common-obj-$(CONFIG_XILINX_AXI) += xilinx_axienet.o common-obj-$(CONFIG_CADENCE) += cadence_gem.o +common-obj-$(CONFIG_STELLARIS_ENET) += stellaris_enet.o +common-obj-$(CONFIG_LANCE) += lance.o + +obj-$(CONFIG_ETRAXFS) += etraxfs_eth.o +obj-$(CONFIG_COLDFIRE) += mcf_fec.o +obj-$(CONFIG_MILKYMIST) += milkymist-minimac2.o +obj-$(CONFIG_PSERIES) += spapr_llan.o +obj-$(CONFIG_XILINX_ETHLITE) += xilinx_ethlite.o obj-$(CONFIG_VIRTIO) += virtio-net.o obj-y += vhost_net.o diff --git a/hw/etraxfs_eth.c b/hw/net/etraxfs_eth.c similarity index 100% rename from hw/etraxfs_eth.c rename to hw/net/etraxfs_eth.c diff --git a/hw/lance.c b/hw/net/lance.c similarity index 100% rename from hw/lance.c rename to hw/net/lance.c diff --git a/hw/mcf_fec.c b/hw/net/mcf_fec.c similarity index 100% rename from hw/mcf_fec.c rename to hw/net/mcf_fec.c diff --git a/hw/milkymist-minimac2.c b/hw/net/milkymist-minimac2.c similarity index 100% rename from hw/milkymist-minimac2.c rename to hw/net/milkymist-minimac2.c diff --git a/hw/spapr_llan.c b/hw/net/spapr_llan.c similarity index 100% rename from hw/spapr_llan.c rename to hw/net/spapr_llan.c diff --git a/hw/stellaris_enet.c b/hw/net/stellaris_enet.c similarity index 100% rename from hw/stellaris_enet.c rename to hw/net/stellaris_enet.c diff --git a/hw/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c similarity index 100% rename from hw/xilinx_ethlite.c rename to hw/net/xilinx_ethlite.c diff --git a/hw/ppc/Makefile.objs b/hw/ppc/Makefile.objs index b22a6f1..42c7d08 100644 --- a/hw/ppc/Makefile.objs +++ b/hw/ppc/Makefile.objs @@ -1,5 +1,5 @@ # IBM pSeries (sPAPR) -obj-$(CONFIG_PSERIES) += spapr_vty.o spapr_llan.o spapr_vscsi.o +obj-$(CONFIG_PSERIES) += spapr_vty.o spapr_vscsi.o obj-$(CONFIG_PSERIES) += spapr_pci.o obj-$(CONFIG_PSERIES) += spapr_nvram.o # PowerPC 4xx boards @@ -7,9 +7,6 @@ obj-y += ppc4xx_pci.o # PowerPC OpenPIC obj-y += openpic.o -# Xilinx PPC peripherals -obj-y += xilinx_ethlite.o - obj-y := $(addprefix ../,$(obj-y)) # shared objects diff --git a/hw/sparc/Makefile.objs b/hw/sparc/Makefile.objs index 71bbddf..56eeb90 100644 --- a/hw/sparc/Makefile.objs +++ b/hw/sparc/Makefile.objs @@ -1,4 +1,4 @@ -obj-y = lance.o tcx.o sun4m_iommu.o slavio_intctl.o +obj-y = tcx.o sun4m_iommu.o slavio_intctl.o obj-y += slavio_timer.o slavio_misc.o sparc32_dma.o obj-y += cs4231.o eccmemctl.o sbi.o sun4c_intctl.o