summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/i2cmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/i2cmem.h')
-rw-r--r--src/emu/machine/i2cmem.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/emu/machine/i2cmem.h b/src/emu/machine/i2cmem.h
new file mode 100644
index 00000000000..1a8eb3680a1
--- /dev/null
+++ b/src/emu/machine/i2cmem.h
@@ -0,0 +1,27 @@
+/*
+
+I2C Memory
+
+*/
+
+#if !defined( I2CMEM_H )
+#define I2CMEM_H ( 1 )
+
+#define I2CMEM_E0 ( 1 )
+#define I2CMEM_E1 ( 2 )
+#define I2CMEM_E2 ( 3 )
+#define I2CMEM_SDA ( 5 )
+#define I2CMEM_SCL ( 6 )
+#define I2CMEM_WC ( 7 )
+
+#define I2CMEM_MAXCHIP ( 1 )
+
+#define I2CMEM_SLAVE_ADDRESS ( 0xa0 )
+#define I2CMEM_SLAVE_ADDRESS_ALT ( 0xb0 )
+
+extern void i2cmem_init( int chip, int slave_address, int page_size, int data_size, unsigned char *data );
+extern void i2cmem_write( int chip, int line, int data );
+extern int i2cmem_read( int chip, int line );
+extern NVRAM_HANDLER( i2cmem_0 );
+
+#endif