Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vendorcmds.h
Go to the documentation of this file.
1 #ifndef VENDOR_CMD_H_
2 #define VENDOR_CMD_H_
3 
4 #define BULK_ALTERNATE_IFACE (2)
5 #define ISO_3K_BULK_ALTERNATE_IFACE (1)
6 #define REQ_SET_CMD (0X00)
7 #define REQ_GET_CMD (0X80)
8 
10  TLG_TUNE_ASTD_NONE = 0x00000000,
11  TLG_TUNE_ASTD_A2 = 0x00000001,
12  TLG_TUNE_ASTD_NICAM = 0x00000002,
13  TLG_TUNE_ASTD_EIAJ = 0x00000004,
14  TLG_TUNE_ASTD_BTSC = 0x00000008,
15  TLG_TUNE_ASTD_FM_US = 0x00000010,
16  TLG_TUNE_ASTD_FM_EUR = 0x00000020,
17  TLG_TUNE_ASTD_ALL = 0x0000003f
18 };
19 
20 /*
21  * identifiers for Custom Parameter messages.
22  * @typedef cmd_custom_param_id_t
23  */
33 };
34 
36  uint16_t param_id; /* Parameter identifier */
37  uint16_t param_value; /* Parameter value */
38 };
39 
41  uint32_t ber_rate; /* BER sample rate in seconds */
42 };
43 
48  uint32_t sig_strength; /* milliDb */
49  uint32_t tv_audio_chan; /* mono/stereo/sap*/
50  uint32_t mvision_stat; /* macrovision status */
51 };
52 
54  uint32_t sig_present; /* Boolean*/
55  uint32_t sig_locked; /* Boolean */
56  uint32_t sig_lock_busy; /* Boolean (Can this time-out?) */
57  uint32_t sig_strength; /* milliDb*/
58 };
59 
61  uint32_t sig_present; /* Boolean*/
62  uint32_t sig_locked; /* Boolean */
63  uint32_t sig_lock_busy; /* Boolean */
65  uint32_t sig_strength; /* milliDb*/
66 };
67 
71 };
72 
76  TLG_TUNE_TVAUDIO_MODE_LANG_A = 0x00000010,/* Primary language*/
77  TLG_TUNE_TVAUDIO_MODE_LANG_B = 0x00000020,/* 2nd avail language*/
79 };
80 
81 
83  ATV_AUDIO_RATE_NONE = 0x00,/* Audio not supported*/
84  ATV_AUDIO_RATE_32K = 0x01,/* Audio rate = 32 KHz*/
85  ATV_AUDIO_RATE_48K = 0x02, /* Audio rate = 48 KHz*/
86  ATV_AUDIO_RATE_31_25K = 0x04 /* Audio rate = 31.25KHz */
87 };
88 
90  TLG_TUNE_VID_RES_NONE = 0x00000000,
91  TLG_TUNE_VID_RES_720 = 0x00000001,
92  TLG_TUNE_VID_RES_704 = 0x00000002,
93  TLG_TUNE_VID_RES_360 = 0x00000004
94 };
95 
100 };
101 
103  TLG_EXT_AUDIO_NONE = 0x00,/* No external audio input supported */
104  TLG_EXT_AUDIO_LR = 0x01/* LR external audio inputs supported*/
105 };
106 
107 enum {
108  TLG_MODE_NONE = 0x00, /* No Mode specified*/
109  TLG_MODE_ANALOG_TV = 0x01, /* Analog Television mode*/
110  TLG_MODE_ANALOG_TV_UNCOMP = 0x01, /* Analog Television mode*/
111  TLG_MODE_ANALOG_TV_COMP = 0x02, /* Analog TV mode (compressed)*/
112  TLG_MODE_FM_RADIO = 0x04, /* FM Radio mode*/
113  TLG_MODE_DVB_T = 0x08, /* Digital TV (DVB-T)*/
114 };
115 
117  TLG_SIG_SRC_NONE = 0x00,/* Signal source not specified */
118  TLG_SIG_SRC_ANTENNA = 0x01,/* Signal src is: Antenna */
119  TLG_SIG_SRC_CABLE = 0x02,/* Signal src is: Coax Cable*/
120  TLG_SIG_SRC_SVIDEO = 0x04,/* Signal src is: S_VIDEO */
121  TLG_SIG_SRC_COMPOSITE = 0x08 /* Signal src is: Composite Video */
122 };
123 
125  TLG_TUNE_VSTD_NONE = 0x00000000,
126  TLG_TUNE_VSTD_NTSC_M = 0x00000001,
127  TLG_TUNE_VSTD_NTSC_M_J = 0x00000002,/* Japan */
128  TLG_TUNE_VSTD_PAL_B = 0x00000010,
129  TLG_TUNE_VSTD_PAL_D = 0x00000020,
130  TLG_TUNE_VSTD_PAL_G = 0x00000040,
131  TLG_TUNE_VSTD_PAL_H = 0x00000080,
132  TLG_TUNE_VSTD_PAL_I = 0x00000100,
133  TLG_TUNE_VSTD_PAL_M = 0x00000200,
134  TLG_TUNE_VSTD_PAL_N = 0x00000400,
135  TLG_TUNE_VSTD_SECAM_B = 0x00001000,
136  TLG_TUNE_VSTD_SECAM_D = 0x00002000,
137  TLG_TUNE_VSTD_SECAM_G = 0x00004000,
138  TLG_TUNE_VSTD_SECAM_H = 0x00008000,
139  TLG_TUNE_VSTD_SECAM_K = 0x00010000,
141  TLG_TUNE_VSTD_SECAM_L = 0x00040000,
144 };
145 
147  TLG_MODE_CAPS_NONE = 0x00, /* No Mode specified */
148  TLG_MODE_CAPS_ANALOG_TV_UNCOMP = 0x01, /* Analog TV mode */
149  TLG_MODE_CAPS_ANALOG_TV_COMP = 0x02, /* Analog TV (compressed)*/
150  TLG_MODE_CAPS_FM_RADIO = 0x04, /* FM Radio mode */
151  TLG_MODE_CAPS_DVB_T = 0x08, /* Digital TV (DVB-T) */
152 };
153 
156  GET_CHIP_ID = 0x01,
157  GET_FW_ID = 0x02,
158  PRODUCT_CAPS = 0x03,
159 
166  SGNL_SRC_SEL = 0x13,
167 
173 
178  VBI_DATA_SEL = 0x25,
185 
198 
202  TAKE_REQUEST = 0x43, /* Take effect of the command */
203  PLAY_SERVICE = 0x44, /* Play start or Play stop */
204  TUNER_STATUS = 0x45,
208 
209  SCAN_CAPS = 0x50,
210  SCAN_SETUP = 0x51,
211  SCAN_SERVICE = 0x52,
212  SCAN_STATS = 0x53,
213 
214  PID_SET = 0x58,
215  PID_UNSET = 0x59,
216  PID_LIST = 0x5a,
217 
218  IRD_CAP = 0x60,
219  IRD_MODE_SEL = 0x61,
220  IRD_SETUP = 0x62,
221 
222  PTM_MODE_CAP = 0x70,
223  PTM_MODE_SEL = 0x71,
224  PTM_SERVICE = 0x72,
226  CMD_CHIP_RST = 0x74,
227 };
228 
229 enum tlg_bw {
230  TLG_BW_5 = 5,
231  TLG_BW_6 = 6,
232  TLG_BW_7 = 7,
233  TLG_BW_8 = 8,
234  TLG_BW_12 = 12,
236 };
237 
242 };
243 #endif /* VENDOR_CMD_H_ */