2016-08-14 22:07:17 -04:00
|
|
|
/* Copyright holders: Sarah Walker
|
|
|
|
|
see COPYING for more details
|
|
|
|
|
*/
|
2016-06-26 00:34:39 +02:00
|
|
|
typedef struct ati_eeprom_t
|
|
|
|
|
{
|
|
|
|
|
uint16_t data[256];
|
|
|
|
|
|
|
|
|
|
int oldclk, oldena;
|
|
|
|
|
int opcode, state, count, out;
|
|
|
|
|
int wp;
|
|
|
|
|
uint32_t dat;
|
|
|
|
|
int type;
|
|
|
|
|
|
2017-05-06 04:02:03 +02:00
|
|
|
wchar_t fn[256];
|
2016-06-26 00:34:39 +02:00
|
|
|
} ati_eeprom_t;
|
|
|
|
|
|
2017-05-06 04:02:03 +02:00
|
|
|
void ati_eeprom_load(ati_eeprom_t *eeprom, wchar_t *fn, int type);
|
2016-06-26 00:34:39 +02:00
|
|
|
void ati_eeprom_write(ati_eeprom_t *eeprom, int ena, int clk, int dat);
|
|
|
|
|
int ati_eeprom_read(ati_eeprom_t *eeprom);
|