diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-06-23 21:48:38 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-06-23 21:48:38 -0700 |
commit | ed13c1993c34a296dcf9cc312e64875e5ef8c889 (patch) | |
tree | 78d4f261b5e128fa1838e7f63153290bd498e5fc /romdb.h | |
parent | e7e41dd4b314ce34c2c4f1152d243b606ded8565 (diff) |
Move I2C EEPROM and NOR Flash functions out of romdb.c into new files
Diffstat (limited to 'romdb.h')
-rw-r--r-- | romdb.h | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -24,18 +24,6 @@ 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 { uint8_t *buffer; uint8_t *page_buffer; uint32_t size; @@ -83,8 +71,6 @@ tern_node *load_rom_db(); 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 |