All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <daahern@cisco.com>
To: qemu-devel@nongnu.org
Cc: David Ahern <daahern@cisco.com>
Subject: [Qemu-devel] [PATCH 5/8] x86_64 config: fix compile for CONFIG_NE2000_ISA=n
Date: Wed, 12 Jan 2011 23:34:34 -0700	[thread overview]
Message-ID: <1294900477-23722-6-git-send-email-daahern@cisco.com> (raw)
In-Reply-To: <1294900477-23722-1-git-send-email-daahern@cisco.com>

Signed-off-by: David Ahern <daahern@cisco.com>
---
 hw/pc.c      |    4 ++++
 hw/pc_piix.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hw/pc.c b/hw/pc.c
index 6a55d2f..e7514fd 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -822,9 +822,11 @@ static void load_linux(void *fw_cfg,
 
 #define NE2000_NB_MAX 6
 
+#ifdef CONFIG_NE2000_ISA
 static const int ne2000_io[NE2000_NB_MAX] = { 0x300, 0x320, 0x340, 0x360,
                                               0x280, 0x380 };
 static const int ne2000_irq[NE2000_NB_MAX] = { 9, 10, 11, 3, 4, 5 };
+#endif
 
 void pc_audio_init (PCIBus *pci_bus, qemu_irq *pic)
 {
@@ -843,6 +845,7 @@ void pc_audio_init (PCIBus *pci_bus, qemu_irq *pic)
     }
 }
 
+#ifdef CONFIG_NE2000_ISA
 void pc_init_ne2k_isa(NICInfo *nd)
 {
     static int nb_ne2k = 0;
@@ -853,6 +856,7 @@ void pc_init_ne2k_isa(NICInfo *nd)
                     ne2000_irq[nb_ne2k], nd);
     nb_ne2k++;
 }
+#endif
 
 int cpu_is_bsp(CPUState *env)
 {
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index f82508d..5046947 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -119,9 +119,11 @@ static void pc_init1(ram_addr_t ram_size,
     for(i = 0; i < nb_nics; i++) {
         NICInfo *nd = &nd_table[i];
 
+#ifdef CONFIG_NE2000_ISA
         if (!pci_enabled || (nd->model && strcmp(nd->model, "ne2k_isa") == 0))
             pc_init_ne2k_isa(nd);
         else
+#endif
             pci_nic_init_nofail(nd, "e1000", NULL);
     }
 
-- 
1.7.3.4

  parent reply	other threads:[~2011-01-13  6:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13  6:34 [Qemu-devel] [PATCH 0/8] misc cleanups for x86_64 disabling config settings David Ahern
2011-01-13  6:34 ` [Qemu-devel] [PATCH 1/8] fix 'no such file' error from make_device_config.sh David Ahern
2011-01-13 13:43   ` Markus Armbruster
2011-01-13 14:40     ` David Ahern
2011-01-14 10:34       ` Markus Armbruster
2011-01-14 15:13         ` David Ahern
2011-01-14 19:57   ` Stefan Weil
2011-01-14 22:01     ` Blue Swirl
2011-01-13  6:34 ` [Qemu-devel] [PATCH 2/8] x86_64 config: fix compile for CONFIG_VMWARE_VGA=n David Ahern
2011-01-13  6:34 ` [Qemu-devel] [PATCH 3/8] x86_64 config: fix compile for CONFIG_PARALLEL=n David Ahern
2011-01-13  6:34 ` [Qemu-devel] [PATCH 4/8] remove unused parallel_* variables from pc.c David Ahern
2011-01-13  6:34 ` David Ahern [this message]
2011-01-13  6:34 ` [Qemu-devel] [PATCH 6/8] x86_64 config: fix compile for CONFIG_VGA_ISA=n David Ahern
2011-01-13 17:02   ` [Qemu-devel] " Paolo Bonzini
2011-01-13 17:28     ` David Ahern
2011-01-14  7:31       ` Paolo Bonzini
2011-01-14 17:49         ` David Ahern
2011-01-13  6:34 ` [Qemu-devel] [PATCH 7/8] x86_64 config: fix compile for CONFIG_IDE_ISA=n David Ahern
2011-01-13  6:34 ` [Qemu-devel] [PATCH 8/8] x86_64 config: fix compile for CONFIG_FDC=n David Ahern
2011-01-13 17:04   ` [Qemu-devel] " Paolo Bonzini
2011-01-13 17:25     ` David Ahern
2011-01-13  9:57 ` [Qemu-devel] [PATCH 0/8] misc cleanups for x86_64 disabling config settings Isaku Yamahata
2011-01-13 14:30   ` David Ahern
2011-01-13 17:06   ` [Qemu-devel] " Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1294900477-23722-6-git-send-email-daahern@cisco.com \
    --to=daahern@cisco.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.