frontend.xml 51 KB

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