diff options
-rw-r--r-- | Documentation/DocBook/media/dvb/frontend.xml | 48 | ||||
-rw-r--r-- | include/linux/dvb/frontend.h | 29 |
2 files changed, 57 insertions, 20 deletions
diff --git a/Documentation/DocBook/media/dvb/frontend.xml b/Documentation/DocBook/media/dvb/frontend.xml index 81082fb84b1c..1ab2e1af81f1 100644 --- a/Documentation/DocBook/media/dvb/frontend.xml +++ b/Documentation/DocBook/media/dvb/frontend.xml | |||
@@ -207,18 +207,44 @@ spec.</para> | |||
207 | <para>Several functions of the frontend device use the fe_status data type defined | 207 | <para>Several functions of the frontend device use the fe_status data type defined |
208 | by</para> | 208 | by</para> |
209 | <programlisting> | 209 | <programlisting> |
210 | typedef enum fe_status { | 210 | typedef enum fe_status { |
211 | FE_HAS_SIGNAL = 0x01, /⋆ found something above the noise level ⋆/ | 211 | FE_HAS_SIGNAL = 0x01, |
212 | FE_HAS_CARRIER = 0x02, /⋆ found a DVB signal ⋆/ | 212 | FE_HAS_CARRIER = 0x02, |
213 | FE_HAS_VITERBI = 0x04, /⋆ FEC is stable ⋆/ | 213 | FE_HAS_VITERBI = 0x04, |
214 | FE_HAS_SYNC = 0x08, /⋆ found sync bytes ⋆/ | 214 | FE_HAS_SYNC = 0x08, |
215 | FE_HAS_LOCK = 0x10, /⋆ everything's working... ⋆/ | 215 | FE_HAS_LOCK = 0x10, |
216 | FE_TIMEDOUT = 0x20, /⋆ no lock within the last ~2 seconds ⋆/ | 216 | FE_TIMEDOUT = 0x20, |
217 | FE_REINIT = 0x40 /⋆ frontend was reinitialized, ⋆/ | 217 | FE_REINIT = 0x40, |
218 | } fe_status_t; /⋆ application is recommned to reset ⋆/ | 218 | } fe_status_t; |
219 | </programlisting> | 219 | </programlisting> |
220 | <para>to indicate the current state and/or state changes of the frontend hardware. | 220 | <para>to indicate the current state and/or state changes of the frontend hardware: |
221 | </para> | 221 | </para> |
222 | |||
223 | <informaltable><tgroup cols="2"><tbody> | ||
224 | <row> | ||
225 | <entry align="char">FE_HAS_SIGNAL</entry> | ||
226 | <entry align="char">The frontend has found something above the noise level</entry> | ||
227 | </row><row> | ||
228 | <entry align="char">FE_HAS_CARRIER</entry> | ||
229 | <entry align="char">The frontend has found a DVB signal</entry> | ||
230 | </row><row> | ||
231 | <entry align="char">FE_HAS_VITERBI</entry> | ||
232 | <entry align="char">The frontend FEC code is stable</entry> | ||
233 | </row><row> | ||
234 | <entry align="char">FE_HAS_SYNC</entry> | ||
235 | <entry align="char">Syncronization bytes was found</entry> | ||
236 | </row><row> | ||
237 | <entry align="char">FE_HAS_LOCK</entry> | ||
238 | <entry align="char">The DVB were locked and everything is working</entry> | ||
239 | </row><row> | ||
240 | <entry align="char">FE_TIMEDOUT</entry> | ||
241 | <entry align="char">no lock within the last about 2 seconds</entry> | ||
242 | </row><row> | ||
243 | <entry align="char">FE_REINIT</entry> | ||
244 | <entry align="char">The frontend was reinitialized, application is | ||
245 | recommended to reset DiSEqC, tone and parameters</entry> | ||
246 | </row> | ||
247 | </tbody></tgroup></informaltable> | ||
222 | 248 | ||
223 | </section> | 249 | </section> |
224 | 250 | ||
diff --git a/include/linux/dvb/frontend.h b/include/linux/dvb/frontend.h index c92b4d64e013..bb51edfc72a2 100644 --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h | |||
@@ -121,16 +121,27 @@ typedef enum fe_sec_mini_cmd { | |||
121 | } fe_sec_mini_cmd_t; | 121 | } fe_sec_mini_cmd_t; |
122 | 122 | ||
123 | 123 | ||
124 | /** | ||
125 | * enum fe_status - enumerates the possible frontend status | ||
126 | * @FE_HAS_SIGNAL: found something above the noise level | ||
127 | * @FE_HAS_CARRIER: found a DVB signal | ||
128 | * @FE_HAS_VITERBI: FEC is stable | ||
129 | * @FE_HAS_SYNC: found sync bytes | ||
130 | * @FE_HAS_LOCK: everything's working | ||
131 | * @FE_TIMEDOUT: no lock within the last ~2 seconds | ||
132 | * @FE_REINIT: frontend was reinitialized, application is recommended | ||
133 | * to reset DiSEqC, tone and parameters | ||
134 | */ | ||
135 | |||
124 | typedef enum fe_status { | 136 | typedef enum fe_status { |
125 | FE_HAS_SIGNAL = 0x01, /* found something above the noise level */ | 137 | FE_HAS_SIGNAL = 0x01, |
126 | FE_HAS_CARRIER = 0x02, /* found a DVB signal */ | 138 | FE_HAS_CARRIER = 0x02, |
127 | FE_HAS_VITERBI = 0x04, /* FEC is stable */ | 139 | FE_HAS_VITERBI = 0x04, |
128 | FE_HAS_SYNC = 0x08, /* found sync bytes */ | 140 | FE_HAS_SYNC = 0x08, |
129 | FE_HAS_LOCK = 0x10, /* everything's working... */ | 141 | FE_HAS_LOCK = 0x10, |
130 | FE_TIMEDOUT = 0x20, /* no lock within the last ~2 seconds */ | 142 | FE_TIMEDOUT = 0x20, |
131 | FE_REINIT = 0x40 /* frontend was reinitialized, */ | 143 | FE_REINIT = 0x40, |
132 | } fe_status_t; /* application is recommended to reset */ | 144 | } fe_status_t; |
133 | /* DiSEqC, tone and parameters */ | ||
134 | 145 | ||
135 | typedef enum fe_spectral_inversion { | 146 | typedef enum fe_spectral_inversion { |
136 | INVERSION_OFF, | 147 | INVERSION_OFF, |