src/mess/machine/hd63450.c
| r1446 | r1447 | |
| 205 | 205 | if((dmac.reg[channel].dcr & 0xc0) == 0x00) // Burst transfer |
| 206 | 206 | { |
| 207 | 207 | cpunum_set_input_line(dmac.intf->cpu,INPUT_LINE_HALT,ASSERT_LINE); |
| 208 | | timer_adjust(dmac.timer[channel],attotime_zero,channel, double_to_attotime(dmac.intf->burst_clock[channel])); |
| 208 | timer_adjust(dmac.timer[channel],attotime_zero,channel, dmac.intf->burst_clock[channel]); |
| 209 | 209 | } |
| 210 | 210 | else |
| 211 | | timer_adjust(dmac.timer[channel],ATTOTIME_IN_USEC(500),channel, double_to_attotime(dmac.intf->clock[channel])); |
| 211 | timer_adjust(dmac.timer[channel],ATTOTIME_IN_USEC(500),channel, dmac.intf->clock[channel]); |
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | dmac.transfer_size[channel] = dmac.reg[channel].mtc; |
| r1446 | r1447 | |
| 242 | 242 | if(dmac.halted[channel] != 0) |
| 243 | 243 | { |
| 244 | 244 | dmac.halted[channel] = 0; |
| 245 | | timer_adjust(dmac.timer[channel],attotime_zero,channel, double_to_attotime(dmac.intf->clock[channel])); |
| 245 | timer_adjust(dmac.timer[channel],attotime_zero,channel, dmac.intf->clock[channel]); |
| 246 | 246 | } |
| 247 | 247 | } |
| 248 | 248 | |
src/mess/drivers/x68k.c
| r1446 | r1447 | |
| 138 | 138 | #include "machine/rp5c15.h" |
| 139 | 139 | #include "devices/basicdsk.h" |
| 140 | 140 | #include "includes/x68k.h" |
| 141 | | #include "mslegacy.h" |
| 142 | 141 | |
| 143 | 142 | struct x68k_system sys; |
| 144 | 143 | |
| r1446 | r1447 | |
| 1538 | 1537 | static const struct hd63450_interface dmac_interface = |
| 1539 | 1538 | { |
| 1540 | 1539 | 0, // CPU - 68000 |
| 1541 | | {TIME_IN_USEC(32),TIME_IN_USEC(32),TIME_IN_USEC(4),TIME_IN_USEC(32)}, // Cycle steal mode timing (guesstimate) |
| 1542 | | {TIME_IN_USEC(32),TIME_IN_USEC(50)/1000,TIME_IN_USEC(50)/1000,TIME_IN_USEC(50)/1000}, // Burst mode timing (guesstimate) |
| 1540 | {STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_USEC(4),STATIC_ATTOTIME_IN_USEC(32)}, // Cycle steal mode timing (guesstimate) |
| 1541 | {STATIC_ATTOTIME_IN_USEC(32),STATIC_ATTOTIME_IN_NSEC(50),STATIC_ATTOTIME_IN_NSEC(50),STATIC_ATTOTIME_IN_NSEC(50)}, // Burst mode timing (guesstimate) |
| 1543 | 1542 | x68k_dma_end, |
| 1544 | 1543 | x68k_dma_error, |
| 1545 | 1544 | { x68k_fdc_read_byte, 0, 0, 0 }, |