blob: 65a790e196bc706150b6d1abea8512e22d7c7f79 [file] [log] [blame]
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001<title>DVB Frontend API</title>
2
3<para>The DVB frontend device controls the tuner and DVB demodulator
4hardware. It can be accessed through <emphasis
5role="tt">/dev/dvb/adapter0/frontend0</emphasis>. Data types and and
6ioctl definitions can be accessed by including <emphasis
7role="tt">linux/dvb/frontend.h</emphasis> in your application.</para>
8
9<para>DVB frontends come in three varieties: DVB-S (satellite), DVB-C
10(cable) and DVB-T (terrestrial). Transmission via the internet (DVB-IP)
11is not yet handled by this API but a future extension is possible. For
12DVB-S the frontend device also supports satellite equipment control
13(SEC) via DiSEqC and V-SEC protocols. The DiSEqC (digital SEC)
Mauro Carvalho Chehab62b122a2009-09-15 21:03:45 -030014specification is available from
15<ulink url="http://www.eutelsat.com/satellites/4_5_5.html">Eutelsat</ulink>.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030016
17<para>Note that the DVB API may also be used for MPEG decoder-only PCI
18cards, in which case there exists no frontend device.</para>
19
20<section id="frontend_types">
21<title>Frontend Data Types</title>
22
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030023<section id="fe-type-t">
24<title>Frontend type</title>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030025
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030026<para>For historical reasons, frontend types are named by the type of modulation used in
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030027transmission. The fontend types are given by fe_type_t type, defined as:</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030028
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030029<table pgwide="1" frame="none" id="fe-type">
30<title>Frontend types</title>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030031<tgroup cols="3">
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030032 &cs-def;
33 <thead>
34 <row>
35 <entry>fe_type</entry>
36 <entry>Description</entry>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030037 <entry><link linkend="DTV-DELIVERY-SYSTEM">DTV_DELIVERY_SYSTEM</link> equivalent type</entry>
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030038 </row>
39 </thead>
40 <tbody valign="top">
41 <row>
42 <entry id="FE_QPSK"><constant>FE_QPSK</constant></entry>
43 <entry>For DVB-S standard</entry>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030044 <entry><constant>SYS_DVBS</constant></entry>
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030045 </row>
46 <row>
47 <entry id="FE_QAM"><constant>FE_QAM</constant></entry>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030048 <entry>For DVB-C annex A/C standard</entry>
49 <entry><constant>SYS_DVBC_ANNEX_AC</constant></entry>
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030050 </row>
51 <row>
52 <entry id="FE_OFDM"><constant>FE_OFDM</constant></entry>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030053 <entry>For DVB-T standard</entry>
54 <entry><constant>SYS_DVBT</constant></entry>
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030055 </row>
56 <row>
57 <entry id="FE_ATSC"><constant>FE_ATSC</constant></entry>
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030058 <entry>For ATSC standard (terrestrial) or for DVB-C Annex B (cable) used in US.</entry>
59 <entry><constant>SYS_ATSC</constant> (terrestrial) or <constant>SYS_DVBC_ANNEX_B</constant> (cable)</entry>
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030060 </row>
61</tbody></tgroup></table>
62
63<para>Newer formats like DVB-S2, ISDB-T, ISDB-S and DVB-T2 are not described at the above, as they're
Mauro Carvalho Chehab0969ec12011-06-07 17:02:37 -030064supported via the new <link linkend="FE_GET_SET_PROPERTY">FE_GET_PROPERTY/FE_GET_SET_PROPERTY</link> ioctl's, using the <link linkend="DTV-DELIVERY-SYSTEM">DTV_DELIVERY_SYSTEM</link> parameter.
Mauro Carvalho Chehabd5dc2de2011-06-07 16:17:00 -030065</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -030066</section>
67
68<section id="frontend_caps">
69<title>frontend capabilities</title>
70
71<para>Capabilities describe what a frontend can do. Some capabilities can only be supported for
72a specific frontend type.</para>
73<programlisting>
74 typedef enum fe_caps {
75 FE_IS_STUPID = 0,
76 FE_CAN_INVERSION_AUTO = 0x1,
77 FE_CAN_FEC_1_2 = 0x2,
78 FE_CAN_FEC_2_3 = 0x4,
79 FE_CAN_FEC_3_4 = 0x8,
80 FE_CAN_FEC_4_5 = 0x10,
81 FE_CAN_FEC_5_6 = 0x20,
82 FE_CAN_FEC_6_7 = 0x40,
83 FE_CAN_FEC_7_8 = 0x80,
84 FE_CAN_FEC_8_9 = 0x100,
85 FE_CAN_FEC_AUTO = 0x200,
86 FE_CAN_QPSK = 0x400,
87 FE_CAN_QAM_16 = 0x800,
88 FE_CAN_QAM_32 = 0x1000,
89 FE_CAN_QAM_64 = 0x2000,
90 FE_CAN_QAM_128 = 0x4000,
91 FE_CAN_QAM_256 = 0x8000,
92 FE_CAN_QAM_AUTO = 0x10000,
93 FE_CAN_TRANSMISSION_MODE_AUTO = 0x20000,
94 FE_CAN_BANDWIDTH_AUTO = 0x40000,
95 FE_CAN_GUARD_INTERVAL_AUTO = 0x80000,
96 FE_CAN_HIERARCHY_AUTO = 0x100000,
Mauro Carvalho Chehab8d3557e2010-07-03 17:39:17 -030097 FE_CAN_8VSB = 0x200000,
98 FE_CAN_16VSB = 0x400000,
99 FE_HAS_EXTENDED_CAPS = 0x800000,
100 FE_CAN_TURBO_FEC = 0x8000000,
101 FE_CAN_2G_MODULATION = 0x10000000,
102 FE_NEEDS_BENDING = 0x20000000,
103 FE_CAN_RECOVER = 0x40000000,
104 FE_CAN_MUTE_TS = 0x80000000
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300105 } fe_caps_t;
106</programlisting>
107</section>
108
109<section id="frontend_info">
110<title>frontend information</title>
111
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300112<para>Information about the frontend ca be queried with
113 <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300114
115<programlisting>
116 struct dvb_frontend_info {
117 char name[128];
118 fe_type_t type;
119 uint32_t frequency_min;
120 uint32_t frequency_max;
121 uint32_t frequency_stepsize;
122 uint32_t frequency_tolerance;
123 uint32_t symbol_rate_min;
124 uint32_t symbol_rate_max;
125 uint32_t symbol_rate_tolerance; /&#x22C6; ppm &#x22C6;/
126 uint32_t notifier_delay; /&#x22C6; ms &#x22C6;/
127 fe_caps_t caps;
128 };
129</programlisting>
130</section>
131
132<section id="frontend_diseqc">
133<title>diseqc master command</title>
134
135<para>A message sent from the frontend to DiSEqC capable equipment.</para>
136<programlisting>
137 struct dvb_diseqc_master_cmd {
138 uint8_t msg [6]; /&#x22C6; { framing, address, command, data[3] } &#x22C6;/
139 uint8_t msg_len; /&#x22C6; valid values are 3...6 &#x22C6;/
140 };
141</programlisting>
142</section>
143<section role="subsection">
144<title>diseqc slave reply</title>
145
146<para>A reply to the frontend from DiSEqC 2.0 capable equipment.</para>
147<programlisting>
148 struct dvb_diseqc_slave_reply {
149 uint8_t msg [4]; /&#x22C6; { framing, data [3] } &#x22C6;/
150 uint8_t msg_len; /&#x22C6; valid values are 0...4, 0 means no msg &#x22C6;/
151 int timeout; /&#x22C6; return from ioctl after timeout ms with &#x22C6;/
152 }; /&#x22C6; errorcode when no message was received &#x22C6;/
153</programlisting>
154</section>
155
156<section id="frontend_diseqc_slave_reply">
157<title>diseqc slave reply</title>
158<para>The voltage is usually used with non-DiSEqC capable LNBs to switch the polarzation
159(horizontal/vertical). When using DiSEqC epuipment this voltage has to be switched
160consistently to the DiSEqC commands as described in the DiSEqC spec.</para>
161<programlisting>
162 typedef enum fe_sec_voltage {
163 SEC_VOLTAGE_13,
164 SEC_VOLTAGE_18
165 } fe_sec_voltage_t;
166</programlisting>
167</section>
168
169<section id="frontend_sec_tone">
170<title>SEC continuous tone</title>
171
Lucas De Marchi25985ed2011-03-30 22:57:33 -0300172<para>The continuous 22KHz tone is usually used with non-DiSEqC capable LNBs to switch the
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300173high/low band of a dual-band LNB. When using DiSEqC epuipment this voltage has to
174be switched consistently to the DiSEqC commands as described in the DiSEqC
175spec.</para>
176<programlisting>
177 typedef enum fe_sec_tone_mode {
178 SEC_TONE_ON,
179 SEC_TONE_OFF
180 } fe_sec_tone_mode_t;
181</programlisting>
182</section>
183
184<section id="frontend_sec_burst">
185<title>SEC tone burst</title>
186
187<para>The 22KHz tone burst is usually used with non-DiSEqC capable switches to select
188between two connected LNBs/satellites. When using DiSEqC epuipment this voltage has to
189be switched consistently to the DiSEqC commands as described in the DiSEqC
190spec.</para>
191<programlisting>
192 typedef enum fe_sec_mini_cmd {
193 SEC_MINI_A,
194 SEC_MINI_B
195 } fe_sec_mini_cmd_t;
196</programlisting>
197
198<para></para>
199</section>
200
201<section id="frontend_status">
202<title>frontend status</title>
203<para>Several functions of the frontend device use the fe_status data type defined
204by</para>
205<programlisting>
206 typedef enum fe_status {
207 FE_HAS_SIGNAL = 0x01, /&#x22C6; found something above the noise level &#x22C6;/
208 FE_HAS_CARRIER = 0x02, /&#x22C6; found a DVB signal &#x22C6;/
209 FE_HAS_VITERBI = 0x04, /&#x22C6; FEC is stable &#x22C6;/
210 FE_HAS_SYNC = 0x08, /&#x22C6; found sync bytes &#x22C6;/
211 FE_HAS_LOCK = 0x10, /&#x22C6; everything's working... &#x22C6;/
212 FE_TIMEDOUT = 0x20, /&#x22C6; no lock within the last ~2 seconds &#x22C6;/
213 FE_REINIT = 0x40 /&#x22C6; frontend was reinitialized, &#x22C6;/
214 } fe_status_t; /&#x22C6; application is recommned to reset &#x22C6;/
215</programlisting>
216<para>to indicate the current state and/or state changes of the frontend hardware.
217</para>
218
219</section>
220
221<section id="frontend_params">
222<title>frontend parameters</title>
223<para>The kind of parameters passed to the frontend device for tuning depend on
224the kind of hardware you are using. All kinds of parameters are combined as an
225union in the FrontendParameters structure:</para>
226<programlisting>
227 struct dvb_frontend_parameters {
228 uint32_t frequency; /&#x22C6; (absolute) frequency in Hz for QAM/OFDM &#x22C6;/
229 /&#x22C6; intermediate frequency in kHz for QPSK &#x22C6;/
230 fe_spectral_inversion_t inversion;
231 union {
232 struct dvb_qpsk_parameters qpsk;
233 struct dvb_qam_parameters qam;
234 struct dvb_ofdm_parameters ofdm;
235 } u;
236 };
237</programlisting>
238<para>For satellite QPSK frontends you have to use the <constant>QPSKParameters</constant> member defined by</para>
239<programlisting>
240 struct dvb_qpsk_parameters {
241 uint32_t symbol_rate; /&#x22C6; symbol rate in Symbols per second &#x22C6;/
242 fe_code_rate_t fec_inner; /&#x22C6; forward error correction (see above) &#x22C6;/
243 };
244</programlisting>
245<para>for cable QAM frontend you use the <constant>QAMParameters</constant> structure</para>
246<programlisting>
247 struct dvb_qam_parameters {
248 uint32_t symbol_rate; /&#x22C6; symbol rate in Symbols per second &#x22C6;/
249 fe_code_rate_t fec_inner; /&#x22C6; forward error correction (see above) &#x22C6;/
250 fe_modulation_t modulation; /&#x22C6; modulation type (see above) &#x22C6;/
251 };
252</programlisting>
253<para>DVB-T frontends are supported by the <constant>OFDMParamters</constant> structure
254</para>
255<programlisting>
256 struct dvb_ofdm_parameters {
257 fe_bandwidth_t bandwidth;
258 fe_code_rate_t code_rate_HP; /&#x22C6; high priority stream code rate &#x22C6;/
259 fe_code_rate_t code_rate_LP; /&#x22C6; low priority stream code rate &#x22C6;/
260 fe_modulation_t constellation; /&#x22C6; modulation type (see above) &#x22C6;/
261 fe_transmit_mode_t transmission_mode;
262 fe_guard_interval_t guard_interval;
263 fe_hierarchy_t hierarchy_information;
264 };
265</programlisting>
266<para>In the case of QPSK frontends the <constant>Frequency</constant> field specifies the intermediate
267frequency, i.e. the offset which is effectively added to the local oscillator frequency (LOF) of
268the LNB. The intermediate frequency has to be specified in units of kHz. For QAM and
269OFDM frontends the Frequency specifies the absolute frequency and is given in
270Hz.
271</para>
272<para>The Inversion field can take one of these values:
273</para>
274<programlisting>
275 typedef enum fe_spectral_inversion {
276 INVERSION_OFF,
277 INVERSION_ON,
278 INVERSION_AUTO
279 } fe_spectral_inversion_t;
280</programlisting>
281<para>It indicates if spectral inversion should be presumed or not. In the automatic setting
282(<constant>INVERSION_AUTO</constant>) the hardware will try to figure out the correct setting by
283itself.
284</para>
285<para>The possible values for the <constant>FEC_inner</constant> field are
286</para>
287<programlisting>
288 typedef enum fe_code_rate {
289 FEC_NONE = 0,
290 FEC_1_2,
291 FEC_2_3,
292 FEC_3_4,
293 FEC_4_5,
294 FEC_5_6,
295 FEC_6_7,
296 FEC_7_8,
297 FEC_8_9,
298 FEC_AUTO
299 } fe_code_rate_t;
300</programlisting>
301<para>which correspond to error correction rates of 1/2, 2/3, etc., no error correction or auto
302detection.
303</para>
304<para>For cable and terrestrial frontends (QAM and OFDM) one also has to specify the quadrature
305modulation mode which can be one of the following:
306</para>
307<programlisting>
308 typedef enum fe_modulation {
309 QPSK,
310 QAM_16,
311 QAM_32,
312 QAM_64,
313 QAM_128,
314 QAM_256,
315 QAM_AUTO
316 } fe_modulation_t;
317</programlisting>
318<para>Finally, there are several more parameters for OFDM:
319</para>
320<programlisting>
321 typedef enum fe_transmit_mode {
322 TRANSMISSION_MODE_2K,
323 TRANSMISSION_MODE_8K,
324 TRANSMISSION_MODE_AUTO
325 } fe_transmit_mode_t;
326</programlisting>
327 <programlisting>
328 typedef enum fe_bandwidth {
329 BANDWIDTH_8_MHZ,
330 BANDWIDTH_7_MHZ,
331 BANDWIDTH_6_MHZ,
332 BANDWIDTH_AUTO
333 } fe_bandwidth_t;
334</programlisting>
335 <programlisting>
336 typedef enum fe_guard_interval {
337 GUARD_INTERVAL_1_32,
338 GUARD_INTERVAL_1_16,
339 GUARD_INTERVAL_1_8,
340 GUARD_INTERVAL_1_4,
341 GUARD_INTERVAL_AUTO
342 } fe_guard_interval_t;
343</programlisting>
344 <programlisting>
345 typedef enum fe_hierarchy {
346 HIERARCHY_NONE,
347 HIERARCHY_1,
348 HIERARCHY_2,
349 HIERARCHY_4,
350 HIERARCHY_AUTO
351 } fe_hierarchy_t;
352</programlisting>
353
354</section>
355
356<section id="frontend_events">
357<title>frontend events</title>
358 <programlisting>
359 struct dvb_frontend_event {
360 fe_status_t status;
361 struct dvb_frontend_parameters parameters;
362 };
363</programlisting>
364 </section>
365</section>
366
367
368<section id="frontend_fcalls">
369<title>Frontend Function Calls</title>
370
371<section id="frontend_f_open">
372<title>open()</title>
373<para>DESCRIPTION</para>
374<informaltable><tgroup cols="1"><tbody><row>
375<entry align="char">
376<para>This system call opens a named frontend device (/dev/dvb/adapter0/frontend0)
377 for subsequent use. Usually the first thing to do after a successful open is to
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300378 find out the frontend type with <link linkend="FE_GET_INFO">FE_GET_INFO</link>.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300379<para>The device can be opened in read-only mode, which only allows monitoring of
380 device status and statistics, or read/write mode, which allows any kind of use
381 (e.g. performing tuning operations.)
382</para>
383<para>In a system with multiple front-ends, it is usually the case that multiple devices
384 cannot be open in read/write mode simultaneously. As long as a front-end
385 device is opened in read/write mode, other open() calls in read/write mode will
386 either fail or block, depending on whether non-blocking or blocking mode was
387 specified. A front-end device opened in blocking mode can later be put into
388 non-blocking mode (and vice versa) using the F_SETFL command of the fcntl
389 system call. This is a standard system call, documented in the Linux manual
390 page for fcntl. When an open() call has succeeded, the device will be ready
391 for use in the specified mode. This implies that the corresponding hardware is
392 powered up, and that other front-ends may have been powered down to make
393 that possible.</para>
394</entry>
395 </row></tbody></tgroup></informaltable>
396
397<para>SYNOPSIS</para>
398<informaltable><tgroup cols="1"><tbody><row><entry
399 align="char">
400<para>int open(const char &#x22C6;deviceName, int flags);</para>
401</entry>
402 </row></tbody></tgroup></informaltable>
403<para>PARAMETERS
404</para>
405<informaltable><tgroup cols="2"><tbody><row><entry
406 align="char">
407<para>const char
408 *deviceName</para>
409</entry><entry
410 align="char">
411<para>Name of specific video device.</para>
412</entry>
413 </row><row><entry
414 align="char">
415<para>int flags</para>
416</entry><entry
417 align="char">
418<para>A bit-wise OR of the following flags:</para>
419</entry>
420 </row><row><entry
421 align="char">
422</entry><entry
423 align="char">
424<para>O_RDONLY read-only access</para>
425</entry>
426 </row><row><entry
427 align="char">
428</entry><entry
429 align="char">
430<para>O_RDWR read/write access</para>
431</entry>
432 </row><row><entry
433 align="char">
434</entry><entry
435 align="char">
436<para>O_NONBLOCK open in non-blocking mode</para>
437</entry>
438 </row><row><entry
439 align="char">
440</entry><entry
441 align="char">
442<para>(blocking mode is the default)</para>
443</entry>
444 </row></tbody></tgroup></informaltable>
445<para>ERRORS
446</para>
447<informaltable><tgroup cols="2"><tbody><row><entry
448 align="char">
449<para>ENODEV</para>
450</entry><entry
451 align="char">
452<para>Device driver not loaded/available.</para>
453</entry>
454 </row><row><entry
455 align="char">
456<para>EINTERNAL</para>
457</entry><entry
458 align="char">
459<para>Internal error.</para>
460</entry>
461 </row><row><entry
462 align="char">
463<para>EBUSY</para>
464</entry><entry
465 align="char">
466<para>Device or resource busy.</para>
467</entry>
468 </row><row><entry
469 align="char">
470<para>EINVAL</para>
471</entry><entry
472 align="char">
473<para>Invalid argument.</para>
474</entry>
475 </row></tbody></tgroup></informaltable>
476</section>
477
478<section id="frontend_f_close">
479<title>close()</title>
480<para>DESCRIPTION
481</para>
482<informaltable><tgroup cols="1"><tbody><row><entry
483 align="char">
484<para>This system call closes a previously opened front-end device. After closing
485 a front-end device, its corresponding hardware might be powered down
486 automatically.</para>
487</entry>
488 </row></tbody></tgroup></informaltable>
489<para>SYNOPSIS
490</para>
491<informaltable><tgroup cols="1"><tbody><row><entry
492 align="char">
493<para>int close(int fd);</para>
494</entry>
495 </row></tbody></tgroup></informaltable>
496<para>PARAMETERS
497</para>
498<informaltable><tgroup cols="2"><tbody><row><entry
499 align="char">
500<para>int fd</para>
501</entry><entry
502 align="char">
503<para>File descriptor returned by a previous call to open().</para>
504</entry>
505 </row></tbody></tgroup></informaltable>
506<para>ERRORS
507</para>
508<informaltable><tgroup cols="2"><tbody><row><entry
509 align="char">
510<para>EBADF</para>
511</entry><entry
512 align="char">
513<para>fd is not a valid open file descriptor.</para>
514</entry>
515 </row></tbody></tgroup></informaltable>
516</section>
517
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300518<section id="FE_READ_STATUS">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300519<title>FE_READ_STATUS</title>
520<para>DESCRIPTION
521</para>
522<informaltable><tgroup cols="1"><tbody><row><entry
523 align="char">
524<para>This ioctl call returns status information about the front-end. This call only
525 requires read-only access to the device.</para>
526</entry>
527 </row></tbody></tgroup></informaltable>
528<para>SYNOPSIS
529</para>
530<informaltable><tgroup cols="1"><tbody><row><entry
531 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300532<para>int ioctl(int fd, int request = <link linkend="FE_READ_STATUS">FE_READ_STATUS</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300533 fe_status_t &#x22C6;status);</para>
534</entry>
535 </row></tbody></tgroup></informaltable>
536<para>PARAMETERS
537</para>
538
539<informaltable><tgroup cols="2"><tbody><row><entry
540 align="char">
541<para>int fd</para>
542</entry><entry
543 align="char">
544<para>File descriptor returned by a previous call to open().</para>
545</entry>
546 </row><row><entry
547 align="char">
548<para>int request</para>
549</entry><entry
550 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300551<para>Equals <link linkend="FE_READ_STATUS">FE_READ_STATUS</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300552</entry>
553 </row><row><entry
554 align="char">
555<para>struct fe_status_t
556 *status</para>
557</entry><entry
558 align="char">
559<para>Points to the location where the front-end status word is
560 to be stored.</para>
561</entry>
562 </row></tbody></tgroup></informaltable>
563<para>ERRORS
564</para>
565<informaltable><tgroup cols="2"><tbody><row><entry
566 align="char">
567<para>EBADF</para>
568</entry><entry
569 align="char">
570<para>fd is not a valid open file descriptor.</para>
571</entry>
572 </row><row><entry
573 align="char">
574<para>EFAULT</para>
575</entry><entry
576 align="char">
577<para>status points to invalid address.</para>
578</entry>
579 </row></tbody></tgroup></informaltable>
580</section>
581
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300582<section id="FE_READ_BER">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300583<title>FE_READ_BER</title>
584<para>DESCRIPTION
585</para>
586<informaltable><tgroup cols="1"><tbody><row><entry
587 align="char">
588<para>This ioctl call returns the bit error rate for the signal currently
589 received/demodulated by the front-end. For this command, read-only access to
590 the device is sufficient.</para>
591</entry>
592 </row></tbody></tgroup></informaltable>
593<para>SYNOPSIS
594</para>
595<informaltable><tgroup cols="1"><tbody><row><entry
596 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300597<para>int ioctl(int fd, int request = <link linkend="FE_READ_BER">FE_READ_BER</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300598 uint32_t &#x22C6;ber);</para>
599</entry>
600 </row></tbody></tgroup></informaltable>
601<para>PARAMETERS
602</para>
603<informaltable><tgroup cols="2"><tbody><row><entry
604 align="char">
605<para>int fd</para>
606</entry><entry
607 align="char">
608<para>File descriptor returned by a previous call to open().</para>
609</entry>
610 </row><row><entry
611 align="char">
612<para>int request</para>
613</entry><entry
614 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300615<para>Equals <link linkend="FE_READ_BER">FE_READ_BER</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300616</entry>
617 </row><row><entry
618 align="char">
619<para>uint32_t *ber</para>
620</entry><entry
621 align="char">
622<para>The bit error rate is stored into *ber.</para>
623</entry>
624 </row></tbody></tgroup></informaltable>
625<para>ERRORS
626</para>
627<informaltable><tgroup cols="2"><tbody><row><entry
628 align="char">
629<para>EBADF</para>
630</entry><entry
631 align="char">
632<para>fd is not a valid open file descriptor.</para>
633</entry>
634 </row><row><entry
635 align="char">
636<para>EFAULT</para>
637</entry><entry
638 align="char">
639<para>ber points to invalid address.</para>
640</entry>
641 </row><row><entry
642 align="char">
643<para>ENOSIGNAL</para>
644</entry><entry
645 align="char">
646<para>There is no signal, thus no meaningful bit error rate. Also
647 returned if the front-end is not turned on.</para>
648</entry>
649 </row><row><entry
650 align="char">
651<para>ENOSYS</para>
652</entry><entry
653 align="char">
654<para>Function not available for this device.</para>
655</entry>
656 </row></tbody></tgroup></informaltable>
657</section>
658
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300659<section id="FE_READ_SNR">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300660<title>FE_READ_SNR</title>
661
662<para>DESCRIPTION
663</para>
664<informaltable><tgroup cols="1"><tbody><row><entry
665 align="char">
666<para>This ioctl call returns the signal-to-noise ratio for the signal currently received
667 by the front-end. For this command, read-only access to the device is sufficient.</para>
668</entry>
669 </row></tbody></tgroup></informaltable>
670<para>SYNOPSIS
671</para>
672<informaltable><tgroup cols="1"><tbody><row><entry
673 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300674<para>int ioctl(int fd, int request = <link linkend="FE_READ_SNR">FE_READ_SNR</link>, int16_t
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300675 &#x22C6;snr);</para>
676</entry>
677 </row></tbody></tgroup></informaltable>
678<para>PARAMETERS
679</para>
680<informaltable><tgroup cols="2"><tbody><row><entry
681 align="char">
682<para>int fd</para>
683</entry><entry
684 align="char">
685<para>File descriptor returned by a previous call to open().</para>
686</entry>
687 </row><row><entry
688 align="char">
689<para>int request</para>
690</entry><entry
691 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300692<para>Equals <link linkend="FE_READ_SNR">FE_READ_SNR</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300693</entry>
694 </row><row><entry
695 align="char">
696<para>int16_t *snr</para>
697</entry><entry
698 align="char">
699<para>The signal-to-noise ratio is stored into *snr.</para>
700</entry>
701 </row></tbody></tgroup></informaltable>
702
703<para>ERRORS
704</para>
705<informaltable><tgroup cols="2"><tbody><row><entry
706 align="char">
707<para>EBADF</para>
708</entry><entry
709 align="char">
710<para>fd is not a valid open file descriptor.</para>
711</entry>
712 </row><row><entry
713 align="char">
714<para>EFAULT</para>
715</entry><entry
716 align="char">
717<para>snr points to invalid address.</para>
718</entry>
719 </row><row><entry
720 align="char">
721<para>ENOSIGNAL</para>
722</entry><entry
723 align="char">
724<para>There is no signal, thus no meaningful signal strength
725 value. Also returned if front-end is not turned on.</para>
726</entry>
727 </row><row><entry
728 align="char">
729<para>ENOSYS</para>
730</entry><entry
731 align="char">
732<para>Function not available for this device.</para>
733</entry>
734 </row></tbody></tgroup></informaltable>
735</section>
736
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300737<section id="FE_READ_SIGNAL_STRENGTH">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300738<title>FE_READ_SIGNAL_STRENGTH</title>
739<para>DESCRIPTION
740</para>
741<informaltable><tgroup cols="1"><tbody><row><entry
742 align="char">
743<para>This ioctl call returns the signal strength value for the signal currently received
744 by the front-end. For this command, read-only access to the device is sufficient.</para>
745</entry>
746 </row></tbody></tgroup></informaltable>
747<para>SYNOPSIS
748</para>
749<informaltable><tgroup cols="1"><tbody><row><entry
750 align="char">
751<para>int ioctl( int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300752 <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link>, int16_t &#x22C6;strength);</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300753</entry>
754 </row></tbody></tgroup></informaltable>
755
756<para>PARAMETERS
757</para>
758<informaltable><tgroup cols="2"><tbody><row><entry
759 align="char">
760<para>int fd</para>
761</entry><entry
762 align="char">
763<para>File descriptor returned by a previous call to open().</para>
764</entry>
765 </row><row><entry
766 align="char">
767<para>int request</para>
768</entry><entry
769 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300770<para>Equals <link linkend="FE_READ_SIGNAL_STRENGTH">FE_READ_SIGNAL_STRENGTH</link> for this
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300771 command.</para>
772</entry>
773 </row><row><entry
774 align="char">
775<para>int16_t *strength</para>
776</entry><entry
777 align="char">
778<para>The signal strength value is stored into *strength.</para>
779</entry>
780 </row></tbody></tgroup></informaltable>
781<para>ERRORS
782</para>
783<informaltable><tgroup cols="2"><tbody><row><entry
784 align="char">
785<para>EBADF</para>
786</entry><entry
787 align="char">
788<para>fd is not a valid open file descriptor.</para>
789</entry>
790 </row><row><entry
791 align="char">
792<para>EFAULT</para>
793</entry><entry
794 align="char">
795<para>status points to invalid address.</para>
796</entry>
797 </row><row><entry
798 align="char">
799<para>ENOSIGNAL</para>
800</entry><entry
801 align="char">
802<para>There is no signal, thus no meaningful signal strength
803 value. Also returned if front-end is not turned on.</para>
804</entry>
805 </row><row><entry
806 align="char">
807<para>ENOSYS</para>
808</entry><entry
809 align="char">
810<para>Function not available for this device.</para>
811</entry>
812 </row></tbody></tgroup></informaltable>
813</section>
814
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300815<section id="FE_READ_UNCORRECTED_BLOCKS">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300816<title>FE_READ_UNCORRECTED_BLOCKS</title>
817<para>DESCRIPTION
818</para>
819<informaltable><tgroup cols="1"><tbody><row><entry
820 align="char">
821<para>This ioctl call returns the number of uncorrected blocks detected by the device
822 driver during its lifetime. For meaningful measurements, the increment in block
823 count during a specific time interval should be calculated. For this command,
824 read-only access to the device is sufficient.</para>
825</entry>
826 </row><row><entry
827 align="char">
828<para>Note that the counter will wrap to zero after its maximum count has been
829 reached.</para>
830</entry>
831 </row></tbody></tgroup></informaltable>
832<para>SYNOPSIS
833</para>
834<informaltable><tgroup cols="1"><tbody><row><entry
835 align="char">
836<para>int ioctl( int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300837 <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link>, uint32_t &#x22C6;ublocks);</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300838</entry>
839 </row></tbody></tgroup></informaltable>
840<para>PARAMETERS
841</para>
842<informaltable><tgroup cols="2"><tbody><row><entry
843 align="char">
844<para>int fd</para>
845</entry><entry
846 align="char">
847<para>File descriptor returned by a previous call to open().</para>
848</entry>
849 </row><row><entry
850 align="char">
851<para>int request</para>
852</entry><entry
853 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300854<para>Equals <link linkend="FE_READ_UNCORRECTED_BLOCKS">FE_READ_UNCORRECTED_BLOCKS</link> for this
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300855 command.</para>
856</entry>
857 </row><row><entry
858 align="char">
859<para>uint32_t *ublocks</para>
860</entry><entry
861 align="char">
862<para>The total number of uncorrected blocks seen by the driver
863 so far.</para>
864</entry>
865 </row></tbody></tgroup></informaltable>
866<para>ERRORS
867</para>
868<informaltable><tgroup cols="2"><tbody><row><entry
869 align="char">
870<para>EBADF</para>
871</entry><entry
872 align="char">
873<para>fd is not a valid open file descriptor.</para>
874</entry>
875 </row><row><entry
876 align="char">
877<para>EFAULT</para>
878</entry><entry
879 align="char">
880<para>ublocks points to invalid address.</para>
881</entry>
882 </row><row><entry
883 align="char">
884<para>ENOSYS</para>
885</entry><entry
886 align="char">
887<para>Function not available for this device.</para>
888</entry>
889 </row></tbody></tgroup></informaltable>
890</section>
891
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300892<section id="FE_SET_FRONTEND">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300893<title>FE_SET_FRONTEND</title>
894<para>DESCRIPTION
895</para>
896<informaltable><tgroup cols="1"><tbody><row><entry
897 align="char">
898<para>This ioctl call starts a tuning operation using specified parameters. The result
899 of this call will be successful if the parameters were valid and the tuning could
900 be initiated. The result of the tuning operation in itself, however, will arrive
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300901 asynchronously as an event (see documentation for <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> and
902 FrontendEvent.) If a new <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> operation is initiated before
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300903 the previous one was completed, the previous operation will be aborted in favor
904 of the new one. This command requires read/write access to the device.</para>
905</entry>
906 </row></tbody></tgroup></informaltable>
907
908<para>SYNOPSIS
909</para>
910<informaltable><tgroup cols="1"><tbody><row><entry
911 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300912<para>int ioctl(int fd, int request = <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300913 struct dvb_frontend_parameters &#x22C6;p);</para>
914</entry>
915 </row></tbody></tgroup></informaltable>
916<para>PARAMETERS
917</para>
918<informaltable><tgroup cols="2"><tbody><row><entry
919 align="char">
920<para>int fd</para>
921</entry><entry
922 align="char">
923<para>File descriptor returned by a previous call to open().</para>
924</entry>
925 </row><row><entry
926 align="char">
927<para>int request</para>
928</entry><entry
929 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300930<para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300931</entry>
932 </row><row><entry
933 align="char">
934<para>struct
935 dvb_frontend_parameters
936 *p</para>
937</entry><entry
938 align="char">
939<para>Points to parameters for tuning operation.</para>
940</entry>
941 </row></tbody></tgroup></informaltable>
942<para>ERRORS
943</para>
944<informaltable><tgroup cols="2"><tbody><row><entry
945 align="char">
946<para>EBADF</para>
947</entry><entry
948 align="char">
949<para>fd is not a valid open file descriptor.</para>
950</entry>
951 </row><row><entry
952 align="char">
953<para>EFAULT</para>
954</entry><entry
955 align="char">
956<para>p points to invalid address.</para>
957</entry>
958 </row><row><entry
959 align="char">
960<para>EINVAL</para>
961</entry><entry
962 align="char">
963<para>Maximum supported symbol rate reached.</para>
964</entry>
965</row></tbody></tgroup></informaltable>
966</section>
967
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300968<section id="FE_GET_FRONTEND">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300969<title>FE_GET_FRONTEND</title>
970<para>DESCRIPTION
971</para>
972<informaltable><tgroup cols="1"><tbody><row><entry
973 align="char">
974<para>This ioctl call queries the currently effective frontend parameters. For this
975 command, read-only access to the device is sufficient.</para>
976</entry>
977 </row></tbody></tgroup></informaltable>
978
979<para>SYNOPSIS
980</para>
981<informaltable><tgroup cols="1"><tbody><row><entry
982 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -0300983<para>int ioctl(int fd, int request = <link linkend="FE_GET_FRONTEND">FE_GET_FRONTEND</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -0300984 struct dvb_frontend_parameters &#x22C6;p);</para>
985</entry>
986 </row></tbody></tgroup></informaltable>
987
988<para>PARAMETERS
989</para>
990<informaltable><tgroup cols="2"><tbody><row><entry
991 align="char">
992<para>int fd</para>
993</entry><entry
994 align="char">
995<para>File descriptor returned by a previous call to open().</para>
996</entry>
997 </row><row><entry
998 align="char">
999<para>int request</para>
1000</entry><entry
1001 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001002<para>Equals <link linkend="FE_SET_FRONTEND">FE_SET_FRONTEND</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001003</entry>
1004 </row><row><entry
1005 align="char">
1006<para>struct
1007 dvb_frontend_parameters
1008 *p</para>
1009</entry><entry
1010 align="char">
1011<para>Points to parameters for tuning operation.</para>
1012</entry>
1013 </row></tbody></tgroup></informaltable>
1014
1015<para>ERRORS
1016</para>
1017
1018<informaltable><tgroup cols="2"><tbody><row><entry
1019 align="char">
1020<para>EBADF</para>
1021</entry><entry
1022 align="char">
1023<para>fd is not a valid open file descriptor.</para>
1024</entry>
1025 </row><row><entry
1026 align="char">
1027<para>EFAULT</para>
1028</entry><entry
1029 align="char">
1030<para>p points to invalid address.</para>
1031</entry>
1032 </row><row><entry
1033 align="char">
1034<para>EINVAL</para>
1035</entry><entry
1036 align="char">
1037<para>Maximum supported symbol rate reached.</para>
1038</entry>
1039 </row></tbody></tgroup></informaltable>
1040
1041</section>
1042
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001043<section id="FE_GET_EVENT">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001044<title>FE_GET_EVENT</title>
1045<para>DESCRIPTION
1046</para>
1047<informaltable><tgroup cols="1"><tbody><row><entry
1048 align="char">
1049<para>This ioctl call returns a frontend event if available. If an event is not
1050 available, the behavior depends on whether the device is in blocking or
1051 non-blocking mode. In the latter case, the call fails immediately with errno
1052 set to EWOULDBLOCK. In the former case, the call blocks until an event
1053 becomes available.</para>
1054</entry>
1055 </row><row><entry
1056 align="char">
1057<para>The standard Linux poll() and/or select() system calls can be used with the
1058 device file descriptor to watch for new events. For select(), the file descriptor
1059 should be included in the exceptfds argument, and for poll(), POLLPRI should
1060 be specified as the wake-up condition. Since the event queue allocated is
1061 rather small (room for 8 events), the queue must be serviced regularly to avoid
1062 overflow. If an overflow happens, the oldest event is discarded from the queue,
1063 and an error (EOVERFLOW) occurs the next time the queue is read. After
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001064 reporting the error condition in this fashion, subsequent
1065 <link linkend="FE_GET_EVENT">FE_GET_EVENT</link>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001066 calls will return events from the queue as usual.</para>
1067</entry>
1068 </row><row><entry
1069 align="char">
1070<para>For the sake of implementation simplicity, this command requires read/write
1071 access to the device.</para>
1072</entry>
1073 </row></tbody></tgroup></informaltable>
1074
1075<para>SYNOPSIS
1076</para>
1077<informaltable><tgroup cols="1"><tbody><row><entry
1078 align="char">
1079<para>int ioctl(int fd, int request = QPSK_GET_EVENT,
1080 struct dvb_frontend_event &#x22C6;ev);</para>
1081</entry>
1082 </row></tbody></tgroup></informaltable>
1083
1084<para>PARAMETERS
1085</para>
1086<informaltable><tgroup cols="2"><tbody><row><entry
1087 align="char">
1088<para>int fd</para>
1089</entry><entry
1090 align="char">
1091<para>File descriptor returned by a previous call to open().</para>
1092</entry>
1093 </row><row><entry
1094 align="char">
1095<para>int request</para>
1096</entry><entry
1097 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001098<para>Equals <link linkend="FE_GET_EVENT">FE_GET_EVENT</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001099</entry>
1100 </row><row><entry
1101 align="char">
1102<para>struct
1103 dvb_frontend_event
1104 *ev</para>
1105</entry><entry
1106 align="char">
1107<para>Points to the location where the event,</para>
1108</entry>
1109 </row><row><entry
1110 align="char">
1111</entry><entry
1112 align="char">
1113<para>if any, is to be stored.</para>
1114</entry>
1115 </row></tbody></tgroup></informaltable>
1116
1117<para>ERRORS
1118</para>
1119<informaltable><tgroup cols="2"><tbody><row><entry
1120 align="char">
1121<para>EBADF</para>
1122</entry><entry
1123 align="char">
1124<para>fd is not a valid open file descriptor.</para>
1125</entry>
1126 </row><row><entry
1127 align="char">
1128<para>EFAULT</para>
1129</entry><entry
1130 align="char">
1131<para>ev points to invalid address.</para>
1132</entry>
1133 </row><row><entry
1134 align="char">
1135<para>EWOULDBLOCK</para>
1136</entry><entry
1137 align="char">
1138<para>There is no event pending, and the device is in
1139 non-blocking mode.</para>
1140</entry>
1141 </row><row><entry
1142 align="char">
1143<para>EOVERFLOW</para>
1144</entry><entry
1145 align="char">
1146</entry>
1147 </row><row><entry
1148 align="char">
1149</entry><entry
1150 align="char">
1151<para>Overflow in event queue - one or more events were lost.</para>
1152</entry>
1153</row></tbody></tgroup></informaltable>
1154</section>
1155
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001156<section id="FE_GET_INFO">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001157<title>FE_GET_INFO</title>
1158<para>DESCRIPTION
1159</para>
1160<informaltable><tgroup cols="1"><tbody><row><entry
1161 align="char">
1162<para>This ioctl call returns information about the front-end. This call only requires
1163 read-only access to the device.</para>
1164</entry>
1165 </row></tbody></tgroup></informaltable>
1166<para>SYNOPSIS
1167</para>
1168
1169<informaltable><tgroup cols="1"><tbody><row><entry
1170 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001171<para> int ioctl(int fd, int request = <link linkend="FE_GET_INFO">FE_GET_INFO</link>, struct
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001172 dvb_frontend_info &#x22C6;info);</para>
1173</entry>
1174 </row></tbody></tgroup></informaltable>
1175<para>PARAMETERS
1176</para>
1177
1178<informaltable><tgroup cols="2"><tbody><row><entry
1179 align="char">
1180<para>int fd</para>
1181</entry><entry
1182 align="char">
1183<para>File descriptor returned by a previous call to open().</para>
1184</entry>
1185 </row><row><entry
1186 align="char">
1187<para>int request</para>
1188</entry><entry
1189 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001190<para>Equals <link linkend="FE_GET_INFO">FE_GET_INFO</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001191</entry>
1192 </row><row><entry
1193 align="char">
1194<para>struct
1195 dvb_frontend_info
1196 *info</para>
1197</entry><entry
1198 align="char">
1199<para>Points to the location where the front-end information is
1200 to be stored.</para>
1201</entry>
1202 </row></tbody></tgroup></informaltable>
1203<para>ERRORS
1204</para>
1205<informaltable><tgroup cols="2"><tbody><row><entry
1206 align="char">
1207<para>EBADF</para>
1208</entry><entry
1209 align="char">
1210<para>fd is not a valid open file descriptor.</para>
1211</entry>
1212 </row><row><entry
1213 align="char">
1214<para>EFAULT</para>
1215</entry><entry
1216 align="char">
1217<para>info points to invalid address.</para>
1218</entry>
1219</row></tbody></tgroup></informaltable>
1220</section>
1221
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001222<section id="FE_DISEQC_RESET_OVERLOAD">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001223<title>FE_DISEQC_RESET_OVERLOAD</title>
1224<para>DESCRIPTION
1225</para>
1226<informaltable><tgroup cols="1"><tbody><row><entry
1227 align="char">
1228<para>If the bus has been automatically powered off due to power overload, this ioctl
1229 call restores the power to the bus. The call requires read/write access to the
1230 device. This call has no effect if the device is manually powered off. Not all
1231 DVB adapters support this ioctl.</para>
1232</entry>
1233 </row></tbody></tgroup></informaltable>
1234
1235<para>SYNOPSIS
1236</para>
1237<informaltable><tgroup cols="1"><tbody><row><entry
1238 align="char">
1239<para>int ioctl(int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001240 <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link>);</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001241</entry>
1242 </row></tbody></tgroup></informaltable>
1243<para>PARAMETERS
1244</para>
1245<informaltable><tgroup cols="2"><tbody><row><entry
1246 align="char">
1247<para>int fd</para>
1248</entry><entry
1249 align="char">
1250<para>File descriptor returned by a previous call to open().</para>
1251</entry>
1252 </row><row><entry
1253 align="char">
1254<para>int request</para>
1255</entry><entry
1256 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001257<para>Equals <link linkend="FE_DISEQC_RESET_OVERLOAD">FE_DISEQC_RESET_OVERLOAD</link> for this
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001258 command.</para>
1259</entry>
1260 </row></tbody></tgroup></informaltable>
1261
1262<para>ERRORS
1263</para>
1264<informaltable><tgroup cols="2"><tbody><row><entry
1265 align="char">
1266<para>EBADF</para>
1267</entry><entry
1268 align="char">
1269<para>fd is not a valid file descriptor.</para>
1270</entry>
1271 </row><row><entry
1272 align="char">
1273<para>EPERM</para>
1274</entry><entry
1275 align="char">
1276<para>Permission denied (needs read/write access).</para>
1277</entry>
1278 </row><row><entry
1279 align="char">
1280<para>EINTERNAL</para>
1281</entry><entry
1282 align="char">
1283<para>Internal error in the device driver.</para>
1284</entry>
1285</row></tbody></tgroup></informaltable>
1286</section>
1287
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001288<section id="FE_DISEQC_SEND_MASTER_CMD">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001289<title>FE_DISEQC_SEND_MASTER_CMD</title>
1290<para>DESCRIPTION
1291</para>
1292<informaltable><tgroup cols="1"><tbody><row><entry
1293 align="char">
1294<para>This ioctl call is used to send a a DiSEqC command.</para>
1295</entry>
1296 </row></tbody></tgroup></informaltable>
1297<para>SYNOPSIS
1298</para>
1299<informaltable><tgroup cols="1"><tbody><row><entry
1300 align="char">
1301<para>int ioctl(int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001302 <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link>, struct
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001303 dvb_diseqc_master_cmd &#x22C6;cmd);</para>
1304</entry>
1305 </row></tbody></tgroup></informaltable>
1306
1307<para>PARAMETERS
1308</para>
1309<informaltable><tgroup cols="2"><tbody><row><entry
1310 align="char">
1311<para>int fd</para>
1312</entry><entry
1313 align="char">
1314<para>File descriptor returned by a previous call to open().</para>
1315</entry>
1316 </row><row><entry
1317 align="char">
1318<para>int request</para>
1319</entry><entry
1320 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001321<para>Equals <link linkend="FE_DISEQC_SEND_MASTER_CMD">FE_DISEQC_SEND_MASTER_CMD</link> for this
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001322 command.</para>
1323</entry>
1324 </row><row><entry
1325 align="char">
1326<para>struct
1327 dvb_diseqc_master_cmd
1328 *cmd</para>
1329</entry><entry
1330 align="char">
1331<para>Pointer to the command to be transmitted.</para>
1332</entry>
1333 </row></tbody></tgroup></informaltable>
1334
1335<para>ERRORS
1336</para>
1337<informaltable><tgroup cols="2"><tbody><row><entry
1338 align="char">
1339<para>EBADF</para>
1340</entry><entry
1341 align="char">
1342<para>fd is not a valid file descriptor.</para>
1343</entry>
1344 </row><row><entry
1345 align="char">
1346<para>EFAULT</para>
1347</entry><entry
1348 align="char">
1349<para>Seq points to an invalid address.</para>
1350</entry>
1351 </row><row><entry
1352 align="char">
1353<para>EINVAL</para>
1354</entry><entry
1355 align="char">
1356<para>The data structure referred to by seq is invalid in some
1357 way.</para>
1358</entry>
1359 </row><row><entry
1360 align="char">
1361<para>EPERM</para>
1362</entry><entry
1363 align="char">
1364<para>Permission denied (needs read/write access).</para>
1365</entry>
1366 </row><row><entry
1367 align="char">
1368<para>EINTERNAL</para>
1369</entry><entry
1370 align="char">
1371<para>Internal error in the device driver.</para>
1372</entry>
1373</row></tbody></tgroup></informaltable>
1374</section>
1375
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001376<section id="FE_DISEQC_RECV_SLAVE_REPLY">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001377<title>FE_DISEQC_RECV_SLAVE_REPLY</title>
1378<para>DESCRIPTION
1379</para>
1380<informaltable><tgroup cols="1"><tbody><row><entry
1381 align="char">
1382<para>This ioctl call is used to receive reply to a DiSEqC 2.0 command.</para>
1383</entry>
1384 </row></tbody></tgroup></informaltable>
1385
1386<para>SYNOPSIS
1387</para>
1388<informaltable><tgroup cols="1"><tbody><row><entry
1389 align="char">
1390<para>int ioctl(int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001391 <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link>, struct
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001392 dvb_diseqc_slave_reply &#x22C6;reply);</para>
1393</entry>
1394 </row></tbody></tgroup></informaltable>
1395
1396<para>PARAMETERS
1397</para>
1398<informaltable><tgroup cols="2"><tbody><row><entry
1399 align="char">
1400<para>int fd</para>
1401</entry><entry
1402 align="char">
1403<para>File descriptor returned by a previous call to open().</para>
1404</entry>
1405 </row><row><entry
1406 align="char">
1407<para>int request</para>
1408</entry><entry
1409 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001410<para>Equals <link linkend="FE_DISEQC_RECV_SLAVE_REPLY">FE_DISEQC_RECV_SLAVE_REPLY</link> for this
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001411 command.</para>
1412</entry>
1413 </row><row><entry
1414 align="char">
1415<para>struct
1416 dvb_diseqc_slave_reply
1417 *reply</para>
1418</entry><entry
1419 align="char">
1420<para>Pointer to the command to be received.</para>
1421</entry>
1422 </row></tbody></tgroup></informaltable>
1423<para>ERRORS
1424</para>
1425<informaltable><tgroup cols="2"><tbody><row><entry
1426 align="char">
1427<para>EBADF</para>
1428</entry><entry
1429 align="char">
1430<para>fd is not a valid file descriptor.</para>
1431</entry>
1432 </row><row><entry
1433 align="char">
1434<para>EFAULT</para>
1435</entry><entry
1436 align="char">
1437<para>Seq points to an invalid address.</para>
1438</entry>
1439 </row><row><entry
1440 align="char">
1441<para>EINVAL</para>
1442</entry><entry
1443 align="char">
1444<para>The data structure referred to by seq is invalid in some
1445 way.</para>
1446</entry>
1447 </row><row><entry
1448 align="char">
1449<para>EPERM</para>
1450</entry><entry
1451 align="char">
1452<para>Permission denied (needs read/write access).</para>
1453</entry>
1454 </row><row><entry
1455 align="char">
1456<para>EINTERNAL</para>
1457</entry><entry
1458 align="char">
1459<para>Internal error in the device driver.</para>
1460</entry>
1461 </row></tbody></tgroup></informaltable>
1462</section>
1463
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001464<section id="FE_DISEQC_SEND_BURST">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001465<title>FE_DISEQC_SEND_BURST</title>
1466<para>DESCRIPTION
1467</para>
1468<informaltable><tgroup cols="1"><tbody><row><entry
1469 align="char">
1470<para>This ioctl call is used to send a 22KHz tone burst.</para>
1471</entry>
1472 </row></tbody></tgroup></informaltable>
1473
1474<para>SYNOPSIS
1475</para>
1476<informaltable><tgroup cols="1"><tbody><row><entry
1477 align="char">
1478<para>int ioctl(int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001479 <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link>, fe_sec_mini_cmd_t burst);</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001480</entry>
1481 </row></tbody></tgroup></informaltable>
1482
1483<para>PARAMETERS
1484</para>
1485<informaltable><tgroup cols="2"><tbody><row><entry
1486 align="char">
1487<para>int fd</para>
1488</entry><entry
1489 align="char">
1490<para>File descriptor returned by a previous call to open().</para>
1491</entry>
1492 </row><row><entry
1493 align="char">
1494<para>int request</para>
1495</entry><entry
1496 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001497<para>Equals <link linkend="FE_DISEQC_SEND_BURST">FE_DISEQC_SEND_BURST</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001498</entry>
1499 </row><row><entry
1500 align="char">
1501<para>fe_sec_mini_cmd_t
1502 burst</para>
1503</entry><entry
1504 align="char">
1505<para>burst A or B.</para>
1506</entry>
1507 </row></tbody></tgroup></informaltable>
1508
1509<para>ERRORS
1510</para>
1511<informaltable><tgroup cols="2"><tbody><row><entry
1512 align="char">
1513<para>EBADF</para>
1514</entry><entry
1515 align="char">
1516<para>fd is not a valid file descriptor.</para>
1517</entry>
1518 </row><row><entry
1519 align="char">
1520<para>EFAULT</para>
1521</entry><entry
1522 align="char">
1523<para>Seq points to an invalid address.</para>
1524</entry>
1525 </row><row><entry
1526 align="char">
1527<para>EINVAL</para>
1528</entry><entry
1529 align="char">
1530<para>The data structure referred to by seq is invalid in some
1531 way.</para>
1532</entry>
1533 </row><row><entry
1534 align="char">
1535<para>EPERM</para>
1536</entry><entry
1537 align="char">
1538<para>Permission denied (needs read/write access).</para>
1539</entry>
1540 </row><row><entry
1541 align="char">
1542<para>EINTERNAL</para>
1543</entry><entry
1544 align="char">
1545<para>Internal error in the device driver.</para>
1546</entry>
1547</row></tbody></tgroup></informaltable>
1548</section>
1549
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001550<section id="FE_SET_TONE">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001551<title>FE_SET_TONE</title>
1552<para>DESCRIPTION
1553</para>
1554<informaltable><tgroup cols="1"><tbody><row><entry
1555 align="char">
1556<para>This call is used to set the generation of the continuous 22kHz tone. This call
1557 requires read/write permissions.</para>
1558</entry>
1559 </row></tbody></tgroup></informaltable>
1560<para>SYNOPSIS
1561</para>
1562<informaltable><tgroup cols="1"><tbody><row><entry
1563 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001564<para>int ioctl(int fd, int request = <link linkend="FE_SET_TONE">FE_SET_TONE</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001565 fe_sec_tone_mode_t tone);</para>
1566</entry>
1567 </row></tbody></tgroup></informaltable>
1568<para>PARAMETERS
1569</para>
1570<informaltable><tgroup cols="2"><tbody><row><entry
1571 align="char">
1572<para>int fd</para>
1573</entry><entry
1574 align="char">
1575<para>File descriptor returned by a previous call to open().</para>
1576</entry>
1577 </row><row><entry
1578 align="char">
1579<para>int request</para>
1580</entry><entry
1581 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001582<para>Equals <link linkend="FE_SET_TONE">FE_SET_TONE</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001583</entry>
1584 </row><row><entry
1585 align="char">
1586<para>fe_sec_tone_mode_t
1587 tone</para>
1588</entry><entry
1589 align="char">
1590<para>The requested tone generation mode (on/off).</para>
1591</entry>
1592 </row></tbody></tgroup></informaltable>
1593<para>ERRORS
1594</para>
1595<informaltable><tgroup cols="2"><tbody><row><entry
1596 align="char">
1597<para>ENODEV</para>
1598</entry><entry
1599 align="char">
1600<para>Device driver not loaded/available.</para>
1601</entry>
1602 </row><row><entry
1603 align="char">
1604<para>EBUSY</para>
1605</entry><entry
1606 align="char">
1607<para>Device or resource busy.</para>
1608</entry>
1609 </row><row><entry
1610 align="char">
1611<para>EINVAL</para>
1612</entry><entry
1613 align="char">
1614<para>Invalid argument.</para>
1615</entry>
1616 </row><row><entry
1617 align="char">
1618<para>EPERM</para>
1619</entry><entry
1620 align="char">
1621<para>File not opened with read permissions.</para>
1622</entry>
1623 </row><row><entry
1624 align="char">
1625<para>EINTERNAL</para>
1626</entry><entry
1627 align="char">
1628<para>Internal error in the device driver.</para>
1629</entry>
1630</row></tbody></tgroup></informaltable>
1631</section>
1632
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001633<section id="FE_SET_VOLTAGE">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001634<title>FE_SET_VOLTAGE</title>
1635<para>DESCRIPTION
1636</para>
1637<informaltable><tgroup cols="1"><tbody><row><entry
1638 align="char">
1639<para>This call is used to set the bus voltage. This call requires read/write
1640 permissions.</para>
1641</entry>
1642 </row></tbody></tgroup></informaltable>
1643<para>SYNOPSIS
1644</para>
1645<informaltable><tgroup cols="1"><tbody><row><entry
1646 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001647<para>int ioctl(int fd, int request = <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link>,
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001648 fe_sec_voltage_t voltage);</para>
1649</entry>
1650 </row></tbody></tgroup></informaltable>
1651
1652<para>PARAMETERS
1653</para>
1654<informaltable><tgroup cols="2"><tbody><row><entry
1655 align="char">
1656<para>int fd</para>
1657</entry><entry
1658 align="char">
1659<para>File descriptor returned by a previous call to open().</para>
1660</entry>
1661 </row><row><entry
1662 align="char">
1663<para>int request</para>
1664</entry><entry
1665 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001666<para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001667</entry>
1668 </row><row><entry
1669 align="char">
1670<para>fe_sec_voltage_t
1671 voltage</para>
1672</entry><entry
1673 align="char">
1674<para>The requested bus voltage.</para>
1675</entry>
1676 </row></tbody></tgroup></informaltable>
1677
1678<para>ERRORS
1679</para>
1680<informaltable><tgroup cols="2"><tbody><row><entry
1681 align="char">
1682<para>ENODEV</para>
1683</entry><entry
1684 align="char">
1685<para>Device driver not loaded/available.</para>
1686</entry>
1687 </row><row><entry
1688 align="char">
1689<para>EBUSY</para>
1690</entry><entry
1691 align="char">
1692<para>Device or resource busy.</para>
1693</entry>
1694 </row><row><entry
1695 align="char">
1696<para>EINVAL</para>
1697</entry><entry
1698 align="char">
1699<para>Invalid argument.</para>
1700</entry>
1701 </row><row><entry
1702 align="char">
1703<para>EPERM</para>
1704</entry><entry
1705 align="char">
1706<para>File not opened with read permissions.</para>
1707</entry>
1708 </row><row><entry
1709 align="char">
1710<para>EINTERNAL</para>
1711</entry><entry
1712 align="char">
1713<para>Internal error in the device driver.</para>
1714</entry>
1715 </row></tbody></tgroup></informaltable>
1716</section>
1717
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001718<section id="FE_ENABLE_HIGH_LNB_VOLTAGE">
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001719<title>FE_ENABLE_HIGH_LNB_VOLTAGE</title>
1720<para>DESCRIPTION
1721</para>
1722<informaltable><tgroup cols="1"><tbody><row><entry
1723 align="char">
1724<para>If high != 0 enables slightly higher voltages instead of 13/18V (to compensate
1725 for long cables). This call requires read/write permissions. Not all DVB
1726 adapters support this ioctl.</para>
1727</entry>
1728 </row></tbody></tgroup></informaltable>
1729
1730<para>SYNOPSIS
1731</para>
1732<informaltable><tgroup cols="1"><tbody><row><entry
1733 align="char">
1734<para>int ioctl(int fd, int request =
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001735 <link linkend="FE_ENABLE_HIGH_LNB_VOLTAGE">FE_ENABLE_HIGH_LNB_VOLTAGE</link>, int high);</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001736</entry>
1737 </row></tbody></tgroup></informaltable>
1738
1739<para>PARAMETERS
1740</para>
1741<informaltable><tgroup cols="2"><tbody><row><entry
1742 align="char">
1743<para>int fd</para>
1744</entry><entry
1745 align="char">
1746<para>File descriptor returned by a previous call to open().</para>
1747</entry>
1748 </row><row><entry
1749 align="char">
1750<para>int request</para>
1751</entry><entry
1752 align="char">
Mauro Carvalho Chehab6dea3832009-10-24 19:10:46 -03001753<para>Equals <link linkend="FE_SET_VOLTAGE">FE_SET_VOLTAGE</link> for this command.</para>
Mauro Carvalho Chehab8e080c22009-09-13 22:16:04 -03001754</entry>
1755 </row><row><entry
1756 align="char">
1757<para>int high</para>
1758</entry><entry
1759 align="char">
1760<para>The requested bus voltage.</para>
1761</entry>
1762 </row></tbody></tgroup></informaltable>
1763
1764<para>ERRORS
1765</para>
1766<informaltable><tgroup cols="2"><tbody><row><entry
1767 align="char">
1768<para>ENODEV</para>
1769</entry><entry
1770 align="char">
1771<para>Device driver not loaded/available.</para>
1772</entry>
1773 </row><row><entry
1774 align="char">
1775<para>EBUSY</para>
1776</entry><entry
1777 align="char">
1778<para>Device or resource busy.</para>
1779</entry>
1780 </row><row><entry
1781 align="char">
1782<para>EINVAL</para>
1783</entry><entry
1784 align="char">
1785<para>Invalid argument.</para>
1786</entry>
1787 </row><row><entry
1788 align="char">
1789<para>EPERM</para>
1790</entry><entry
1791 align="char">
1792<para>File not opened with read permissions.</para>
1793</entry>
1794 </row><row><entry
1795 align="char">
1796<para>EINTERNAL</para>
1797</entry><entry
1798 align="char">
1799<para>Internal error in the device driver.</para>
1800</entry>
1801 </row></tbody></tgroup></informaltable>
1802</section>
Mauro Carvalho Chehabf0964a72009-10-24 19:55:24 -03001803
1804<section id="FE_SET_FRONTEND_TUNE_MODE">
1805<title>FE_SET_FRONTEND_TUNE_MODE</title>
1806<para>DESCRIPTION</para>
1807<informaltable><tgroup cols="1"><tbody><row>
1808<entry align="char">
1809<para>Allow setting tuner mode flags to the frontend.</para>
1810</entry>
1811</row></tbody></tgroup></informaltable>
1812
1813<para>SYNOPSIS</para>
1814<informaltable><tgroup cols="1"><tbody><row>
1815<entry align="char">
1816<para>int ioctl(int fd, int request =
1817<link linkend="FE_SET_FRONTEND_TUNE_MODE">FE_SET_FRONTEND_TUNE_MODE</link>, unsigned int flags);</para>
1818</entry>
1819</row></tbody></tgroup></informaltable>
1820
1821<para>PARAMETERS</para>
1822<informaltable><tgroup cols="2"><tbody><row>
1823<entry align="char">
1824 <para>unsigned int flags</para>
1825</entry>
1826<entry align="char">
1827<para>
1828FE_TUNE_MODE_ONESHOT When set, this flag will disable any zigzagging or other "normal" tuning behaviour. Additionally, there will be no automatic monitoring of the lock status, and hence no frontend events will be generated. If a frontend device is closed, this flag will be automatically turned off when the device is reopened read-write.
1829</para>
1830</entry>
1831 </row></tbody></tgroup></informaltable>
1832
1833<para>ERRORS</para>
1834<informaltable><tgroup cols="2"><tbody><row>
1835<entry align="char"><para>EINVAL</para></entry>
1836<entry align="char"><para>Invalid argument.</para></entry>
1837 </row></tbody></tgroup></informaltable>
Mauro Carvalho Chehab603c0d802009-10-24 20:19:20 -03001838</section>
1839
1840<section id="FE_DISHNETWORK_SEND_LEGACY_CMD">
1841 <title>FE_DISHNETWORK_SEND_LEGACY_CMD</title>
1842<para>DESCRIPTION</para>
1843<informaltable><tgroup cols="1"><tbody><row>
1844<entry align="char">
1845<para>WARNING: This is a very obscure legacy command, used only at stv0299 driver. Should not be used on newer drivers.</para>
1846<para>It provides a non-standard method for selecting Diseqc voltage on the frontend, for Dish Network legacy switches.</para>
1847<para>As support for this ioctl were added in 2004, this means that such dishes were already legacy in 2004.</para>
1848</entry>
1849</row></tbody></tgroup></informaltable>
1850
1851<para>SYNOPSIS</para>
1852<informaltable><tgroup cols="1"><tbody><row>
1853<entry align="char">
1854<para>int ioctl(int fd, int request =
1855 <link linkend="FE_DISHNETWORK_SEND_LEGACY_CMD">FE_DISHNETWORK_SEND_LEGACY_CMD</link>, unsigned long cmd);</para>
1856</entry>
1857</row></tbody></tgroup></informaltable>
1858
1859<para>PARAMETERS</para>
1860<informaltable><tgroup cols="2"><tbody><row>
1861<entry align="char">
1862 <para>unsigned long cmd</para>
1863</entry>
1864<entry align="char">
1865<para>
1866sends the specified raw cmd to the dish via DISEqC.
1867</para>
1868</entry>
1869 </row></tbody></tgroup></informaltable>
1870
1871<para>ERRORS</para>
1872<informaltable><tgroup cols="1"><tbody><row>
1873<entry align="char">
1874 <para>There are no errors in use for this call</para>
1875</entry>
1876</row></tbody></tgroup></informaltable>
Mauro Carvalho Chehabb8321042009-10-24 21:01:22 -03001877</section>
Mauro Carvalho Chehabf0964a72009-10-24 19:55:24 -03001878
1879</section>
Mauro Carvalho Chehab603c0d802009-10-24 20:19:20 -03001880
Mauro Carvalho Chehabb8321042009-10-24 21:01:22 -03001881&sub-dvbproperty;