1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card
7 * Copyright (C) 2009 NetUP Inc.
8 * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>
11 #ifndef NETUP_EEPROM_H
12 #define NETUP_EEPROM_H
14 struct netup_port_info
{
15 u8 mac
[6];/* card MAC address */
18 struct netup_card_info
{
19 struct netup_port_info port
[2];/* ports - 1,2 */
20 u8 rev
;/* card revision */
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
);