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 | |
Hans Verkuil | 3300101 | 2013-05-29 06:59:45 -0300 | [diff] [blame] | 4 | enum tveeprom_audio_processor { |
| 5 | /* No audio processor present */ |
| 6 | TVEEPROM_AUDPROC_NONE, |
| 7 | /* The audio processor is internal to the video processor */ |
| 8 | TVEEPROM_AUDPROC_INTERNAL, |
| 9 | /* The audio processor is a MSPXXXX device */ |
| 10 | TVEEPROM_AUDPROC_MSP, |
| 11 | /* The audio processor is another device */ |
| 12 | TVEEPROM_AUDPROC_OTHER, |
| 13 | }; |
| 14 | |
Joe Perches | 574e2af | 2013-08-01 16:17:48 -0700 | [diff] [blame^] | 15 | #include <linux/if_ether.h> |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | struct tveeprom { |
| 18 | u32 has_radio; |
Hans Verkuil | b654fcdc | 2008-07-22 15:50:31 -0300 | [diff] [blame] | 19 | /* If has_ir == 0, then it is unknown what the IR capabilities are, |
| 20 | otherwise: |
| 21 | bit 0: 1 (= IR capabilities are known) |
| 22 | bit 1: IR receiver present |
| 23 | bit 2: IR transmitter (blaster) present */ |
| 24 | u32 has_ir; |
Steven Toth | 3ca0ea9 | 2005-12-01 00:51:27 -0800 | [diff] [blame] | 25 | u32 has_MAC_address; /* 0: no MAC, 1: MAC present, 2: unknown */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | |
| 27 | u32 tuner_type; |
| 28 | u32 tuner_formats; |
Hans Verkuil | f95006f | 2005-12-01 00:51:42 -0800 | [diff] [blame] | 29 | u32 tuner_hauppauge_model; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 30 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 31 | u32 tuner2_type; |
| 32 | u32 tuner2_formats; |
Hans Verkuil | f95006f | 2005-12-01 00:51:42 -0800 | [diff] [blame] | 33 | u32 tuner2_hauppauge_model; |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | u32 digitizer; |
| 36 | u32 digitizer_formats; |
| 37 | |
| 38 | u32 audio_processor; |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 39 | u32 decoder_processor; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 40 | |
| 41 | u32 model; |
| 42 | u32 revision; |
| 43 | u32 serial_number; |
| 44 | char rev_str[5]; |
Joe Perches | 574e2af | 2013-08-01 16:17:48 -0700 | [diff] [blame^] | 45 | u8 MAC_address[ETH_ALEN]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
Mauro Carvalho Chehab | 0f97a93 | 2005-09-09 13:04:05 -0700 | [diff] [blame] | 48 | void tveeprom_hauppauge_analog(struct i2c_client *c, struct tveeprom *tvee, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | unsigned char *eeprom_data); |
| 50 | |
| 51 | int tveeprom_read(struct i2c_client *c, unsigned char *eedata, int len); |