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