aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
index 4971335c46d3..af06e6c4b8d5 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
@@ -163,6 +163,11 @@ struct pvr2_decoder_ctrl {
163#define FW1_STATE_RELOAD 3 163#define FW1_STATE_RELOAD 3
164#define FW1_STATE_OK 4 164#define FW1_STATE_OK 4
165 165
166/* What state the device is in if it is a hybrid */
167#define PVR2_PATHWAY_UNKNOWN 0
168#define PVR2_PATHWAY_ANALOG 1
169#define PVR2_PATHWAY_DIGITAL 2
170
166typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16); 171typedef int (*pvr2_i2c_func)(struct pvr2_hdw *,u8,u8 *,u16,u8 *, u16);
167#define PVR2_I2C_FUNC_CNT 128 172#define PVR2_I2C_FUNC_CNT 128
168 173
@@ -229,6 +234,7 @@ struct pvr2_hdw {
229 234
230 /* Bits of state that describe what is going on with various parts 235 /* Bits of state that describe what is going on with various parts
231 of the driver. */ 236 of the driver. */
237 int state_pathway_ok; /* Pathway config is ok */
232 int state_encoder_ok; /* Encoder is operational */ 238 int state_encoder_ok; /* Encoder is operational */
233 int state_encoder_run; /* Encoder is running */ 239 int state_encoder_run; /* Encoder is running */
234 int state_encoder_config; /* Encoder is configured */ 240 int state_encoder_config; /* Encoder is configured */
@@ -267,6 +273,7 @@ struct pvr2_hdw {
267 int flag_disconnected; /* flag_ok == 0 due to disconnect */ 273 int flag_disconnected; /* flag_ok == 0 due to disconnect */
268 int flag_init_ok; /* true if structure is fully initialized */ 274 int flag_init_ok; /* true if structure is fully initialized */
269 int fw1_state; /* current situation with fw1 */ 275 int fw1_state; /* current situation with fw1 */
276 int pathway_state; /* one of PVR2_PATHWAY_xxx */
270 int flag_decoder_missed;/* We've noticed missing decoder */ 277 int flag_decoder_missed;/* We've noticed missing decoder */
271 int flag_tripped; /* Indicates overall failure to start */ 278 int flag_tripped; /* Indicates overall failure to start */
272 279