diff options
Diffstat (limited to 'src/devices/bus/isa/ne2000.cpp')
-rw-r--r-- | src/devices/bus/isa/ne2000.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/bus/isa/ne2000.cpp b/src/devices/bus/isa/ne2000.cpp index a6086b4b77a..19bc8f015de 100644 --- a/src/devices/bus/isa/ne2000.cpp +++ b/src/devices/bus/isa/ne2000.cpp @@ -4,19 +4,15 @@ #include "ne2000.h" -static MACHINE_CONFIG_START(ne2000_config) +DEFINE_DEVICE_TYPE(NE2000, ne2000_device, "ne2000", "NE2000 Network Adapter") + +MACHINE_CONFIG_MEMBER(ne2000_device::device_add_mconfig) MCFG_DEVICE_ADD("dp8390d", DP8390D, 0) MCFG_DP8390D_IRQ_CB(WRITELINE(ne2000_device, ne2000_irq_w)) MCFG_DP8390D_MEM_READ_CB(READ8(ne2000_device, ne2000_mem_read)) MCFG_DP8390D_MEM_WRITE_CB(WRITE8(ne2000_device, ne2000_mem_write)) MACHINE_CONFIG_END -DEFINE_DEVICE_TYPE(NE2000, ne2000_device, "ne2000", "NE2000 Network Adapter") - -machine_config_constructor ne2000_device::device_mconfig_additions() const { - return MACHINE_CONFIG_NAME(ne2000_config); -} - ne2000_device::ne2000_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock) : device_t(mconfig, NE2000, tag, owner, clock), device_isa16_card_interface(mconfig, *this), |