Revision c227f099 hw/eeprom93xx.h
b/hw/eeprom93xx.h | ||
---|---|---|
20 | 20 |
#ifndef EEPROM93XX_H |
21 | 21 |
#define EEPROM93XX_H |
22 | 22 |
|
23 |
typedef struct eeprom a_eeprom;
|
|
23 |
typedef struct _eeprom_t eeprom_t;
|
|
24 | 24 |
|
25 | 25 |
/* Create a new EEPROM with (nwords * 2) bytes. */ |
26 |
a_eeprom *eeprom93xx_new(uint16_t nwords);
|
|
26 |
eeprom_t *eeprom93xx_new(uint16_t nwords);
|
|
27 | 27 |
|
28 | 28 |
/* Destroy an existing EEPROM. */ |
29 |
void eeprom93xx_free(a_eeprom *eeprom);
|
|
29 |
void eeprom93xx_free(eeprom_t *eeprom);
|
|
30 | 30 |
|
31 | 31 |
/* Read from the EEPROM. */ |
32 |
uint16_t eeprom93xx_read(a_eeprom *eeprom);
|
|
32 |
uint16_t eeprom93xx_read(eeprom_t *eeprom);
|
|
33 | 33 |
|
34 | 34 |
/* Write to the EEPROM. */ |
35 |
void eeprom93xx_write(a_eeprom *eeprom, int eecs, int eesk, int eedi);
|
|
35 |
void eeprom93xx_write(eeprom_t *eeprom, int eecs, int eesk, int eedi);
|
|
36 | 36 |
|
37 | 37 |
/* Get EEPROM data array. */ |
38 |
uint16_t *eeprom93xx_data(a_eeprom *eeprom);
|
|
38 |
uint16_t *eeprom93xx_data(eeprom_t *eeprom);
|
|
39 | 39 |
|
40 | 40 |
#endif /* EEPROM93XX_H */ |
Also available in: Unified diff