summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/pci-ide.cpp
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2017-06-01 15:17:47 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2017-06-01 15:17:47 +0200
commit472be8055fc05670b5e37726130792b0472ec230 (patch)
tree9430dbbbad81e7ac89e7a3e137da9bdbebf48c7d /src/devices/machine/pci-ide.cpp
parentcc9a0e699fd16e5c7245ae018e61fb6f18e9ccac (diff)
some more devices/machine to device_add_mconfig (nw)
Diffstat (limited to 'src/devices/machine/pci-ide.cpp')
-rw-r--r--src/devices/machine/pci-ide.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/devices/machine/pci-ide.cpp b/src/devices/machine/pci-ide.cpp
index 154882e8132..b88049a7258 100644
--- a/src/devices/machine/pci-ide.cpp
+++ b/src/devices/machine/pci-ide.cpp
@@ -46,7 +46,7 @@ DEVICE_ADDRESS_MAP_START(bus_master_map, 32, ide_pci_device)
AM_RANGE(0x8, 0xf) AM_DEVREADWRITE("ide2", bus_master_ide_controller_device, bmdma_r, bmdma_w)
ADDRESS_MAP_END
-static MACHINE_CONFIG_START(pci_ide)
+MACHINE_CONFIG_MEMBER(ide_pci_device::device_add_mconfig)
MCFG_BUS_MASTER_IDE_CONTROLLER_ADD("ide", ata_devices, "hdd", "cdrom", true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(ide_pci_device, ide_interrupt))
//MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE(":maincpu", AS_PROGRAM)
@@ -57,11 +57,6 @@ static MACHINE_CONFIG_START(pci_ide)
MCFG_BUS_MASTER_IDE_CONTROLLER_SPACE(":pci:00.0", AS_DATA)
MACHINE_CONFIG_END
-machine_config_constructor ide_pci_device::device_mconfig_additions() const
-{
- return MACHINE_CONFIG_NAME(pci_ide);
-}
-
void ide_pci_device::set_irq_info(const char *tag, const int irq_num)
{
m_cpu_tag = tag;