summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/6821pia.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/6821pia.h')
-rw-r--r--src/emu/machine/6821pia.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/emu/machine/6821pia.h b/src/emu/machine/6821pia.h
index 58080e02864..4a0a9f44c99 100644
--- a/src/emu/machine/6821pia.h
+++ b/src/emu/machine/6821pia.h
@@ -18,16 +18,10 @@
**********************************************************************/
-#ifndef __6821NEW_H__
-#define __6821NEW_H__
+#ifndef __6821PIA_H__
+#define __6821PIA_H__
-
-/***************************************************************************
- CONSTANTS
-***************************************************************************/
-
-#define PIA6821 DEVICE_GET_INFO_NAME(pia6821)
-#define PIA6822 DEVICE_GET_INFO_NAME(pia6822)
+#include "devlegcy.h"
/***************************************************************************
@@ -53,14 +47,15 @@ struct _pia6821_interface
devcb_write_line irq_b_func;
};
+DECLARE_LEGACY_DEVICE(PIA6821, pia6821);
+DECLARE_LEGACY_DEVICE(PIA6822, pia6822);
+
+
/***************************************************************************
PROTOTYPES
***************************************************************************/
-DEVICE_GET_INFO( pia6821 );
-DEVICE_GET_INFO( pia6822 );
-
READ8_DEVICE_HANDLER( pia6821_r );
WRITE8_DEVICE_HANDLER( pia6821_w );