src/mess/machine/apollo.c
| r15119 | r15120 | |
| 1306 | 1306 | DLOG1(("device_start_apollo_fdc")); |
| 1307 | 1307 | apollo_fdc_device = device; |
| 1308 | 1308 | pc_fdc_init(device->machine(), &apollo_fdc_interface); |
| 1309 | } |
| 1309 | 1310 | |
| 1310 | | // hack to make upd765.c work again for apollo with MESS version >= 0.142u6 |
| 1311 | | // 2011-07-23 Hans Ostermyer |
| 1312 | | // extern void upd765_hack_for_apollo(); |
| 1313 | | // upd765_hack_for_apollo(); |
| 1311 | static DEVICE_RESET( apollo_fdc ) { |
| 1312 | DLOG1(("device_reset_apollo_fdc")); |
| 1313 | pc_fdc_reset(device->machine()); |
| 1314 | 1314 | } |
| 1315 | 1315 | |
| 1316 | 1316 | WRITE8_MEMBER(apollo_state::apollo_fdc_w){ |
| r15119 | r15120 | |
| 1425 | 1425 | MCFG_DUART68681_ADD( APOLLO_SIO2_TAG, XTAL_3_6864MHz, apollo_sio2_config ) |
| 1426 | 1426 | |
| 1427 | 1427 | MCFG_UPD765A_ADD(APOLLO_FDC_TAG, pc_fdc_upd765_connected_1_drive_interface) |
| 1428 | | #ifdef MCFG_FLOPPY_DRIVE_ADD |
| 1429 | | MCFG_FLOPPY_DRIVE_ADD(FLOPPY_0, apollo_fdc_floppy_config) |
| 1430 | | #else |
| 1431 | 1428 | MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, apollo_fdc_floppy_config) |
| 1432 | | #endif |
| 1429 | |
| 1433 | 1430 | MCFG_OMTI8621_ADD(APOLLO_WDC_TAG, apollo_wdc_config) |
| 1434 | 1431 | MCFG_SC499_ADD(APOLLO_CTAPE_TAG, apollo_ctape_config) |
| 1435 | 1432 | MCFG_THREECOM3C505_ADD(APOLLO_ETH_TAG, apollo_3c505_config) |
| r15119 | r15120 | |
| 1474 | 1471 | device_reset_apollo_rtc(machine.device(APOLLO_RTC_TAG)); |
| 1475 | 1472 | device_reset_apollo_sio(machine.device(APOLLO_SIO_TAG)); |
| 1476 | 1473 | device_reset_apollo_sio2(machine.device(APOLLO_SIO2_TAG)); |
| 1474 | device_reset_apollo_fdc(apollo_fdc_device); |
| 1477 | 1475 | } |
src/mess/drivers/apollo.c
| r15119 | r15120 | |
| 1037 | 1037 | |
| 1038 | 1038 | static void apollo_reset_instr_callback(device_t *device) |
| 1039 | 1039 | { |
| 1040 | | apollo_state *apollo = device->machine().driver_data<apollo_state>(); |
| 1040 | running_machine &machine = device->machine(); |
| 1041 | apollo_state *apollo = machine.driver_data<apollo_state>(); |
| 1041 | 1042 | |
| 1042 | 1043 | DLOG1(("apollo_reset_instr_callback")); |
| 1043 | 1044 | |
| 1044 | | // reset non-CPU devices here |
| 1045 | // reset the CPU board devices |
| 1046 | MACHINE_RESET_CALL(apollo); |
| 1047 | apollo->dma8237_1->reset(); |
| 1048 | apollo->dma8237_2->reset(); |
| 1049 | apollo->pic8259_master->reset(); |
| 1050 | apollo->pic8259_slave->reset(); |
| 1051 | |
| 1052 | // reset the ISA bus devices |
| 1045 | 1053 | apollo->m_ctape->device_reset(); |
| 1054 | machine.device(APOLLO_ETH_TAG)->reset(); |
| 1055 | machine.device(APOLLO_WDC_TAG)->reset(); |
| 1046 | 1056 | |
| 1047 | | // HACK: should go through our devices and just reset those, not the entire machine object. |
| 1048 | | device->machine().schedule_soft_reset(); |
| 1057 | if (!apollo_is_dsp3x00()) |
| 1058 | { |
| 1059 | machine.device(APOLLO_SCREEN_TAG)->reset(); |
| 1060 | machine.device(APOLLO_KBD_TAG )->reset(); |
| 1061 | } |
| 1049 | 1062 | } |
| 1050 | 1063 | |
| 1051 | 1064 | /*************************************************************************** |