f-stack/dpdk/drivers/raw/ifpga/base/opae_at24_eeprom.h

15 lines
406 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2019 Intel Corporation
*/
#define AT24C512_PAGE_SIZE 128
#define AT24C512_IO_LIMIT 128
#define AT24512_SLAVE_ADDR 0x51
int at24_eeprom_read(struct altera_i2c_dev *dev, unsigned int slave_addr,
u32 offset, u8 *buf, int count);
int at24_eeprom_write(struct altera_i2c_dev *dev, unsigned int slave_addr,
u32 offset, u8 *buf, int count);