diff options
author | 2010-06-03 15:23:47 +0000 | |
---|---|---|
committer | 2010-06-03 15:23:47 +0000 | |
commit | 6d1884e511d74797444a26b43a9d488124ec947b (patch) | |
tree | e51df39aa9d014d9b06f8d531630833b03b399ee /src/emu/machine/x2212.h | |
parent | 89033bcadc07274e3e68d96e24342cea3f9fab24 (diff) |
X2212 now uses device template. Also changed all handlers to use devcb prototypes. Default nvram contents should be in region named same like device tag. Hooked up X2212 in starwars. [Couriersud]
Diffstat (limited to 'src/emu/machine/x2212.h')
-rw-r--r-- | src/emu/machine/x2212.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/emu/machine/x2212.h b/src/emu/machine/x2212.h index e88a6046c83..ab3ce81d5d7 100644 --- a/src/emu/machine/x2212.h +++ b/src/emu/machine/x2212.h @@ -8,11 +8,9 @@ #if !defined( X2212_H ) #define X2212_H ( 1 ) -typedef struct _x2212_config x2212_config; -struct _x2212_config -{ - const char *data; -}; +/* default nvram contents should be in memory region + * with the same tag as device. + */ #define X2212 DEVICE_GET_INFO_NAME(x2212) DEVICE_GET_INFO(x2212); @@ -20,10 +18,9 @@ DEVICE_GET_INFO(x2212); #define MDRV_X2212_ADD(_tag) \ MDRV_DEVICE_ADD(_tag, X2212, 0) - -extern void x2212_write( running_device *device, int offset, int data ); -extern int x2212_read( running_device *device, int offset ); -extern void x2212_store( running_device *device, int store ); -extern void x2212_array_recall( running_device *device, int array_recall ); +WRITE8_DEVICE_HANDLER( x2212_write ); +READ8_DEVICE_HANDLER( x2212_read ); +WRITE_LINE_DEVICE_HANDLER( x2212_store ); +WRITE_LINE_DEVICE_HANDLER( x2212_array_recall ); #endif |