diff options
Diffstat (limited to 'src/mess/machine/mm58274c.h')
-rw-r--r-- | src/mess/machine/mm58274c.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/mess/machine/mm58274c.h b/src/mess/machine/mm58274c.h new file mode 100644 index 00000000000..c17e1eb1332 --- /dev/null +++ b/src/mess/machine/mm58274c.h @@ -0,0 +1,38 @@ +#ifndef MM58274C_H +#define MM58274C_H + +/*************************************************************************** + MACROS +***************************************************************************/ + +DECLARE_LEGACY_DEVICE(MM58274C, mm58274c); + +/*************************************************************************** + FUNCTION PROTOTYPES +***************************************************************************/ +/* interface */ +/* + Initializes the clock chip. + day1 must be set to a value from 0 (sunday), 1 (monday) ... + to 6 (saturday) and is needed to correctly retrieve the day-of-week + from the host system clock. +*/ +typedef struct _mm58274c_interface mm58274c_interface; +struct _mm58274c_interface +{ + int mode24; /* 24/12 mode */ + int day1; /* first day of week */ +}; + +READ8_DEVICE_HANDLER ( mm58274c_r ); +WRITE8_DEVICE_HANDLER( mm58274c_w ); + +/*************************************************************************** + DEVICE CONFIGURATION MACROS +***************************************************************************/ + +#define MCFG_MM58274C_ADD(_tag, _intrf) \ + MCFG_DEVICE_ADD(_tag, MM58274C, 0) \ + MCFG_DEVICE_CONFIG(_intrf) + +#endif /* MM58274C_H */ |