diff options
Diffstat (limited to 'src/mame/machine/zs01.h')
-rw-r--r-- | src/mame/machine/zs01.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mame/machine/zs01.h b/src/mame/machine/zs01.h new file mode 100644 index 00000000000..cca23eadf43 --- /dev/null +++ b/src/mame/machine/zs01.h @@ -0,0 +1,25 @@ +/* + * zs01.h + * + * Secure SerialFlash + * + */ + +#if !defined( ZS01_H ) + +#define ZS01_MAXCHIP ( 2 ) + +typedef void (*zs01_write_handler)( int pin, int value ); +typedef int (*zs01_read_handler)( int pin ); + +extern void zs01_init( int chip, UINT8 *data, zs01_write_handler write, zs01_read_handler read, UINT8 *ds2401 ); +extern void zs01_cs_write( int chip, int cs ); +extern void zs01_rst_write( int chip, int rst ); +extern void zs01_scl_write( int chip, int scl ); +extern void zs01_sda_write( int chip, int sda ); +extern int zs01_sda_read( int chip ); +extern NVRAM_HANDLER( zs01_0 ); +extern NVRAM_HANDLER( zs01_1 ); + +#define ZS01_H +#endif |