diff options
author | 2017-06-09 12:48:45 +0200 | |
---|---|---|
committer | 2017-06-09 12:48:45 +0200 | |
commit | e844b01154f1d57c9736b37c085ea0b9bbb15acb (patch) | |
tree | 272d3ad1d7c9562f8c01809ab3daaafc9442435a /src/devices/bus/isa/hdc.cpp | |
parent | 0b546073e758e33abb12e738ab12aaf1377f2a3e (diff) |
device_add_mconfig up to devices/bus/l* (nw)
Diffstat (limited to 'src/devices/bus/isa/hdc.cpp')
-rw-r--r-- | src/devices/bus/isa/hdc.cpp | 41 |
1 files changed, 15 insertions, 26 deletions
diff --git a/src/devices/bus/isa/hdc.cpp b/src/devices/bus/isa/hdc.cpp index c5d5797ecd2..d728aa73b74 100644 --- a/src/devices/bus/isa/hdc.cpp +++ b/src/devices/bus/isa/hdc.cpp @@ -112,22 +112,6 @@ static const char *const hdc_command_names[] = nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr /* 0xF8-0xFF */ }; -static MACHINE_CONFIG_START( xt_hdc_config ) - MCFG_DEVICE_ADD("hdc",XT_HDC,0) - MCFG_XTHDC_IRQ_HANDLER(WRITELINE(isa8_hdc_device,irq_w)) - MCFG_XTHDC_DRQ_HANDLER(WRITELINE(isa8_hdc_device,drq_w)) - MCFG_HARDDISK_ADD("hdc:primary") - MCFG_HARDDISK_ADD("hdc:slave") -MACHINE_CONFIG_END - -static MACHINE_CONFIG_START( ec1841_hdc_config ) - MCFG_DEVICE_ADD("hdc",EC1841_HDC,0) - MCFG_XTHDC_IRQ_HANDLER(WRITELINE(isa8_hdc_ec1841_device,irq_w)) - MCFG_XTHDC_DRQ_HANDLER(WRITELINE(isa8_hdc_ec1841_device,drq_w)) - MCFG_HARDDISK_ADD("hdc:primary") - MCFG_HARDDISK_ADD("hdc:slave") -MACHINE_CONFIG_END - ROM_START( hdc ) ROM_REGION(0x02000,"hdc", 0) // Bios taken from WD1002A-WX1 @@ -931,19 +915,24 @@ DEFINE_DEVICE_TYPE(ISA8_HDC, isa8_hdc_device, "isa_hdc", "F DEFINE_DEVICE_TYPE(ISA8_HDC_EC1841, isa8_hdc_ec1841_device, "isa_hdc_ec1841", "EC1841 HDC Card") //------------------------------------------------- -// machine_config_additions - device-specific -// machine configurations +// device_add_mconfig - add device configuration //------------------------------------------------- -machine_config_constructor isa8_hdc_device::device_mconfig_additions() const -{ - return MACHINE_CONFIG_NAME( xt_hdc_config ); -} +MACHINE_CONFIG_MEMBER( isa8_hdc_device::device_add_mconfig ) + MCFG_DEVICE_ADD("hdc",XT_HDC,0) + MCFG_XTHDC_IRQ_HANDLER(WRITELINE(isa8_hdc_device,irq_w)) + MCFG_XTHDC_DRQ_HANDLER(WRITELINE(isa8_hdc_device,drq_w)) + MCFG_HARDDISK_ADD("hdc:primary") + MCFG_HARDDISK_ADD("hdc:slave") +MACHINE_CONFIG_END -machine_config_constructor isa8_hdc_ec1841_device::device_mconfig_additions() const -{ - return MACHINE_CONFIG_NAME( ec1841_hdc_config ); -} +MACHINE_CONFIG_MEMBER( isa8_hdc_ec1841_device::device_add_mconfig ) + MCFG_DEVICE_ADD("hdc",EC1841_HDC,0) + MCFG_XTHDC_IRQ_HANDLER(WRITELINE(isa8_hdc_ec1841_device,irq_w)) + MCFG_XTHDC_DRQ_HANDLER(WRITELINE(isa8_hdc_ec1841_device,drq_w)) + MCFG_HARDDISK_ADD("hdc:primary") + MCFG_HARDDISK_ADD("hdc:slave") +MACHINE_CONFIG_END //------------------------------------------------- // rom_region - device-specific ROM region |