brintos

brintos / linux-shallow public Read only

0
0
Text · 707 B · 549a033 Raw
29 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * netup-eeprom.h4 *5 * 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card6 *7 * Copyright (C) 2009 NetUP Inc.8 * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru>9 */10 11#ifndef NETUP_EEPROM_H12#define NETUP_EEPROM_H13 14struct netup_port_info {15	u8 mac[6];/* card MAC address */16};17 18struct netup_card_info {19	struct netup_port_info port[2];/* ports - 1,2 */20	u8 rev;/* card revision */21};22 23extern int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr);24extern int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data);25extern void netup_get_card_info(struct i2c_adapter *i2c_adap,26				struct netup_card_info *cinfo);27 28#endif29