summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/qx10.c
diff options
context:
space:
mode:
author Wilbert Pol <wilbert@jdg.info>2013-05-15 21:57:33 +0000
committer Wilbert Pol <wilbert@jdg.info>2013-05-15 21:57:33 +0000
commit6f7dd684beecab2b83fe7555f41676bc75f8bab3 (patch)
tree728398c9c22705c3cef2bf0e7a560a5c4c99d74e /src/mess/drivers/qx10.c
parentfebb0e53f1a6fd9f43080e88ce7b871202a66d48 (diff)
pic8259.c: Switched to devcb2. (nw)
Diffstat (limited to 'src/mess/drivers/qx10.c')
-rw-r--r--src/mess/drivers/qx10.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mess/drivers/qx10.c b/src/mess/drivers/qx10.c
index 444b0c6d3f7..894ffcbe852 100644
--- a/src/mess/drivers/qx10.c
+++ b/src/mess/drivers/qx10.c
@@ -564,12 +564,6 @@ READ8_MEMBER( qx10_state::get_slave_ack )
return 0x00;
}
-static const struct pic8259_interface qx10_pic8259_master_config =
-{
- DEVCB_DRIVER_LINE_MEMBER(qx10_state, qx10_pic8259_master_set_int_line),
- DEVCB_LINE_VCC,
- DEVCB_DRIVER_MEMBER(qx10_state, get_slave_ack)
-};
/*
Slave PIC8259
@@ -584,13 +578,6 @@ static const struct pic8259_interface qx10_pic8259_master_config =
*/
-static const struct pic8259_interface qx10_pic8259_slave_config =
-{
- DEVCB_DEVICE_LINE_MEMBER("pic8259_master", pic8259_device, ir7_w),
- DEVCB_LINE_GND,
- DEVCB_NULL
-};
-
IRQ_CALLBACK_MEMBER(qx10_state::irq_callback)
{
return m_pic_m->acknowledge();
@@ -1048,8 +1035,8 @@ static MACHINE_CONFIG_START( qx10, qx10_state )
/* Devices */
MCFG_PIT8253_ADD("pit8253_1", qx10_pit8253_1_config)
MCFG_PIT8253_ADD("pit8253_2", qx10_pit8253_2_config)
- MCFG_PIC8259_ADD("pic8259_master", qx10_pic8259_master_config)
- MCFG_PIC8259_ADD("pic8259_slave", qx10_pic8259_slave_config)
+ MCFG_PIC8259_ADD("pic8259_master", WRITELINE(qx10_state, qx10_pic8259_master_set_int_line), VCC, READ8(qx10_state, get_slave_ack))
+ MCFG_PIC8259_ADD("pic8259_slave", DEVWRITELINE("pic8259_master", pic8259_device, ir7_w), GND, NULL)
MCFG_UPD7201_ADD("upd7201", MAIN_CLK/4, qx10_upd7201_interface)
MCFG_I8255_ADD("i8255", qx10_i8255_interface)
MCFG_I8237_ADD("8237dma_1", MAIN_CLK/4, qx10_dma8237_1_interface)