Michael Krufky | 7b0ac9c | 2006-01-13 14:10:25 -0200 | [diff] [blame] | 1 | /* |
| 2 | * descriptions for simple tuners. |
| 3 | */ |
| 4 | |
| 5 | #ifndef __TUNER_TYPES_H__ |
| 6 | #define __TUNER_TYPES_H__ |
| 7 | |
| 8 | enum param_type { |
| 9 | TUNER_PARAM_TYPE_RADIO, \ |
| 10 | TUNER_PARAM_TYPE_PAL, \ |
| 11 | TUNER_PARAM_TYPE_SECAM, \ |
Michael Krufky | c943aa8 | 2006-01-13 14:10:26 -0200 | [diff] [blame] | 12 | TUNER_PARAM_TYPE_NTSC |
Michael Krufky | 7b0ac9c | 2006-01-13 14:10:25 -0200 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | struct tuner_range { |
| 16 | unsigned short limit; |
| 17 | unsigned char cb; |
| 18 | }; |
| 19 | |
| 20 | struct tuner_params { |
| 21 | enum param_type type; |
Michael Krufky | 8f0bb9c | 2006-01-15 12:46:18 -0200 | [diff] [blame^] | 22 | unsigned int tda988x; |
Michael Krufky | 7b0ac9c | 2006-01-13 14:10:25 -0200 | [diff] [blame] | 23 | unsigned char config; /* to be moved into struct tuner_range for dvb-pll merge */ |
| 24 | |
| 25 | unsigned int count; |
| 26 | struct tuner_range *ranges; |
| 27 | }; |
| 28 | |
| 29 | struct tunertype { |
| 30 | char *name; |
Michael Krufky | 7b0ac9c | 2006-01-13 14:10:25 -0200 | [diff] [blame] | 31 | struct tuner_params *params; |
| 32 | }; |
| 33 | |
| 34 | extern struct tunertype tuners[]; |
| 35 | extern unsigned const int tuner_count; |
| 36 | |
| 37 | #endif |