xref: /minix3/minix/usr.bin/eepromread/eepromread.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 #ifndef __EEPROMREAD_H
2 #define __EEPROMREAD_H
3 
4 #include <sys/ioctl.h>
5 #include <minix/i2cdriver.h>
6 #include <minix/i2c.h>
7 
8 enum device_types { I2C_DEVICE, EEPROM_DEVICE };
9 #define DEFAULT_DEVICE I2C_DEVICE
10 
11 int eeprom_read(int fd, i2c_addr_t addr, uint16_t memaddr, void *buf,
12 		size_t buflen, int flags, enum device_types device_type);
13 
14 int board_info(int fd, i2c_addr_t address, int flags,
15 						enum device_types device_type);
16 
17 #endif /* __EEPROMREAD_H */
18