• Home
  • Raw
  • Download

Lines Matching defs:pvr2_hdw

161 struct pvr2_hdw {  struct
163 struct usb_device *usb_dev;
164 struct usb_interface *usb_intf;
167 struct v4l2_device v4l2_dev;
170 const struct pvr2_device_desc *hdw_desc;
173 struct workqueue_struct *workqueue;
174 struct work_struct workpoll; /* Update driver state */
177 struct pvr2_stream *vid_stream;
180 struct mutex big_lock_mutex;
181 int big_lock_held; /* For debugging */
187 char name[32];
195 char identifier[32];
198 struct i2c_adapter i2c_adap;
199 struct i2c_algorithm i2c_algo;
200 pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT];
201 int i2c_cx25840_hack_state;
202 int i2c_linked;
205 unsigned int ir_scheme_active; /* IR scheme as seen from the outside */
206 struct IR_i2c_init_data ir_init_data; /* params passed to IR modules */
209 unsigned int freqTable[FREQTABLE_SIZE];
210 unsigned int freqProgSlot;
213 struct mutex ctl_lock_mutex;
214 int ctl_lock_held; /* For debugging */
215 struct urb *ctl_write_urb;
216 struct urb *ctl_read_urb;
217 unsigned char *ctl_write_buffer;
218 unsigned char *ctl_read_buffer;
219 int ctl_write_pend_flag;
220 int ctl_read_pend_flag;
221 int ctl_timeout_flag;
222 struct completion ctl_done;
223 unsigned char cmd_buffer[PVR2_CTL_BUFFSIZE];
224 int cmd_debug_state; // Low level command debugging info
225 unsigned char cmd_debug_code; //
226 unsigned int cmd_debug_write_len; //
227 unsigned int cmd_debug_read_len; //
231 int state_pathway_ok; /* Pathway config is ok */
232 int state_encoder_ok; /* Encoder is operational */
233 int state_encoder_run; /* Encoder is running */
234 int state_encoder_config; /* Encoder is configured */
235 int state_encoder_waitok; /* Encoder pre-wait done */
236 int state_encoder_runok; /* Encoder has run for >= .25 sec */
237 int state_decoder_run; /* Decoder is running */
238 int state_decoder_ready; /* Decoder is stabilized & streamable */
239 int state_usbstream_run; /* FX2 is streaming */
240 int state_decoder_quiescent; /* Decoder idle for minimal interval */
241 int state_pipeline_config; /* Pipeline is configured */
242 int state_pipeline_req; /* Somebody wants to stream */
243 int state_pipeline_pause; /* Pipeline must be paused */
244 int state_pipeline_idle; /* Pipeline not running */
250 unsigned int master_state;
253 int led_on;
256 int state_stale;
258 void (*state_func)(void *);
259 void *state_data;
263 struct timer_list quiescent_timer;
269 struct timer_list decoder_stabilization_timer;
272 struct timer_list encoder_wait_timer;
275 struct timer_list encoder_run_timer;
278 wait_queue_head_t state_wait_data;
281 int force_dirty; /* consider all controls dirty if true */
282 int flag_ok; /* device in known good state */
283 int flag_modulefail; /* true if at least one module failed to load */
284 int flag_disconnected; /* flag_ok == 0 due to disconnect */
285 int flag_init_ok; /* true if structure is fully initialized */
286 int fw1_state; /* current situation with fw1 */
287 int pathway_state; /* one of PVR2_PATHWAY_xxx */
288 int flag_decoder_missed;/* We've noticed missing decoder */
289 int flag_tripped; /* Indicates overall failure to start */
291 unsigned int decoder_client_id;
294 char *fw_buffer;
295 unsigned int fw_size;
296 int fw_cpu_flag; /* True if we are dealing with the CPU */
299 unsigned int tuner_type;
300 int tuner_updated;
301 unsigned int freqValTelevision; /* Current freq for tv mode */
302 unsigned int freqValRadio; /* Current freq for radio mode */
303 unsigned int freqSlotTelevision; /* Current slot for tv mode */
304 unsigned int freqSlotRadio; /* Current slot for radio mode */
305 unsigned int freqSelector; /* 0=radio 1=television */
306 int freqDirty;
309 struct v4l2_tuner tuner_signal_info;
310 int tuner_signal_stale;
313 struct v4l2_cropcap cropcap_info;
314 int cropcap_stale;
317 v4l2_std_id std_mask_eeprom; // Hardware supported selections
318 v4l2_std_id std_mask_avail; // Which standards we may select from
319 v4l2_std_id std_mask_cur; // Currently selected standard(s)
320 int std_enum_cur; // selected standard enumeration value
321 int std_dirty; // True if std_mask_cur has changed
322 struct pvr2_ctl_info std_info_enum;
323 struct pvr2_ctl_info std_info_avail;
324 struct pvr2_ctl_info std_info_cur;
325 struct pvr2_ctl_info std_info_detect;
328 const char *std_mask_ptrs[32];
329 char std_mask_names[32][16];
331 int unit_number; /* ID for driver instance */
332 unsigned long serial_number; /* ID for hardware itself */
334 char bus_info[32]; /* Bus location info */
338 int v4l_minor_number_video;
339 int v4l_minor_number_vbi;
340 int v4l_minor_number_radio;
343 unsigned int input_avail_mask;
345 unsigned int input_allowed_mask;
348 int eeprom_addr;
350 enum pvr2_config active_stream_type;
351 enum pvr2_config desired_stream_type;
354 struct cx2341x_mpeg_params enc_cur_state;
355 struct cx2341x_mpeg_params enc_ctl_state;
357 int enc_stale;
359 int enc_unsafe_stale;
361 int enc_cur_valid;
392 unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *); argument