summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/ne1000.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2017-06-09 12:48:45 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2017-06-09 12:48:45 +0200
commite844b01154f1d57c9736b37c085ea0b9bbb15acb (patch)
tree272d3ad1d7c9562f8c01809ab3daaafc9442435a /src/devices/bus/isa/ne1000.cpp
parent0b546073e758e33abb12e738ab12aaf1377f2a3e (diff)
device_add_mconfig up to devices/bus/l* (nw)
Diffstat (limited to 'src/devices/bus/isa/ne1000.cpp')
-rw-r--r--src/devices/bus/isa/ne1000.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/devices/bus/isa/ne1000.cpp b/src/devices/bus/isa/ne1000.cpp
index 1657b2f0c77..5041e091a1a 100644
--- a/src/devices/bus/isa/ne1000.cpp
+++ b/src/devices/bus/isa/ne1000.cpp
@@ -3,19 +3,16 @@
#include "emu.h"
#include "ne1000.h"
-static MACHINE_CONFIG_START(ne1000_config)
+
+DEFINE_DEVICE_TYPE(NE1000, ne1000_device, "ne1000", "NE1000 Network Adapter")
+
+MACHINE_CONFIG_MEMBER(ne1000_device::device_add_mconfig)
MCFG_DEVICE_ADD("dp8390d", DP8390D, 0)
MCFG_DP8390D_IRQ_CB(WRITELINE(ne1000_device, ne1000_irq_w))
MCFG_DP8390D_MEM_READ_CB(READ8(ne1000_device, ne1000_mem_read))
MCFG_DP8390D_MEM_WRITE_CB(WRITE8(ne1000_device, ne1000_mem_write))
MACHINE_CONFIG_END
-DEFINE_DEVICE_TYPE(NE1000, ne1000_device, "ne1000", "NE1000 Network Adapter")
-
-machine_config_constructor ne1000_device::device_mconfig_additions() const {
- return MACHINE_CONFIG_NAME(ne1000_config);
-}
-
ne1000_device::ne1000_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, NE1000, tag, owner, clock),
device_isa8_card_interface(mconfig, *this),