summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/photoply.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/mame/drivers/photoply.c
parentfebb0e53f1a6fd9f43080e88ce7b871202a66d48 (diff)
pic8259.c: Switched to devcb2. (nw)
Diffstat (limited to 'src/mame/drivers/photoply.c')
-rw-r--r--src/mame/drivers/photoply.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mame/drivers/photoply.c b/src/mame/drivers/photoply.c
index 799d8b65f22..5cb4779fb68 100644
--- a/src/mame/drivers/photoply.c
+++ b/src/mame/drivers/photoply.c
@@ -215,20 +215,6 @@ READ8_MEMBER(photoply_state::get_slave_ack)
return 0x00;
}
-static const struct pic8259_interface pic8259_1_config =
-{
- DEVCB_DRIVER_LINE_MEMBER(photoply_state,pic8259_1_set_int_line),
- DEVCB_LINE_VCC,
- DEVCB_DRIVER_MEMBER(photoply_state,get_slave_ack)
-};
-
-static const struct pic8259_interface pic8259_2_config =
-{
- DEVCB_DEVICE_LINE_MEMBER("pic8259_1", pic8259_device, ir2_w),
- DEVCB_LINE_GND,
- DEVCB_NULL
-};
-
IRQ_CALLBACK_MEMBER(photoply_state::irq_callback)
{
return m_pic8259_1->acknowledge();
@@ -388,8 +374,8 @@ static MACHINE_CONFIG_START( photoply, photoply_state )
MCFG_MC146818_ADD( "rtc", MC146818_STANDARD )
// MCFG_FRAGMENT_ADD( at_kbdc8042 )
- MCFG_PIC8259_ADD( "pic8259_1", pic8259_1_config )
- MCFG_PIC8259_ADD( "pic8259_2", pic8259_2_config )
+ MCFG_PIC8259_ADD( "pic8259_1", WRITELINE(photoply_state,pic8259_1_set_int_line), VCC, READ8(photoply_state,get_slave_ack) )
+ MCFG_PIC8259_ADD( "pic8259_2", DEVWRITELINE("pic8259_1", pic8259_device, ir2_w), GND, NULL )
MCFG_I8237_ADD( "dma8237_1", XTAL_14_31818MHz/3, dma8237_1_config )
MCFG_I8237_ADD( "dma8237_2", XTAL_14_31818MHz/3, dma8237_2_config )
MCFG_PIT8254_ADD( "pit8254", at_pit8254_config )