xref: /OK3568_Linux_fs/kernel/drivers/media/pci/ttpci/ttpci-eeprom.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun     Retrieve encoded MAC address from ATMEL ttpci_eeprom serial 2-wire EEPROM,
4*4882a593Smuzhiyun     decode it and store it in associated adapter net device
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun     Robert Schlabbach	GMX
7*4882a593Smuzhiyun     Michael Glaum	KVH Industries
8*4882a593Smuzhiyun     Holger Waechtler	Convergence
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #ifndef __TTPCI_EEPROM_H__
14*4882a593Smuzhiyun #define __TTPCI_EEPROM_H__
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #include <linux/types.h>
17*4882a593Smuzhiyun #include <linux/i2c.h>
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun extern int ttpci_eeprom_decode_mac(u8 *decodedMAC, u8 *encodedMAC);
20*4882a593Smuzhiyun extern int ttpci_eeprom_parse_mac(struct i2c_adapter *adapter, u8 *propsed_mac);
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif
23