18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci Retrieve encoded MAC address from ATMEL ttpci_eeprom serial 2-wire EEPROM, 48c2ecf20Sopenharmony_ci decode it and store it in associated adapter net device 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci Robert Schlabbach GMX 78c2ecf20Sopenharmony_ci Michael Glaum KVH Industries 88c2ecf20Sopenharmony_ci Holger Waechtler Convergence 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci*/ 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#ifndef __TTPCI_EEPROM_H__ 148c2ecf20Sopenharmony_ci#define __TTPCI_EEPROM_H__ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#include <linux/types.h> 178c2ecf20Sopenharmony_ci#include <linux/i2c.h> 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciextern int ttpci_eeprom_decode_mac(u8 *decodedMAC, u8 *encodedMAC); 208c2ecf20Sopenharmony_ciextern int ttpci_eeprom_parse_mac(struct i2c_adapter *adapter, u8 *propsed_mac); 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif 23