diff options
author | 2008-12-06 06:40:40 +0000 | |
---|---|---|
committer | 2008-12-06 06:40:40 +0000 | |
commit | d8e17c4e86e9aa5a013de5435822cdf13c9bab19 (patch) | |
tree | 6f184415af6c04d4018f604f82c8535253c3935d /src/emu/machine/idectrl.h | |
parent | e2c9b10241a49226c9b1a0f58d3e2f9e81d64236 (diff) |
Removed cpunum_get_active().
Main important change is that IDE controllers with bus mastering (DMA)
need to specify the target address space in the IDE device configuration.
Diffstat (limited to 'src/emu/machine/idectrl.h')
-rw-r--r-- | src/emu/machine/idectrl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/emu/machine/idectrl.h b/src/emu/machine/idectrl.h index ac8333cc790..8ceab153ccb 100644 --- a/src/emu/machine/idectrl.h +++ b/src/emu/machine/idectrl.h @@ -27,6 +27,8 @@ struct _ide_config void (*interrupt)(const device_config *device, int state); const char *master; /* name of master region (defaults to device tag) */ const char *slave; /* name of slave region (defaults to NULL) */ + const char *bmcpu; /* name of bus master CPU */ + UINT32 bmspace; /* address space of bus master transfer */ }; @@ -43,6 +45,10 @@ struct _ide_config MDRV_DEVICE_CONFIG_DATAPTR(ide_config, master, _master) \ MDRV_DEVICE_CONFIG_DATAPTR(ide_config, master, _slave) +#define MDRV_IDE_BUS_MASTER_SPACE(_cpu, _space) \ + MDRV_DEVICE_CONFIG_DATAPTR(ide_config, bmcpu, _cpu) \ + MDRV_DEVICE_CONFIG_DATA32(ide_config, bmspace, ADDRESS_SPACE_##_space) + #define MDRV_IDE_CONTROLLER_REMOVE(_tag) \ MDRV_DEVICE_REMOVE(_tag, IDE_CONTROLLER) |