Mauro Carvalho Chehab | ac19ecc | 2005-06-23 22:05:09 -0700 | [diff] [blame] | 1 | /* |
Mauro Carvalho Chehab | ac19ecc | 2005-06-23 22:05:09 -0700 | [diff] [blame] | 2 | */ |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | struct tveeprom { |
| 5 | u32 has_radio; |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 6 | u32 has_ir; /* 0: no IR, 1: IR present, 2: unknown */ |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 7 | u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
| 9 | u32 tuner_type; |
| 10 | u32 tuner_formats; |
Hans Verkuil | f95006f | 2005-12-01 00:51:42 -0800 | [diff] [blame] | 11 | u32 tuner_hauppauge_model; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 13 | u32 tuner2_type; |
| 14 | u32 tuner2_formats; |
Hans Verkuil | f95006f | 2005-12-01 00:51:42 -0800 | [diff] [blame] | 15 | u32 tuner2_hauppauge_model; |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | u32 digitizer; |
| 18 | u32 digitizer_formats; |
| 19 | |
| 20 | u32 audio_processor; |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 21 | u32 decoder_processor; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
| 23 | u32 model; |
| 24 | u32 revision; |
| 25 | u32 serial_number; |
| 26 | char rev_str[5]; |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 27 | u8 MAC_address[6]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | }; |
| 29 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 30 | void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | unsigned char *eeprom_data); |
| 32 | |
| 33 | int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len); |