aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/ne2000-isa.c13
-rw-r--r--hw/pc.h12
2 files changed, 11 insertions, 14 deletions
diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c
index 3ff0d89a74..e41dbbaa79 100644
--- a/hw/ne2000-isa.c
+++ b/hw/ne2000-isa.c
@@ -92,19 +92,6 @@ static int isa_ne2000_initfn(ISADevice *dev)
return 0;
}
-void isa_ne2000_init(int base, int irq, NICInfo *nd)
-{
- ISADevice *dev;
-
- qemu_check_nic_model(nd, "ne2k_isa");
-
- dev = isa_create("ne2k_isa");
- qdev_prop_set_uint32(&dev->qdev, "iobase", base);
- qdev_prop_set_uint32(&dev->qdev, "irq", irq);
- qdev_set_nic_properties(&dev->qdev, nd);
- qdev_init_nofail(&dev->qdev);
-}
-
static ISADeviceInfo ne2000_isa_info = {
.qdev.name = "ne2k_isa",
.qdev.size = sizeof(ISANE2000State),
diff --git a/hw/pc.h b/hw/pc.h
index f823b7d25a..abdf307fe0 100644
--- a/hw/pc.h
+++ b/hw/pc.h
@@ -176,8 +176,18 @@ void pci_cirrus_vga_init(PCIBus *bus);
void isa_cirrus_vga_init(void);
/* ne2000.c */
+static inline void isa_ne2000_init(int base, int irq, NICInfo *nd)
+{
+ ISADevice *dev;
-void isa_ne2000_init(int base, int irq, NICInfo *nd);
+ qemu_check_nic_model(nd, "ne2k_isa");
+
+ dev = isa_create("ne2k_isa");
+ qdev_prop_set_uint32(&dev->qdev, "iobase", base);
+ qdev_prop_set_uint32(&dev->qdev, "irq", irq);
+ qdev_set_nic_properties(&dev->qdev, nd);
+ qdev_init_nofail(&dev->qdev);
+}
/* e820 types */
#define E820_RAM 1