diff blastem.h @ 769:4638b88bc72d

Initial work on I2C EEPROM implementation
author Michael Pavone <pavone@retrodev.com>
date Fri, 10 Jul 2015 18:46:18 -0700
parents ea525f600b1d
children cbf97d335444
line wrap: on
line diff
--- a/blastem.h	Tue Jul 07 19:33:33 2015 -0700
+++ b/blastem.h	Fri Jul 10 18:46:18 2015 -0700
@@ -14,6 +14,7 @@
 #include "psg.h"
 #include "io.h"
 #include "config.h"
+#include "romdb.h"
 
 typedef struct {
 	m68k_context   *m68k;
@@ -22,6 +23,8 @@
 	ym2612_context *ym;
 	psg_context    *psg;
 	uint8_t        *save_storage;
+	eeprom_map     *eeprom_map;
+	uint32_t       num_eeprom;
 	uint32_t       save_size;
 	uint32_t       save_ram_mask;
 	uint32_t       master_clock; //Current master clock value
@@ -32,6 +35,7 @@
 	uint8_t        save_type;
 	io_port        ports[3];
 	uint8_t        bus_busy;
+	eeprom_state   eeprom;
 } genesis_context;
 
 extern genesis_context * genesis;