diff options
Diffstat (limited to 'include/linux/dvb')
-rw-r--r-- | include/linux/dvb/frontend.h | 112 | ||||
-rw-r--r-- | include/linux/dvb/version.h | 4 |
2 files changed, 112 insertions, 4 deletions
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index c8cbd90ba375..79a8ed8e6a7d 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
@@ -62,6 +62,7 @@ typedef enum fe_caps { | |||
62 | FE_CAN_HIERARCHY_AUTO = 0x100000, | 62 | FE_CAN_HIERARCHY_AUTO = 0x100000, |
63 | FE_CAN_8VSB = 0x200000, | 63 | FE_CAN_8VSB = 0x200000, |
64 | FE_CAN_16VSB = 0x400000, | 64 | FE_CAN_16VSB = 0x400000, |
65 | FE_HAS_EXTENDED_CAPS = 0x800000, // We need more bitspace for newer APIs, indicate this. | ||
65 | FE_NEEDS_BENDING = 0x20000000, // not supported anymore, don't use (frontend requires frequency bending) | 66 | FE_NEEDS_BENDING = 0x20000000, // not supported anymore, don't use (frontend requires frequency bending) |
66 | FE_CAN_RECOVER = 0x40000000, // frontend can recover from a cable unplug automatically | 67 | FE_CAN_RECOVER = 0x40000000, // frontend can recover from a cable unplug automatically |
67 | FE_CAN_MUTE_TS = 0x80000000 // frontend can stop spurious TS data output | 68 | FE_CAN_MUTE_TS = 0x80000000 // frontend can stop spurious TS data output |
@@ -147,7 +148,9 @@ typedef enum fe_code_rate { | |||
147 | FEC_6_7, | 148 | FEC_6_7, |
148 | FEC_7_8, | 149 | FEC_7_8, |
149 | FEC_8_9, | 150 | FEC_8_9, |
150 | FEC_AUTO | 151 | FEC_AUTO, |
152 | FEC_3_5, | ||
153 | FEC_9_10, | ||
151 | } fe_code_rate_t; | 154 | } fe_code_rate_t; |
152 | 155 | ||
153 | 156 | ||
@@ -160,7 +163,11 @@ typedef enum fe_modulation { | |||
160 | QAM_256, | 163 | QAM_256, |
161 | QAM_AUTO, | 164 | QAM_AUTO, |
162 | VSB_8, | 165 | VSB_8, |
163 | VSB_16 | 166 | VSB_16, |
167 | PSK_8, | ||
168 | APSK_16, | ||
169 | APSK_32, | ||
170 | DQPSK, | ||
164 | } fe_modulation_t; | 171 | } fe_modulation_t; |
165 | 172 | ||
166 | typedef enum fe_transmit_mode { | 173 | typedef enum fe_transmit_mode { |
@@ -239,6 +246,107 @@ struct dvb_frontend_event { | |||
239 | struct dvb_frontend_parameters parameters; | 246 | struct dvb_frontend_parameters parameters; |
240 | }; | 247 | }; |
241 | 248 | ||
249 | /* S2API Commands */ | ||
250 | #define DTV_UNDEFINED 0 | ||
251 | #define DTV_TUNE 1 | ||
252 | #define DTV_CLEAR 2 | ||
253 | #define DTV_FREQUENCY 3 | ||
254 | #define DTV_MODULATION 4 | ||
255 | #define DTV_BANDWIDTH_HZ 5 | ||
256 | #define DTV_INVERSION 6 | ||
257 | #define DTV_DISEQC_MASTER 7 | ||
258 | #define DTV_SYMBOL_RATE 8 | ||
259 | #define DTV_INNER_FEC 9 | ||
260 | #define DTV_VOLTAGE 10 | ||
261 | #define DTV_TONE 11 | ||
262 | #define DTV_PILOT 12 | ||
263 | #define DTV_ROLLOFF 13 | ||
264 | #define DTV_DISEQC_SLAVE_REPLY 14 | ||
265 | |||
266 | /* Basic enumeration set for querying unlimited capabilities */ | ||
267 | #define DTV_FE_CAPABILITY_COUNT 15 | ||
268 | #define DTV_FE_CAPABILITY 16 | ||
269 | #define DTV_DELIVERY_SYSTEM 17 | ||
270 | |||
271 | #define DTV_API_VERSION 35 | ||
272 | #define DTV_API_VERSION 35 | ||
273 | #define DTV_CODE_RATE_HP 36 | ||
274 | #define DTV_CODE_RATE_LP 37 | ||
275 | #define DTV_GUARD_INTERVAL 38 | ||
276 | #define DTV_TRANSMISSION_MODE 39 | ||
277 | #define DTV_HIERARCHY 40 | ||
278 | |||
279 | #define DTV_MAX_COMMAND DTV_HIERARCHY | ||
280 | |||
281 | typedef enum fe_pilot { | ||
282 | PILOT_ON, | ||
283 | PILOT_OFF, | ||
284 | PILOT_AUTO, | ||
285 | } fe_pilot_t; | ||
286 | |||
287 | typedef enum fe_rolloff { | ||
288 | ROLLOFF_35, /* Implied value in DVB-S, default for DVB-S2 */ | ||
289 | ROLLOFF_20, | ||
290 | ROLLOFF_25, | ||
291 | ROLLOFF_AUTO, | ||
292 | } fe_rolloff_t; | ||
293 | |||
294 | typedef enum fe_delivery_system { | ||
295 | SYS_UNDEFINED, | ||
296 | SYS_DVBC_ANNEX_AC, | ||
297 | SYS_DVBC_ANNEX_B, | ||
298 | SYS_DVBT, | ||
299 | SYS_DSS, | ||
300 | SYS_DVBS, | ||
301 | SYS_DVBS2, | ||
302 | SYS_DVBH, | ||
303 | SYS_ISDBT, | ||
304 | SYS_ISDBS, | ||
305 | SYS_ISDBC, | ||
306 | SYS_ATSC, | ||
307 | SYS_ATSCMH, | ||
308 | SYS_DMBTH, | ||
309 | SYS_CMMB, | ||
310 | SYS_DAB, | ||
311 | } fe_delivery_system_t; | ||
312 | |||
313 | struct dtv_cmds_h { | ||
314 | char *name; /* A display name for debugging purposes */ | ||
315 | |||
316 | __u32 cmd; /* A unique ID */ | ||
317 | |||
318 | /* Flags */ | ||
319 | __u32 set:1; /* Either a set or get property */ | ||
320 | __u32 buffer:1; /* Does this property use the buffer? */ | ||
321 | __u32 reserved:30; /* Align */ | ||
322 | }; | ||
323 | |||
324 | struct dtv_property { | ||
325 | __u32 cmd; | ||
326 | __u32 reserved[3]; | ||
327 | union { | ||
328 | __u32 data; | ||
329 | struct { | ||
330 | __u8 data[32]; | ||
331 | __u32 len; | ||
332 | __u32 reserved1[3]; | ||
333 | void *reserved2; | ||
334 | } buffer; | ||
335 | } u; | ||
336 | int result; | ||
337 | } __attribute__ ((packed)); | ||
338 | |||
339 | /* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */ | ||
340 | #define DTV_IOCTL_MAX_MSGS 64 | ||
341 | |||
342 | struct dtv_properties { | ||
343 | __u32 num; | ||
344 | struct dtv_property *props; | ||
345 | }; | ||
346 | |||
347 | #define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties) | ||
348 | #define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties) | ||
349 | |||
242 | 350 | ||
243 | /** | 351 | /** |
244 | * When set, this flag will disable any zigzagging or other "normal" tuning | 352 | * When set, this flag will disable any zigzagging or other "normal" tuning |
diff --git a/include/linux/dvb/version.h b/include/linux/dvb/version.h index 126e0c26cb09..25b823b81734 100644 --- a/include/linux/dvb/version.h +++ b/include/linux/dvb/version.h | |||
@@ -23,7 +23,7 @@ | |||
23 | #ifndef _DVBVERSION_H_ | 23 | #ifndef _DVBVERSION_H_ |
24 | #define _DVBVERSION_H_ | 24 | #define _DVBVERSION_H_ |
25 | 25 | ||
26 | #define DVB_API_VERSION 3 | 26 | #define DVB_API_VERSION 5 |
27 | #define DVB_API_VERSION_MINOR 2 | 27 | #define DVB_API_VERSION_MINOR 0 |
28 | 28 | ||
29 | #endif /*_DVBVERSION_H_*/ | 29 | #endif /*_DVBVERSION_H_*/ |