Fix seattle.c crash (hyprdriv)

This commit is contained in:
Couriersud 2008-11-17 22:03:25 +00:00
parent ce73844036
commit 959698c099

View File

@ -605,7 +605,7 @@ static void ide_interrupt(const device_config *device, int state)
* *
*************************************/ *************************************/
static void ethernet_interrupt(running_machine *machine, int state) static void ethernet_interrupt_machine(running_machine *machine, int state)
{ {
ethernet_irq_state = state; ethernet_irq_state = state;
if (board_config == FLAGSTAFF_CONFIG) if (board_config == FLAGSTAFF_CONFIG)
@ -618,6 +618,11 @@ static void ethernet_interrupt(running_machine *machine, int state)
update_widget_irq(machine); update_widget_irq(machine);
} }
static void ethernet_interrupt(const device_config *device, int state)
{
ethernet_interrupt_machine(device->machine, state);
}
/************************************* /*************************************
@ -695,7 +700,7 @@ static WRITE32_HANDLER( interrupt_config_w )
/* update the states */ /* update the states */
update_vblank_irq(space->machine); update_vblank_irq(space->machine);
ethernet_interrupt(space->machine, ethernet_irq_state); ethernet_interrupt_machine(space->machine, ethernet_irq_state);
} }
@ -708,7 +713,7 @@ static WRITE32_HANDLER( seattle_interrupt_enable_w )
if (vblank_latch) if (vblank_latch)
update_vblank_irq(space->machine); update_vblank_irq(space->machine);
if (ethernet_irq_state) if (ethernet_irq_state)
ethernet_interrupt(space->machine, ethernet_irq_state); ethernet_interrupt_machine(space->machine, ethernet_irq_state);
} }
} }