1 /* 2 * frontend.h 3 * 4 * Copyright (C) 2000 Marcus Metzler <[email protected]> 5 * Ralph Metzler <[email protected]> 6 * Holger Waechtler <[email protected]> 7 * Andre Draszik <[email protected]> 8 * for convergence integrated media GmbH 9 * 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Lesser General Public License 12 * as published by the Free Software Foundation; either version 2.1 13 * of the License, or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU Lesser General Public License 21 * along with this program; if not, write to the Free Software 22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 23 * 24 */ 25 26 #ifndef _DVBFRONTEND_H_ 27 #define _DVBFRONTEND_H_ 28 29 #include <linux/types.h> 30 31 enum fe_type { 32 FE_QPSK, 33 FE_QAM, 34 FE_OFDM, 35 FE_ATSC 36 }; 37 38 typedef enum fe_type fe_type_t; 39 40 41 enum fe_caps { 42 FE_IS_STUPID = 0, 43 FE_CAN_INVERSION_AUTO = 0x1, 44 FE_CAN_FEC_1_2 = 0x2, 45 FE_CAN_FEC_2_3 = 0x4, 46 FE_CAN_FEC_3_4 = 0x8, 47 FE_CAN_FEC_4_5 = 0x10, 48 FE_CAN_FEC_5_6 = 0x20, 49 FE_CAN_FEC_6_7 = 0x40, 50 FE_CAN_FEC_7_8 = 0x80, 51 FE_CAN_FEC_8_9 = 0x100, 52 FE_CAN_FEC_AUTO = 0x200, 53 FE_CAN_QPSK = 0x400, 54 FE_CAN_QAM_16 = 0x800, 55 FE_CAN_QAM_32 = 0x1000, 56 FE_CAN_QAM_64 = 0x2000, 57 FE_CAN_QAM_128 = 0x4000, 58 FE_CAN_QAM_256 = 0x8000, 59 FE_CAN_QAM_AUTO = 0x10000, 60 FE_CAN_TRANSMISSION_MODE_AUTO = 0x20000, 61 FE_CAN_BANDWIDTH_AUTO = 0x40000, 62 FE_CAN_GUARD_INTERVAL_AUTO = 0x80000, 63 FE_CAN_HIERARCHY_AUTO = 0x100000, 64 FE_CAN_8VSB = 0x200000, 65 FE_CAN_16VSB = 0x400000, 66 FE_HAS_EXTENDED_CAPS = 0x800000, /* We need more bitspace for newer APIs, indicate this. */ 67 FE_CAN_MULTISTREAM = 0x4000000, /* frontend supports multistream filtering */ 68 FE_CAN_TURBO_FEC = 0x8000000, /* frontend supports "turbo fec modulation" */ 69 FE_CAN_2G_MODULATION = 0x10000000, /* frontend supports "2nd generation modulation" (DVB-S2) */ 70 FE_NEEDS_BENDING = 0x20000000, /* not supported anymore, don't use (frontend requires frequency bending) */ 71 FE_CAN_RECOVER = 0x40000000, /* frontend can recover from a cable unplug automatically */ 72 FE_CAN_MUTE_TS = 0x80000000 /* frontend can stop spurious TS data output */ 73 }; 74 75 typedef enum fe_caps fe_caps_t; 76 77 78 struct dvb_frontend_info { 79 char name[128]; 80 fe_type_t type; /* DEPRECATED. Use DTV_ENUM_DELSYS instead */ 81 __u32 frequency_min; 82 __u32 frequency_max; 83 __u32 frequency_stepsize; 84 __u32 frequency_tolerance; 85 __u32 symbol_rate_min; 86 __u32 symbol_rate_max; 87 __u32 symbol_rate_tolerance; /* ppm */ 88 __u32 notifier_delay; /* DEPRECATED */ 89 fe_caps_t caps; 90 }; 91 92 93 /** 94 * Check out the DiSEqC bus spec available on http://www.eutelsat.org/ for 95 * the meaning of this struct... 96 */ 97 struct dvb_diseqc_master_cmd { 98 __u8 msg [6]; /* { framing, address, command, data [3] } */ 99 __u8 msg_len; /* valid values are 3...6 */ 100 }; 101 102 103 struct dvb_diseqc_slave_reply { 104 __u8 msg [4]; /* { framing, data [3] } */ 105 __u8 msg_len; /* valid values are 0...4, 0 means no msg */ 106 int timeout; /* return from ioctl after timeout ms with */ 107 }; /* errorcode when no message was received */ 108 109 110 enum fe_sec_voltage { 111 SEC_VOLTAGE_13, 112 SEC_VOLTAGE_18, 113 SEC_VOLTAGE_OFF 114 }; 115 116 typedef enum fe_sec_voltage fe_sec_voltage_t; 117 118 119 enum fe_sec_tone_mode { 120 SEC_TONE_ON, 121 SEC_TONE_OFF 122 }; 123 124 typedef enum fe_sec_tone_mode fe_sec_tone_mode_t; 125 126 127 enum fe_sec_mini_cmd { 128 SEC_MINI_A, 129 SEC_MINI_B 130 }; 131 132 typedef enum fe_sec_mini_cmd fe_sec_mini_cmd_t; 133 134 135 /** 136 * enum fe_status - enumerates the possible frontend status 137 * @FE_HAS_SIGNAL: found something above the noise level 138 * @FE_HAS_CARRIER: found a DVB signal 139 * @FE_HAS_VITERBI: FEC is stable 140 * @FE_HAS_SYNC: found sync bytes 141 * @FE_HAS_LOCK: everything's working 142 * @FE_TIMEDOUT: no lock within the last ~2 seconds 143 * @FE_REINIT: frontend was reinitialized, application is recommended 144 * to reset DiSEqC, tone and parameters 145 */ 146 147 enum fe_status { 148 FE_HAS_SIGNAL = 0x01, 149 FE_HAS_CARRIER = 0x02, 150 FE_HAS_VITERBI = 0x04, 151 FE_HAS_SYNC = 0x08, 152 FE_HAS_LOCK = 0x10, 153 FE_TIMEDOUT = 0x20, 154 FE_REINIT = 0x40, 155 }; 156 157 typedef enum fe_status fe_status_t; 158 159 enum fe_spectral_inversion { 160 INVERSION_OFF, 161 INVERSION_ON, 162 INVERSION_AUTO 163 }; 164 165 typedef enum fe_spectral_inversion fe_spectral_inversion_t; 166 167 enum fe_code_rate { 168 FEC_NONE = 0, 169 FEC_1_2, 170 FEC_2_3, 171 FEC_3_4, 172 FEC_4_5, 173 FEC_5_6, 174 FEC_6_7, 175 FEC_7_8, 176 FEC_8_9, 177 FEC_AUTO, 178 FEC_3_5, 179 FEC_9_10, 180 FEC_2_5, 181 }; 182 183 typedef enum fe_code_rate fe_code_rate_t; 184 185 186 enum fe_modulation { 187 QPSK, 188 QAM_16, 189 QAM_32, 190 QAM_64, 191 QAM_128, 192 QAM_256, 193 QAM_AUTO, 194 VSB_8, 195 VSB_16, 196 PSK_8, 197 APSK_16, 198 APSK_32, 199 DQPSK, 200 QAM_4_NR, 201 }; 202 203 typedef enum fe_modulation fe_modulation_t; 204 205 enum fe_transmit_mode { 206 TRANSMISSION_MODE_2K, 207 TRANSMISSION_MODE_8K, 208 TRANSMISSION_MODE_AUTO, 209 TRANSMISSION_MODE_4K, 210 TRANSMISSION_MODE_1K, 211 TRANSMISSION_MODE_16K, 212 TRANSMISSION_MODE_32K, 213 TRANSMISSION_MODE_C1, 214 TRANSMISSION_MODE_C3780, 215 }; 216 217 typedef enum fe_transmit_mode fe_transmit_mode_t; 218 219 #if defined(__DVB_CORE__) || !defined (__KERNEL__) 220 enum fe_bandwidth { 221 BANDWIDTH_8_MHZ, 222 BANDWIDTH_7_MHZ, 223 BANDWIDTH_6_MHZ, 224 BANDWIDTH_AUTO, 225 BANDWIDTH_5_MHZ, 226 BANDWIDTH_10_MHZ, 227 BANDWIDTH_1_712_MHZ, 228 }; 229 230 typedef enum fe_bandwidth fe_bandwidth_t; 231 #endif 232 233 enum fe_guard_interval { 234 GUARD_INTERVAL_1_32, 235 GUARD_INTERVAL_1_16, 236 GUARD_INTERVAL_1_8, 237 GUARD_INTERVAL_1_4, 238 GUARD_INTERVAL_AUTO, 239 GUARD_INTERVAL_1_128, 240 GUARD_INTERVAL_19_128, 241 GUARD_INTERVAL_19_256, 242 GUARD_INTERVAL_PN420, 243 GUARD_INTERVAL_PN595, 244 GUARD_INTERVAL_PN945, 245 }; 246 247 typedef enum fe_guard_interval fe_guard_interval_t; 248 249 enum fe_hierarchy { 250 HIERARCHY_NONE, 251 HIERARCHY_1, 252 HIERARCHY_2, 253 HIERARCHY_4, 254 HIERARCHY_AUTO 255 }; 256 257 typedef enum fe_hierarchy fe_hierarchy_t; 258 259 enum fe_interleaving { 260 INTERLEAVING_NONE, 261 INTERLEAVING_AUTO, 262 INTERLEAVING_240, 263 INTERLEAVING_720, 264 }; 265 266 #if defined(__DVB_CORE__) || !defined (__KERNEL__) 267 struct dvb_qpsk_parameters { 268 __u32 symbol_rate; /* symbol rate in Symbols per second */ 269 fe_code_rate_t fec_inner; /* forward error correction (see above) */ 270 }; 271 272 struct dvb_qam_parameters { 273 __u32 symbol_rate; /* symbol rate in Symbols per second */ 274 fe_code_rate_t fec_inner; /* forward error correction (see above) */ 275 fe_modulation_t modulation; /* modulation type (see above) */ 276 }; 277 278 struct dvb_vsb_parameters { 279 fe_modulation_t modulation; /* modulation type (see above) */ 280 }; 281 282 struct dvb_ofdm_parameters { 283 fe_bandwidth_t bandwidth; 284 fe_code_rate_t code_rate_HP; /* high priority stream code rate */ 285 fe_code_rate_t code_rate_LP; /* low priority stream code rate */ 286 fe_modulation_t constellation; /* modulation type (see above) */ 287 fe_transmit_mode_t transmission_mode; 288 fe_guard_interval_t guard_interval; 289 fe_hierarchy_t hierarchy_information; 290 }; 291 292 293 struct dvb_frontend_parameters { 294 __u32 frequency; /* (absolute) frequency in Hz for QAM/OFDM/ATSC */ 295 /* intermediate frequency in kHz for QPSK */ 296 fe_spectral_inversion_t inversion; 297 union { 298 struct dvb_qpsk_parameters qpsk; 299 struct dvb_qam_parameters qam; 300 struct dvb_ofdm_parameters ofdm; 301 struct dvb_vsb_parameters vsb; 302 } u; 303 }; 304 305 struct dvb_frontend_event { 306 fe_status_t status; 307 struct dvb_frontend_parameters parameters; 308 }; 309 #endif 310 311 /* S2API Commands */ 312 #define DTV_UNDEFINED 0 313 #define DTV_TUNE 1 314 #define DTV_CLEAR 2 315 #define DTV_FREQUENCY 3 316 #define DTV_MODULATION 4 317 #define DTV_BANDWIDTH_HZ 5 318 #define DTV_INVERSION 6 319 #define DTV_DISEQC_MASTER 7 320 #define DTV_SYMBOL_RATE 8 321 #define DTV_INNER_FEC 9 322 #define DTV_VOLTAGE 10 323 #define DTV_TONE 11 324 #define DTV_PILOT 12 325 #define DTV_ROLLOFF 13 326 #define DTV_DISEQC_SLAVE_REPLY 14 327 328 /* Basic enumeration set for querying unlimited capabilities */ 329 #define DTV_FE_CAPABILITY_COUNT 15 330 #define DTV_FE_CAPABILITY 16 331 #define DTV_DELIVERY_SYSTEM 17 332 333 /* ISDB-T and ISDB-Tsb */ 334 #define DTV_ISDBT_PARTIAL_RECEPTION 18 335 #define DTV_ISDBT_SOUND_BROADCASTING 19 336 337 #define DTV_ISDBT_SB_SUBCHANNEL_ID 20 338 #define DTV_ISDBT_SB_SEGMENT_IDX 21 339 #define DTV_ISDBT_SB_SEGMENT_COUNT 22 340 341 #define DTV_ISDBT_LAYERA_FEC 23 342 #define DTV_ISDBT_LAYERA_MODULATION 24 343 #define DTV_ISDBT_LAYERA_SEGMENT_COUNT 25 344 #define DTV_ISDBT_LAYERA_TIME_INTERLEAVING 26 345 346 #define DTV_ISDBT_LAYERB_FEC 27 347 #define DTV_ISDBT_LAYERB_MODULATION 28 348 #define DTV_ISDBT_LAYERB_SEGMENT_COUNT 29 349 #define DTV_ISDBT_LAYERB_TIME_INTERLEAVING 30 350 351 #define DTV_ISDBT_LAYERC_FEC 31 352 #define DTV_ISDBT_LAYERC_MODULATION 32 353 #define DTV_ISDBT_LAYERC_SEGMENT_COUNT 33 354 #define DTV_ISDBT_LAYERC_TIME_INTERLEAVING 34 355 356 #define DTV_API_VERSION 35 357 358 #define DTV_CODE_RATE_HP 36 359 #define DTV_CODE_RATE_LP 37 360 #define DTV_GUARD_INTERVAL 38 361 #define DTV_TRANSMISSION_MODE 39 362 #define DTV_HIERARCHY 40 363 364 #define DTV_ISDBT_LAYER_ENABLED 41 365 366 #define DTV_STREAM_ID 42 367 #define DTV_ISDBS_TS_ID_LEGACY DTV_STREAM_ID 368 #define DTV_DVBT2_PLP_ID_LEGACY 43 369 370 #define DTV_ENUM_DELSYS 44 371 372 /* ATSC-MH */ 373 #define DTV_ATSCMH_FIC_VER 45 374 #define DTV_ATSCMH_PARADE_ID 46 375 #define DTV_ATSCMH_NOG 47 376 #define DTV_ATSCMH_TNOG 48 377 #define DTV_ATSCMH_SGN 49 378 #define DTV_ATSCMH_PRC 50 379 #define DTV_ATSCMH_RS_FRAME_MODE 51 380 #define DTV_ATSCMH_RS_FRAME_ENSEMBLE 52 381 #define DTV_ATSCMH_RS_CODE_MODE_PRI 53 382 #define DTV_ATSCMH_RS_CODE_MODE_SEC 54 383 #define DTV_ATSCMH_SCCC_BLOCK_MODE 55 384 #define DTV_ATSCMH_SCCC_CODE_MODE_A 56 385 #define DTV_ATSCMH_SCCC_CODE_MODE_B 57 386 #define DTV_ATSCMH_SCCC_CODE_MODE_C 58 387 #define DTV_ATSCMH_SCCC_CODE_MODE_D 59 388 389 #define DTV_INTERLEAVING 60 390 #define DTV_LNA 61 391 392 /* Quality parameters */ 393 #define DTV_STAT_SIGNAL_STRENGTH 62 394 #define DTV_STAT_CNR 63 395 #define DTV_STAT_PRE_ERROR_BIT_COUNT 64 396 #define DTV_STAT_PRE_TOTAL_BIT_COUNT 65 397 #define DTV_STAT_POST_ERROR_BIT_COUNT 66 398 #define DTV_STAT_POST_TOTAL_BIT_COUNT 67 399 #define DTV_STAT_ERROR_BLOCK_COUNT 68 400 #define DTV_STAT_TOTAL_BLOCK_COUNT 69 401 402 #define DTV_MAX_COMMAND DTV_STAT_TOTAL_BLOCK_COUNT 403 404 enum fe_pilot { 405 PILOT_ON, 406 PILOT_OFF, 407 PILOT_AUTO, 408 }; 409 410 typedef enum fe_pilot fe_pilot_t; 411 412 enum fe_rolloff { 413 ROLLOFF_35, /* Implied value in DVB-S, default for DVB-S2 */ 414 ROLLOFF_20, 415 ROLLOFF_25, 416 ROLLOFF_AUTO, 417 }; 418 419 typedef enum fe_rolloff fe_rolloff_t; 420 421 enum fe_delivery_system { 422 SYS_UNDEFINED, 423 SYS_DVBC_ANNEX_A, 424 SYS_DVBC_ANNEX_B, 425 SYS_DVBT, 426 SYS_DSS, 427 SYS_DVBS, 428 SYS_DVBS2, 429 SYS_DVBH, 430 SYS_ISDBT, 431 SYS_ISDBS, 432 SYS_ISDBC, 433 SYS_ATSC, 434 SYS_ATSCMH, 435 SYS_DTMB, 436 SYS_CMMB, 437 SYS_DAB, 438 SYS_DVBT2, 439 SYS_TURBO, 440 SYS_DVBC_ANNEX_C, 441 }; 442 443 typedef enum fe_delivery_system fe_delivery_system_t; 444 445 /* backward compatibility */ 446 #define SYS_DVBC_ANNEX_AC SYS_DVBC_ANNEX_A 447 #define SYS_DMBTH SYS_DTMB /* DMB-TH is legacy name, use DTMB instead */ 448 449 /* ATSC-MH */ 450 451 enum atscmh_sccc_block_mode { 452 ATSCMH_SCCC_BLK_SEP = 0, 453 ATSCMH_SCCC_BLK_COMB = 1, 454 ATSCMH_SCCC_BLK_RES = 2, 455 }; 456 457 enum atscmh_sccc_code_mode { 458 ATSCMH_SCCC_CODE_HLF = 0, 459 ATSCMH_SCCC_CODE_QTR = 1, 460 ATSCMH_SCCC_CODE_RES = 2, 461 }; 462 463 enum atscmh_rs_frame_ensemble { 464 ATSCMH_RSFRAME_ENS_PRI = 0, 465 ATSCMH_RSFRAME_ENS_SEC = 1, 466 }; 467 468 enum atscmh_rs_frame_mode { 469 ATSCMH_RSFRAME_PRI_ONLY = 0, 470 ATSCMH_RSFRAME_PRI_SEC = 1, 471 ATSCMH_RSFRAME_RES = 2, 472 }; 473 474 enum atscmh_rs_code_mode { 475 ATSCMH_RSCODE_211_187 = 0, 476 ATSCMH_RSCODE_223_187 = 1, 477 ATSCMH_RSCODE_235_187 = 2, 478 ATSCMH_RSCODE_RES = 3, 479 }; 480 481 #define NO_STREAM_ID_FILTER (~0U) 482 #define LNA_AUTO (~0U) 483 484 struct dtv_cmds_h { 485 char *name; /* A display name for debugging purposes */ 486 487 __u32 cmd; /* A unique ID */ 488 489 /* Flags */ 490 __u32 set:1; /* Either a set or get property */ 491 __u32 buffer:1; /* Does this property use the buffer? */ 492 __u32 reserved:30; /* Align */ 493 }; 494 495 /** 496 * Scale types for the quality parameters. 497 * @FE_SCALE_NOT_AVAILABLE: That QoS measure is not available. That 498 * could indicate a temporary or a permanent 499 * condition. 500 * @FE_SCALE_DECIBEL: The scale is measured in 0.001 dB steps, typically 501 * used on signal measures. 502 * @FE_SCALE_RELATIVE: The scale is a relative percentual measure, 503 * ranging from 0 (0%) to 0xffff (100%). 504 * @FE_SCALE_COUNTER: The scale counts the occurrence of an event, like 505 * bit error, block error, lapsed time. 506 */ 507 enum fecap_scale_params { 508 FE_SCALE_NOT_AVAILABLE = 0, 509 FE_SCALE_DECIBEL, 510 FE_SCALE_RELATIVE, 511 FE_SCALE_COUNTER 512 }; 513 514 /** 515 * struct dtv_stats - Used for reading a DTV status property 516 * 517 * @value: value of the measure. Should range from 0 to 0xffff; 518 * @scale: Filled with enum fecap_scale_params - the scale 519 * in usage for that parameter 520 * 521 * For most delivery systems, this will return a single value for each 522 * parameter. 523 * It should be noticed, however, that new OFDM delivery systems like 524 * ISDB can use different modulation types for each group of carriers. 525 * On such standards, up to 8 groups of statistics can be provided, one 526 * for each carrier group (called "layer" on ISDB). 527 * In order to be consistent with other delivery systems, the first 528 * value refers to the entire set of carriers ("global"). 529 * dtv_status:scale should use the value FE_SCALE_NOT_AVAILABLE when 530 * the value for the entire group of carriers or from one specific layer 531 * is not provided by the hardware. 532 * st.len should be filled with the latest filled status + 1. 533 * 534 * In other words, for ISDB, those values should be filled like: 535 * u.st.stat.svalue[0] = global statistics; 536 * u.st.stat.scale[0] = FE_SCALE_DECIBELS; 537 * u.st.stat.value[1] = layer A statistics; 538 * u.st.stat.scale[1] = FE_SCALE_NOT_AVAILABLE (if not available); 539 * u.st.stat.svalue[2] = layer B statistics; 540 * u.st.stat.scale[2] = FE_SCALE_DECIBELS; 541 * u.st.stat.svalue[3] = layer C statistics; 542 * u.st.stat.scale[3] = FE_SCALE_DECIBELS; 543 * u.st.len = 4; 544 */ 545 struct dtv_stats { 546 __u8 scale; /* enum fecap_scale_params type */ 547 union { 548 __u64 uvalue; /* for counters and relative scales */ 549 __s64 svalue; /* for 0.001 dB measures */ 550 }; 551 } __attribute__ ((packed)); 552 553 554 #define MAX_DTV_STATS 4 555 556 struct dtv_fe_stats { 557 __u8 len; 558 struct dtv_stats stat[MAX_DTV_STATS]; 559 } __attribute__ ((packed)); 560 561 struct dtv_property { 562 __u32 cmd; 563 __u32 reserved[3]; 564 union { 565 __u32 data; 566 struct dtv_fe_stats st; 567 struct { 568 __u8 data[32]; 569 __u32 len; 570 __u32 reserved1[3]; 571 void *reserved2; 572 } buffer; 573 } u; 574 int result; 575 } __attribute__ ((packed)); 576 577 /* num of properties cannot exceed DTV_IOCTL_MAX_MSGS per ioctl */ 578 #define DTV_IOCTL_MAX_MSGS 64 579 580 struct dtv_properties { 581 __u32 num; 582 struct dtv_property *props; 583 }; 584 585 #define FE_SET_PROPERTY _IOW('o', 82, struct dtv_properties) 586 #define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties) 587 588 589 /** 590 * When set, this flag will disable any zigzagging or other "normal" tuning 591 * behaviour. Additionally, there will be no automatic monitoring of the lock 592 * status, and hence no frontend events will be generated. If a frontend device 593 * is closed, this flag will be automatically turned off when the device is 594 * reopened read-write. 595 */ 596 #define FE_TUNE_MODE_ONESHOT 0x01 597 598 599 #define FE_GET_INFO _IOR('o', 61, struct dvb_frontend_info) 600 601 #define FE_DISEQC_RESET_OVERLOAD _IO('o', 62) 602 #define FE_DISEQC_SEND_MASTER_CMD _IOW('o', 63, struct dvb_diseqc_master_cmd) 603 #define FE_DISEQC_RECV_SLAVE_REPLY _IOR('o', 64, struct dvb_diseqc_slave_reply) 604 #define FE_DISEQC_SEND_BURST _IO('o', 65) /* fe_sec_mini_cmd_t */ 605 606 #define FE_SET_TONE _IO('o', 66) /* fe_sec_tone_mode_t */ 607 #define FE_SET_VOLTAGE _IO('o', 67) /* fe_sec_voltage_t */ 608 #define FE_ENABLE_HIGH_LNB_VOLTAGE _IO('o', 68) /* int */ 609 610 #define FE_READ_STATUS _IOR('o', 69, fe_status_t) 611 #define FE_READ_BER _IOR('o', 70, __u32) 612 #define FE_READ_SIGNAL_STRENGTH _IOR('o', 71, __u16) 613 #define FE_READ_SNR _IOR('o', 72, __u16) 614 #define FE_READ_UNCORRECTED_BLOCKS _IOR('o', 73, __u32) 615 616 #define FE_SET_FRONTEND _IOW('o', 76, struct dvb_frontend_parameters) 617 #define FE_GET_FRONTEND _IOR('o', 77, struct dvb_frontend_parameters) 618 #define FE_SET_FRONTEND_TUNE_MODE _IO('o', 81) /* unsigned int */ 619 #define FE_GET_EVENT _IOR('o', 78, struct dvb_frontend_event) 620 621 #define FE_DISHNETWORK_SEND_LEGACY_CMD _IO('o', 80) /* unsigned int */ 622 623 #endif /*_DVBFRONTEND_H_*/ 624