#ifndef I2C_EEPROM_H_
#define I2C_EEPROM_H_

#define I2C_PAGE_SIZE_24256 	64
#define I2C_PAGE_NUM_24256		512
#define I2C_CHIP_SIZE_24256 	(I2C_PAGE_NUM_24256*I2C_PAGE_SIZE_24512)

#define I2C_PAGE_SIZE_24512 	128
#define I2C_PAGE_NUM_24512		512
#define I2C_CHIP_SIZE_24512 	(I2C_PAGE_NUM_24512*I2C_PAGE_SIZE_24512)

#define I2C_PAGE_SIZE_24M01 	256
#define I2C_PAGE_NUM_24M01		512
#define I2C_CHIP_SIZE_24M01 	(I2C_PAGE_NUM_24M01*I2C_PAGE_SIZE_24M01)

extern unsigned int I2C_byte_write_via_page(unsigned int chip_cs, unsigned int addr, unsigned char *p, unsigned int len);
extern unsigned int I2C_page_write(unsigned int chip_cs, unsigned int addr, unsigned char *p);
extern unsigned int I2C_page_read(unsigned int chip_cs, unsigned int addr, unsigned char *p, unsigned int len);

#endif
