Lines Matching defs:pvr2_hdw

147 struct pvr2_hdw {  struct
149 struct usb_device *usb_dev;
150 struct usb_interface *usb_intf;
153 struct v4l2_device v4l2_dev;
156 const struct pvr2_device_desc *hdw_desc;
159 struct work_struct workpoll; /* Update driver state */
162 struct pvr2_stream *vid_stream;
165 struct mutex big_lock_mutex;
166 int big_lock_held; /* For debugging */
172 char name[32];
180 char identifier[32];
183 struct i2c_adapter i2c_adap;
184 struct i2c_algorithm i2c_algo;
185 pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT];
186 int i2c_cx25840_hack_state;
187 int i2c_linked;
190 unsigned int ir_scheme_active; /* IR scheme as seen from the outside */
191 struct IR_i2c_init_data ir_init_data; /* params passed to IR modules */
194 unsigned int freqTable[FREQTABLE_SIZE];
195 unsigned int freqProgSlot;
198 struct mutex ctl_lock_mutex;
199 int ctl_lock_held; /* For debugging */
200 struct urb *ctl_write_urb;
201 struct urb *ctl_read_urb;
202 unsigned char *ctl_write_buffer;
203 unsigned char *ctl_read_buffer;
204 int ctl_write_pend_flag;
205 int ctl_read_pend_flag;
206 int ctl_timeout_flag;
207 struct completion ctl_done;
208 unsigned char cmd_buffer[PVR2_CTL_BUFFSIZE];
209 int cmd_debug_state; // Low level command debugging info
210 unsigned char cmd_debug_code; //
211 unsigned int cmd_debug_write_len; //
212 unsigned int cmd_debug_read_len; //
216 int state_pathway_ok; /* Pathway config is ok */
217 int state_encoder_ok; /* Encoder is operational */
218 int state_encoder_run; /* Encoder is running */
219 int state_encoder_config; /* Encoder is configured */
220 int state_encoder_waitok; /* Encoder pre-wait done */
221 int state_encoder_runok; /* Encoder has run for >= .25 sec */
222 int state_decoder_run; /* Decoder is running */
223 int state_decoder_ready; /* Decoder is stabilized & streamable */
224 int state_usbstream_run; /* FX2 is streaming */
225 int state_decoder_quiescent; /* Decoder idle for minimal interval */
226 int state_pipeline_config; /* Pipeline is configured */
227 int state_pipeline_req; /* Somebody wants to stream */
228 int state_pipeline_pause; /* Pipeline must be paused */
229 int state_pipeline_idle; /* Pipeline not running */
235 unsigned int master_state;
238 int led_on;
241 int state_stale;
243 void (*state_func)(void *);
244 void *state_data;
248 struct timer_list quiescent_timer;
254 struct timer_list decoder_stabilization_timer;
257 struct timer_list encoder_wait_timer;
260 struct timer_list encoder_run_timer;
263 wait_queue_head_t state_wait_data;
266 int force_dirty; /* consider all controls dirty if true */
267 int flag_ok; /* device in known good state */
268 int flag_modulefail; /* true if at least one module failed to load */
269 int flag_disconnected; /* flag_ok == 0 due to disconnect */
270 int flag_init_ok; /* true if structure is fully initialized */
271 int fw1_state; /* current situation with fw1 */
272 int pathway_state; /* one of PVR2_PATHWAY_xxx */
273 int flag_decoder_missed;/* We've noticed missing decoder */
274 int flag_tripped; /* Indicates overall failure to start */
276 unsigned int decoder_client_id;
279 char *fw_buffer;
280 unsigned int fw_size;
281 int fw_cpu_flag; /* True if we are dealing with the CPU */
284 unsigned int tuner_type;
285 int tuner_updated;
286 unsigned int freqValTelevision; /* Current freq for tv mode */
287 unsigned int freqValRadio; /* Current freq for radio mode */
288 unsigned int freqSlotTelevision; /* Current slot for tv mode */
289 unsigned int freqSlotRadio; /* Current slot for radio mode */
290 unsigned int freqSelector; /* 0=radio 1=television */
291 int freqDirty;
294 struct v4l2_tuner tuner_signal_info;
295 int tuner_signal_stale;
298 struct v4l2_cropcap cropcap_info;
299 int cropcap_stale;
302 v4l2_std_id std_mask_eeprom; // Hardware supported selections
303 v4l2_std_id std_mask_avail; // Which standards we may select from
304 v4l2_std_id std_mask_cur; // Currently selected standard(s)
305 int std_enum_cur; // selected standard enumeration value
306 int std_dirty; // True if std_mask_cur has changed
307 struct pvr2_ctl_info std_info_enum;
308 struct pvr2_ctl_info std_info_avail;
309 struct pvr2_ctl_info std_info_cur;
310 struct pvr2_ctl_info std_info_detect;
313 const char *std_mask_ptrs[32];
314 char std_mask_names[32][16];
316 int unit_number; /* ID for driver instance */
317 unsigned long serial_number; /* ID for hardware itself */
319 char bus_info[32]; /* Bus location info */
323 int v4l_minor_number_video;
324 int v4l_minor_number_vbi;
325 int v4l_minor_number_radio;
328 unsigned int input_avail_mask;
330 unsigned int input_allowed_mask;
333 int eeprom_addr;
335 enum pvr2_config active_stream_type;
336 enum pvr2_config desired_stream_type;
339 struct cx2341x_mpeg_params enc_cur_state;
340 struct cx2341x_mpeg_params enc_ctl_state;
342 int enc_stale;
344 int enc_unsafe_stale;
346 int enc_cur_valid;
377 unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *); argument