xref: /linux/drivers/media/pci/cx23885/netup-eeprom.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * netup-eeprom.h
4  *
5  * 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card
6  *
7  * Copyright (C) 2009 NetUP Inc.
8  * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
9  */
10 
11 #ifndef NETUP_EEPROM_H
12 #define NETUP_EEPROM_H
13 
14 struct netup_port_info {
15 	u8 mac[6];/* card MAC address */
16 };
17 
18 struct netup_card_info {
19 	struct netup_port_info port[2];/* ports - 1,2 */
20 	u8 rev;/* card revision */
21 };
22 
23 extern int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr);
24 extern int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data);
25 extern void netup_get_card_info(struct i2c_adapter *i2c_adap,
26 				struct netup_card_info *cinfo);
27 
28 #endif
29