src/mess/machine/isa_fdc.c
| r14226 | r14227 | |
| 144 | 144 | |
| 145 | 145 | static WRITE_LINE_DEVICE_HANDLER( pc_fdc_hw_interrupt ) |
| 146 | 146 | { |
| 147 | | isa8_fdc_device *fdc = downcast<isa8_fdc_device *>(device); |
| 147 | isa8_fdc_device *fdc = downcast<isa8_fdc_device *>(device->owner()); |
| 148 | 148 | |
| 149 | 149 | fdc->int_state = state; |
| 150 | 150 | |
| r14226 | r14227 | |
| 159 | 159 | |
| 160 | 160 | static WRITE_LINE_DEVICE_HANDLER( pc_fdc_hw_dma_drq ) |
| 161 | 161 | { |
| 162 | | isa8_fdc_device *fdc = downcast<isa8_fdc_device *>(device); |
| 162 | isa8_fdc_device *fdc = downcast<isa8_fdc_device *>(device->owner()); |
| 163 | 163 | fdc->dma_state = state; |
| 164 | 164 | |
| 165 | 165 | /* if dma is not enabled, drqs are masked */ |
| r14226 | r14227 | |
| 244 | 244 | /* changing the DMA enable bit, will affect the dma drq state |
| 245 | 245 | from reaching us - if dma is enabled this will send it through |
| 246 | 246 | otherwise it will be ignored */ |
| 247 | | pc_fdc_hw_dma_drq(fdc, fdc->dma_state); |
| 247 | pc_fdc_hw_dma_drq(fdc->m_upd765, fdc->dma_state); |
| 248 | 248 | |
| 249 | 249 | /* changing the DMA enable bit, will affect the irq state |
| 250 | 250 | from reaching us - if dma is enabled this will send it through |
| 251 | 251 | otherwise it will be ignored */ |
| 252 | | pc_fdc_hw_interrupt(fdc, fdc->int_state); |
| 252 | pc_fdc_hw_interrupt(fdc->m_upd765, fdc->int_state); |
| 253 | 253 | |
| 254 | 254 | /* reset? */ |
| 255 | 255 | if ((fdc->digital_output_register & PC_FDC_FLAGS_DOR_FDC_ENABLED)==0) |
src/mess/machine/coco_multi.c
| r14226 | r14227 | |
| 84 | 84 | |
| 85 | 85 | WRITE_LINE_DEVICE_HANDLER(multi_cart_w) |
| 86 | 86 | { |
| 87 | | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()); |
| 87 | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner()); |
| 88 | 88 | cart->m_cart_callback.writeline(device,state); |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | WRITE_LINE_DEVICE_HANDLER(multi_nmi_w) |
| 92 | 92 | { |
| 93 | | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()); |
| 93 | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner()); |
| 94 | 94 | cart->m_nmi_callback.writeline(device,state); |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | WRITE_LINE_DEVICE_HANDLER(multi_halt_w) |
| 98 | 98 | { |
| 99 | | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()); |
| 99 | cococart_slot_device *cart = dynamic_cast<cococart_slot_device *>(device->owner()->owner()); |
| 100 | 100 | cart->m_halt_callback.writeline(device,state); |
| 101 | 101 | } |
| 102 | 102 | |
src/mess/machine/comx_eb.c
| r14226 | r14227 | |
| 103 | 103 | |
| 104 | 104 | WRITE_LINE_DEVICE_HANDLER( int_w ) |
| 105 | 105 | { |
| 106 | | comx_eb_device *eb = downcast<comx_eb_device *>(device); |
| 106 | comx_eb_device *eb = downcast<comx_eb_device *>(device->owner()); |
| 107 | 107 | eb->set_int(device->tag(), state); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | WRITE_LINE_DEVICE_HANDLER( ef4_w ) |
| 111 | 111 | { |
| 112 | | comx_eb_device *eb = downcast<comx_eb_device *>(device); |
| 112 | comx_eb_device *eb = downcast<comx_eb_device *>(device->owner()); |
| 113 | 113 | eb->set_ef4(device->tag(), state); |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | WRITE_LINE_DEVICE_HANDLER( wait_w ) |
| 117 | 117 | { |
| 118 | | comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()); |
| 118 | comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()->owner()); |
| 119 | 119 | slot->wait_w(state); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | WRITE_LINE_DEVICE_HANDLER( clear_w ) |
| 123 | 123 | { |
| 124 | | comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()); |
| 124 | comx_expansion_slot_device *slot = dynamic_cast<comx_expansion_slot_device *>(device->owner()->owner()); |
| 125 | 125 | slot->clear_w(state); |
| 126 | 126 | } |
| 127 | 127 | |