This program uses the i2c /dev interface to read the contents of EEPROMs and display it to the user in HEX and ASCII. It also has a mode that can display data in label:value pairs. That mode is used for board detection in the rc script to start the right i2c drivers for the board. Change-Id: I0bf5b13ffab5a89533c762d6881a145cf7f14914
9 lines
214 B
C
9 lines
214 B
C
#ifndef __EEPROMREAD_H
|
|
#define __EEPROMREAD_H
|
|
|
|
int eeprom_read(int fd, i2c_addr_t addr, uint16_t memaddr, void *buf,
|
|
size_t buflen);
|
|
int board_info(int fd, i2c_addr_t address);
|
|
|
|
#endif /* __EEPROMREAD_H */
|