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.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
index 2afbd9bcedd3..5d75eb5211b1 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
@@ -138,22 +138,6 @@ struct pvr2_ctrl {
138}; 138};
139 139
140 140
141struct pvr2_decoder_ctrl {
142 void *ctxt;
143 void (*detach)(void *);
144 void (*enable)(void *,int);
145 void (*force_reset)(void *);
146};
147
148#define PVR2_I2C_PEND_DETECT 0x01 /* Need to detect a client type */
149#define PVR2_I2C_PEND_CLIENT 0x02 /* Client needs a specific update */
150#define PVR2_I2C_PEND_REFRESH 0x04 /* Client has specific pending bits */
151#define PVR2_I2C_PEND_STALE 0x08 /* Broadcast pending bits */
152
153#define PVR2_I2C_PEND_ALL (PVR2_I2C_PEND_DETECT |\
154 PVR2_I2C_PEND_CLIENT |\
155 PVR2_I2C_PEND_REFRESH |\
156 PVR2_I2C_PEND_STALE)
157 141
158/* Disposition of firmware1 loading situation */ 142/* Disposition of firmware1 loading situation */
159#define FW1_STATE_UNKNOWN 0 143#define FW1_STATE_UNKNOWN 0
@@ -187,7 +171,6 @@ struct pvr2_hdw {
187 /* Kernel worker thread handling */ 171 /* Kernel worker thread handling */
188 struct workqueue_struct *workqueue; 172 struct workqueue_struct *workqueue;
189 struct work_struct workpoll; /* Update driver state */ 173 struct work_struct workpoll; /* Update driver state */
190 struct work_struct worki2csync; /* Update i2c clients */
191 174
192 /* Video spigot */ 175 /* Video spigot */
193 struct pvr2_stream *vid_stream; 176 struct pvr2_stream *vid_stream;
@@ -216,12 +199,6 @@ struct pvr2_hdw {
216 pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT]; 199 pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT];
217 int i2c_cx25840_hack_state; 200 int i2c_cx25840_hack_state;
218 int i2c_linked; 201 int i2c_linked;
219 unsigned int i2c_pend_types; /* Which types of update are needed */
220 unsigned long i2c_pend_mask; /* Change bits we need to scan */
221 unsigned long i2c_stale_mask; /* Pending broadcast change bits */
222 unsigned long i2c_active_mask; /* All change bits currently in use */
223 struct list_head i2c_clients;
224 struct mutex i2c_list_lock;
225 202
226 /* Frequency table */ 203 /* Frequency table */
227 unsigned int freqTable[FREQTABLE_SIZE]; 204 unsigned int freqTable[FREQTABLE_SIZE];
@@ -297,7 +274,6 @@ struct pvr2_hdw {
297 int flag_decoder_missed;/* We've noticed missing decoder */ 274 int flag_decoder_missed;/* We've noticed missing decoder */
298 int flag_tripped; /* Indicates overall failure to start */ 275 int flag_tripped; /* Indicates overall failure to start */
299 276
300 struct pvr2_decoder_ctrl *decoder_ctrl;
301 unsigned int decoder_client_id; 277 unsigned int decoder_client_id;
302 278
303 // CPU firmware info (used to help find / save firmware data) 279 // CPU firmware info (used to help find / save firmware data)
@@ -305,10 +281,6 @@ struct pvr2_hdw {
305 unsigned int fw_size; 281 unsigned int fw_size;
306 int fw_cpu_flag; /* True if we are dealing with the CPU */ 282 int fw_cpu_flag; /* True if we are dealing with the CPU */
307 283
308 // True if there is a request to trigger logging of state in each
309 // module.
310 int log_requested;
311
312 /* Tuner / frequency control stuff */ 284 /* Tuner / frequency control stuff */
313 unsigned int tuner_type; 285 unsigned int tuner_type;
314 int tuner_updated; 286 int tuner_updated;
@@ -406,7 +378,6 @@ struct pvr2_hdw {
406 378
407/* This function gets the current frequency */ 379/* This function gets the current frequency */
408unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *); 380unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *);
409void pvr2_hdw_set_decoder(struct pvr2_hdw *,struct pvr2_decoder_ctrl *);
410 381
411void pvr2_hdw_status_poll(struct pvr2_hdw *); 382void pvr2_hdw_status_poll(struct pvr2_hdw *);
412 383