From ec937eb637770838c92864d1d51393297a226d82 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Tue, 14 Jul 2015 18:28:05 -0700 Subject: Broken EEPROM support --- romdb.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'romdb.h') diff --git a/romdb.h b/romdb.h index e126640..3bf9fa6 100644 --- a/romdb.h +++ b/romdb.h @@ -24,9 +24,15 @@ typedef struct { } 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 @@ tern_node *load_rom_db(); 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_ -- cgit v1.2.3