blob: 97930081699fca2b4baf3cb547a293c73e70f39a [file] [log] [blame]
Mauro Carvalho Chehabac19ecc2005-06-23 22:05:09 -07001/*
Mauro Carvalho Chehabac19ecc2005-06-23 22:05:09 -07002 */
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004struct tveeprom {
5 u32 has_radio;
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -07006 u32 has_ir; /* 0: no IR, 1: IR present, 2: unknown */
Steven Toth3ca0ea92005-12-01 00:51:27 -08007 u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9 u32 tuner_type;
10 u32 tuner_formats;
11
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -070012 u32 tuner2_type;
13 u32 tuner2_formats;
14
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 u32 digitizer;
16 u32 digitizer_formats;
17
18 u32 audio_processor;
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -070019 u32 decoder_processor;
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21 u32 model;
22 u32 revision;
23 u32 serial_number;
24 char rev_str[5];
Steven Toth3ca0ea92005-12-01 00:51:27 -080025 u8 MAC_address[6];
Linus Torvalds1da177e2005-04-16 15:20:36 -070026};
27
Mauro Carvalho Chehab0f97a932005-09-09 13:04:05 -070028void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee,
Linus Torvalds1da177e2005-04-16 15:20:36 -070029 unsigned char *eeprom_data);
30
31int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len);