/** * wimax_i2c.h * * EEPROM access functions */ #ifndef __WIMAX_I2C_H__ #define __WIMAX_I2C_H__ //#define DRIVER_BIT_BANG #include #define WIMAX_BOOTIMAGE_PATH "/system/etc/wimax_boot.bin" struct boot_image_data { unsigned int size; unsigned int address; unsigned int offset; struct mutex lock; unsigned char *data; }; /* Write WiMAX boot image to EEPROM */ int eeprom_write_boot(void); /* Write HW rev to EEPROM */ int eeprom_write_rev(void); /* Erase WiMAX certification */ void eeprom_erase_cert(void); /* Check WiMAX cerification exist or not */ int eeprom_check_cert(void); /* Check WiMAX calibration done or not */ int eeprom_check_cal(void); /* Read WiMAX boot image */ void eeprom_read_boot(void); /* Read entire EEPROM data */ void eeprom_read_all(void); /* Erase entire EEPROM data */ void eeprom_erase_all(void); #ifndef DRIVER_BIT_BANG /* Initialize i2c-gpio driver for eeprom*/ int wmxeeprom_init(void); /* Remove the eeprom i2c-gpio driver */ void wmxeeprom_exit(void); #endif #endif /* __WIMAX_I2C_H__ */