diff romdb.h @ 1414:d94855080529

Move I2C EEPROM and NOR Flash functions out of romdb.c into new files
author Michael Pavone <pavone@retrodev.com>
date Fri, 23 Jun 2017 21:48:38 -0700
parents 780fbe0b97be
children 11ac0b511cff
line wrap: on
line diff
--- a/romdb.h	Thu Jun 22 23:40:05 2017 -0700
+++ b/romdb.h	Fri Jun 23 21:48:38 2017 -0700
@@ -24,18 +24,6 @@
 } 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 {
 	uint8_t     *buffer;
 	uint8_t     *page_buffer;
 	uint32_t    size;
@@ -83,8 +71,6 @@
 rom_info configure_rom(tern_node *rom_db, void *vrom, uint32_t rom_size, void *lock_on, uint32_t lock_on_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, uint8_t *buffer, uint32_t size);
-void nor_flash_init(nor_state *state, uint8_t *buffer, uint32_t size, uint32_t page_size, uint16_t product_id, uint8_t bus_flags);
 char const *save_type_name(uint8_t save_type);
 //Note: free_rom_info only frees things pointed to by a rom_info struct, not the struct itself
 //this is because rom_info structs are typically stack allocated