Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / inc / k2 / eeprom_api.h
1 #ifndef __EEPROM_API_H__
2 #define __EEPROM_API_H__
3
4 typedef enum {
5         RET_SUCCESS = 0, 
6         RET_NOT_INIT,
7         RET_NOT_EXIST,
8         RET_EEP_CORRUPT,
9         RET_EEP_OVERFLOW,
10     
11         // add return code from here    
12         RET_UNKNOWN
13 } T_EEP_RET;
14
15
16 /*!- interface of eeprom access
17  *
18  */
19 struct eep_api {
20         void (* _eep_init)(void);
21         T_EEP_RET (* _eep_read)(uint16_t, uint16_t, uint16_t *);
22         T_EEP_RET (* _eep_write)(uint16_t, uint16_t, uint16_t *);
23         T_EEP_RET (*_eep_is_exist)(void);
24 };
25
26 #endif /* __EEPROM_API_H__ */
27