Path: blob/master/drivers/media/video/cx23885/netup-eeprom.h
17681 views
/*1* netup-eeprom.h2*3* 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card4*5* Copyright (C) 2009 NetUP Inc.6* Copyright (C) 2009 Abylay Ospan <[email protected]>7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (at your option) any later version.12*13* This program is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16*17* GNU General Public License for more details.18*19* You should have received a copy of the GNU General Public License20* along with this program; if not, write to the Free Software21* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.22*/2324#ifndef NETUP_EEPROM_H25#define NETUP_EEPROM_H2627struct netup_port_info {28u8 mac[6];/* card MAC address */29};3031struct netup_card_info {32struct netup_port_info port[2];/* ports - 1,2 */33u8 rev;/* card revision */34};3536extern int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr);37extern int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data);38extern void netup_get_card_info(struct i2c_adapter *i2c_adap,39struct netup_card_info *cinfo);4041#endif424344