diff romdb.h @ 770:a3b90f746dcf

Broken EEPROM support
author Michael Pavone <pavone@retrodev.com>
date Tue, 14 Jul 2015 18:28:05 -0700
parents 4638b88bc72d
children cbf97d335444
line wrap: on
line diff
--- a/romdb.h	Fri Jul 10 18:46:18 2015 -0700
+++ b/romdb.h	Tue Jul 14 18:28:05 2015 -0700
@@ -24,9 +24,15 @@
 } eeprom_map;
 
 typedef struct {
+	char        *buffer;
+	uint32_t    size;
+	uint16_t    address;
 	uint8_t     host_sda;
 	uint8_t     slave_sda;
 	uint8_t     scl;
+	uint8_t     state;
+	uint8_t     counter;
+	uint8_t     latch;
 } eeprom_state;
 
 typedef struct {
@@ -46,6 +52,6 @@
 rom_info configure_rom(tern_node *rom_db, void *vrom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks);
 rom_info configure_rom_heuristics(uint8_t *rom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks);
 uint8_t translate_region_char(uint8_t c);
-void eeprom_init(eeprom_state *state);
+void eeprom_init(eeprom_state *state, uint8_t *buffer, uint32_t size);
 
 #endif //ROMDB_H_