diff options
author | Abylay Ospan <aospan@netup.ru> | 2009-03-03 09:00:18 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:04 -0400 |
commit | b45c0551f94dbc160e94f48a034a51312acec81d (patch) | |
tree | 1a9703ec1a055550de2874ed8ffc0e4e2bdcbcea /drivers/media/video/cx23885/netup-eeprom.h | |
parent | c253a17126d6e841720d5926c6d426745693676b (diff) |
V4L/DVB (10797): Add EEPROM code for NetUP Dual DVB-S2 CI card.
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/netup-eeprom.h')
-rw-r--r-- | drivers/media/video/cx23885/netup-eeprom.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/netup-eeprom.h b/drivers/media/video/cx23885/netup-eeprom.h new file mode 100644 index 000000000000..13926e18feba --- /dev/null +++ b/drivers/media/video/cx23885/netup-eeprom.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * netup-eeprom.h | ||
3 | * | ||
4 | * 24LC02 EEPROM driver in conjunction with NetUP Dual DVB-S2 CI card | ||
5 | * | ||
6 | * Copyright (C) 2009 NetUP Inc. | ||
7 | * Copyright (C) 2009 Abylay Ospan <aospan@netup.ru> | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or modify | ||
10 | * it under the terms of the GNU General Public License as published by | ||
11 | * the Free Software Foundation; either version 2 of the License, or | ||
12 | * (at your option) any later version. | ||
13 | * | ||
14 | * This program is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * | ||
18 | * GNU General Public License for more details. | ||
19 | * | ||
20 | * You should have received a copy of the GNU General Public License | ||
21 | * along with this program; if not, write to the Free Software | ||
22 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
23 | */ | ||
24 | |||
25 | #ifndef NETUP_EEPROM_H | ||
26 | #define NETUP_EEPROM_H | ||
27 | |||
28 | struct netup_port_info { | ||
29 | u8 mac[6];/* card MAC address */ | ||
30 | }; | ||
31 | |||
32 | struct netup_card_info { | ||
33 | struct netup_port_info port[2];/* ports - 1,2 */ | ||
34 | u8 rev;/* card revision */ | ||
35 | }; | ||
36 | |||
37 | extern int netup_eeprom_read(struct i2c_adapter *i2c_adap, u8 addr); | ||
38 | extern int netup_eeprom_write(struct i2c_adapter *i2c_adap, u8 addr, u8 data); | ||
39 | extern void netup_get_card_info(struct i2c_adapter *i2c_adap, | ||
40 | struct netup_card_info *cinfo); | ||
41 | |||
42 | #endif | ||