comparison 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
comparison
equal deleted inserted replaced
769:4638b88bc72d 770:a3b90f746dcf
22 uint16_t scl_mask; 22 uint16_t scl_mask;
23 uint8_t sda_read_bit; 23 uint8_t sda_read_bit;
24 } eeprom_map; 24 } eeprom_map;
25 25
26 typedef struct { 26 typedef struct {
27 char *buffer;
28 uint32_t size;
29 uint16_t address;
27 uint8_t host_sda; 30 uint8_t host_sda;
28 uint8_t slave_sda; 31 uint8_t slave_sda;
29 uint8_t scl; 32 uint8_t scl;
33 uint8_t state;
34 uint8_t counter;
35 uint8_t latch;
30 } eeprom_state; 36 } eeprom_state;
31 37
32 typedef struct { 38 typedef struct {
33 char *name; 39 char *name;
34 memmap_chunk *map; 40 memmap_chunk *map;
44 50
45 tern_node *load_rom_db(); 51 tern_node *load_rom_db();
46 rom_info configure_rom(tern_node *rom_db, void *vrom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks); 52 rom_info configure_rom(tern_node *rom_db, void *vrom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks);
47 rom_info configure_rom_heuristics(uint8_t *rom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks); 53 rom_info configure_rom_heuristics(uint8_t *rom, uint32_t rom_size, memmap_chunk const *base_map, uint32_t base_chunks);
48 uint8_t translate_region_char(uint8_t c); 54 uint8_t translate_region_char(uint8_t c);
49 void eeprom_init(eeprom_state *state); 55 void eeprom_init(eeprom_state *state, uint8_t *buffer, uint32_t size);
50 56
51 #endif //ROMDB_H_ 57 #endif //ROMDB_H_