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