summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6532riot.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/6532riot.h')
-rw-r--r--src/emu/machine/6532riot.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/emu/machine/6532riot.h b/src/emu/machine/6532riot.h
index b893fcc2ff2..c7d604ae45b 100644
--- a/src/emu/machine/6532riot.h
+++ b/src/emu/machine/6532riot.h
@@ -7,24 +7,21 @@
#ifndef __RIOT6532_H__
#define __RIOT6532_H__
+#include "devcb.h"
/***************************************************************************
TYPE DEFINITIONS
***************************************************************************/
-typedef UINT8 (*riot_read_func)(const device_config *device, UINT8 olddata);
-typedef void (*riot_write_func)(const device_config *device, UINT8 newdata, UINT8 olddata);
-typedef void (*riot_irq_func)(const device_config *device, int state);
-
typedef struct _riot6532_interface riot6532_interface;
struct _riot6532_interface
{
- riot_read_func in_a_func;
- riot_read_func in_b_func;
- riot_write_func out_a_func;
- riot_write_func out_b_func;
- riot_irq_func irq_func;
+ devcb_read8 in_a_func;
+ devcb_read8 in_b_func;
+ devcb_write8 out_a_func;
+ devcb_write8 out_b_func;
+ devcb_write_line irq_func;
};