Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pvrusb2-hdw.h File Reference
#include <linux/usb.h>
#include <linux/videodev2.h>
#include "pvrusb2-io.h"
#include "pvrusb2-ctrl.h"

Go to the source code of this file.

Data Structures

struct  pvr2_hdw_debug_info
 

Macros

#define PVR2_CID_STDCUR   2
 
#define PVR2_CID_STDAVAIL   3
 
#define PVR2_CID_INPUT   4
 
#define PVR2_CID_AUDIOMODE   5
 
#define PVR2_CID_FREQUENCY   6
 
#define PVR2_CID_HRES   7
 
#define PVR2_CID_VRES   8
 
#define PVR2_CID_CROPL   9
 
#define PVR2_CID_CROPT   10
 
#define PVR2_CID_CROPW   11
 
#define PVR2_CID_CROPH   12
 
#define PVR2_CID_CROPCAPPAN   13
 
#define PVR2_CID_CROPCAPPAD   14
 
#define PVR2_CID_CROPCAPBL   15
 
#define PVR2_CID_CROPCAPBT   16
 
#define PVR2_CID_CROPCAPBW   17
 
#define PVR2_CID_CROPCAPBH   18
 
#define PVR2_CID_STDDETECT   19
 
#define PVR2_CVAL_INPUT_TV   0
 
#define PVR2_CVAL_INPUT_DTV   1
 
#define PVR2_CVAL_INPUT_COMPOSITE   2
 
#define PVR2_CVAL_INPUT_SVIDEO   3
 
#define PVR2_CVAL_INPUT_RADIO   4
 
#define PVR2_STATE_NONE   0
 
#define PVR2_STATE_DEAD   1
 
#define PVR2_STATE_COLD   2
 
#define PVR2_STATE_WARM   3
 
#define PVR2_STATE_ERROR   4
 
#define PVR2_STATE_READY   5
 
#define PVR2_STATE_RUN   6
 

Enumerations

enum  pvr2_config {
  pvr2_config_empty, pvr2_config_mpeg, pvr2_config_vbi, pvr2_config_pcm,
  pvr2_config_rawvideo
}
 
enum  pvr2_v4l_type { pvr2_v4l_type_video, pvr2_v4l_type_vbi, pvr2_v4l_type_radio }
 

Functions

const charpvr2_config_get_name (enum pvr2_config)
 
struct pvr2_hdwpvr2_hdw_create (struct usb_interface *intf, const struct usb_device_id *devid)
 
int pvr2_hdw_initialize (struct pvr2_hdw *, void(*callback_func)(void *), void *callback_data)
 
void pvr2_hdw_destroy (struct pvr2_hdw *)
 
int pvr2_hdw_dev_ok (struct pvr2_hdw *)
 
int pvr2_hdw_get_unit_number (struct pvr2_hdw *)
 
struct usb_device * pvr2_hdw_get_dev (struct pvr2_hdw *)
 
unsigned long pvr2_hdw_get_sn (struct pvr2_hdw *)
 
const charpvr2_hdw_get_bus_info (struct pvr2_hdw *)
 
const charpvr2_hdw_get_device_identifier (struct pvr2_hdw *)
 
void pvr2_hdw_disconnect (struct pvr2_hdw *)
 
unsigned int pvr2_hdw_get_ctrl_count (struct pvr2_hdw *)
 
struct pvr2_ctrlpvr2_hdw_get_ctrl_by_index (struct pvr2_hdw *, unsigned int)
 
struct pvr2_ctrlpvr2_hdw_get_ctrl_by_id (struct pvr2_hdw *, unsigned int)
 
struct pvr2_ctrlpvr2_hdw_get_ctrl_v4l (struct pvr2_hdw *, unsigned int ctl_id)
 
struct pvr2_ctrlpvr2_hdw_get_ctrl_nextv4l (struct pvr2_hdw *, unsigned int ctl_id)
 
int pvr2_hdw_commit_ctl (struct pvr2_hdw *)
 
unsigned int pvr2_hdw_get_input_available (struct pvr2_hdw *)
 
unsigned int pvr2_hdw_get_input_allowed (struct pvr2_hdw *)
 
int pvr2_hdw_set_input_allowed (struct pvr2_hdw *, unsigned int change_mask, unsigned int change_val)
 
const charpvr2_hdw_get_driver_name (struct pvr2_hdw *)
 
void pvr2_hdw_execute_tuner_poll (struct pvr2_hdw *)
 
int pvr2_hdw_get_tuner_status (struct pvr2_hdw *, struct v4l2_tuner *)
 
int pvr2_hdw_get_cropcap (struct pvr2_hdw *, struct v4l2_cropcap *)
 
int pvr2_hdw_is_hsm (struct pvr2_hdw *)
 
const charpvr2_hdw_get_type (struct pvr2_hdw *)
 
const charpvr2_hdw_get_desc (struct pvr2_hdw *)
 
int pvr2_hdw_set_streaming (struct pvr2_hdw *, int)
 
int pvr2_hdw_get_streaming (struct pvr2_hdw *)
 
int pvr2_hdw_get_state (struct pvr2_hdw *)
 
int pvr2_hdw_set_stream_type (struct pvr2_hdw *, enum pvr2_config)
 
struct pvr2_streampvr2_hdw_get_video_stream (struct pvr2_hdw *)
 
void pvr2_hdw_cpufw_set_enabled (struct pvr2_hdw *, int mode, int enable_flag)
 
int pvr2_hdw_cpufw_get_enabled (struct pvr2_hdw *)
 
int pvr2_hdw_cpufw_get (struct pvr2_hdw *, unsigned int offs, char *buf, unsigned int cnt)
 
int pvr2_hdw_v4l_get_minor_number (struct pvr2_hdw *, enum pvr2_v4l_type index)
 
void pvr2_hdw_v4l_store_minor_number (struct pvr2_hdw *, enum pvr2_v4l_type index, int)
 
int pvr2_hdw_register_access (struct pvr2_hdw *, struct v4l2_dbg_match *match, u64 reg_id, int setFl, u64 *val_ptr)
 
int pvr2_send_request (struct pvr2_hdw *, void *write_ptr, unsigned int write_len, void *read_ptr, unsigned int read_len)
 
int pvr2_write_register (struct pvr2_hdw *, u16, u32)
 
void pvr2_hdw_render_useless (struct pvr2_hdw *)
 
void pvr2_hdw_cpureset_assert (struct pvr2_hdw *, int)
 
void pvr2_hdw_device_reset (struct pvr2_hdw *)
 
int pvr2_hdw_untrip (struct pvr2_hdw *)
 
int pvr2_hdw_cmd_deep_reset (struct pvr2_hdw *)
 
int pvr2_hdw_cmd_powerup (struct pvr2_hdw *)
 
int pvr2_hdw_cmd_powerdown (struct pvr2_hdw *)
 
int pvr2_hdw_cmd_decoder_reset (struct pvr2_hdw *)
 
int pvr2_hdw_gpio_get_dir (struct pvr2_hdw *hdw, u32 *)
 
int pvr2_hdw_gpio_get_out (struct pvr2_hdw *hdw, u32 *)
 
int pvr2_hdw_gpio_get_in (struct pvr2_hdw *hdw, u32 *)
 
int pvr2_hdw_gpio_chg_dir (struct pvr2_hdw *hdw, u32 msk, u32 val)
 
int pvr2_hdw_gpio_chg_out (struct pvr2_hdw *hdw, u32 msk, u32 val)
 
void pvr2_hdw_get_debug_info_unlocked (const struct pvr2_hdw *hdw, struct pvr2_hdw_debug_info *)
 
void pvr2_hdw_get_debug_info_locked (struct pvr2_hdw *hdw, struct pvr2_hdw_debug_info *)
 
unsigned int pvr2_hdw_state_report (struct pvr2_hdw *hdw, char *buf_ptr, unsigned int buf_size)
 
void pvr2_hdw_trigger_module_log (struct pvr2_hdw *hdw)
 
int pvr2_upload_firmware2 (struct pvr2_hdw *hdw)
 

Macro Definition Documentation

#define PVR2_CID_AUDIOMODE   5

Definition at line 34 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPBH   18

Definition at line 47 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPBL   15

Definition at line 44 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPBT   16

Definition at line 45 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPBW   17

Definition at line 46 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPPAD   14

Definition at line 43 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPCAPPAN   13

Definition at line 42 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPH   12

Definition at line 41 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPL   9

Definition at line 38 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPT   10

Definition at line 39 of file pvrusb2-hdw.h.

#define PVR2_CID_CROPW   11

Definition at line 40 of file pvrusb2-hdw.h.

#define PVR2_CID_FREQUENCY   6

Definition at line 35 of file pvrusb2-hdw.h.

#define PVR2_CID_HRES   7

Definition at line 36 of file pvrusb2-hdw.h.

#define PVR2_CID_INPUT   4

Definition at line 33 of file pvrusb2-hdw.h.

#define PVR2_CID_STDAVAIL   3

Definition at line 32 of file pvrusb2-hdw.h.

#define PVR2_CID_STDCUR   2

Definition at line 31 of file pvrusb2-hdw.h.

#define PVR2_CID_STDDETECT   19

Definition at line 48 of file pvrusb2-hdw.h.

#define PVR2_CID_VRES   8

Definition at line 37 of file pvrusb2-hdw.h.

#define PVR2_CVAL_INPUT_COMPOSITE   2

Definition at line 53 of file pvrusb2-hdw.h.

#define PVR2_CVAL_INPUT_DTV   1

Definition at line 52 of file pvrusb2-hdw.h.

#define PVR2_CVAL_INPUT_RADIO   4

Definition at line 55 of file pvrusb2-hdw.h.

#define PVR2_CVAL_INPUT_SVIDEO   3

Definition at line 54 of file pvrusb2-hdw.h.

#define PVR2_CVAL_INPUT_TV   0

Definition at line 51 of file pvrusb2-hdw.h.

#define PVR2_STATE_COLD   2

Definition at line 94 of file pvrusb2-hdw.h.

#define PVR2_STATE_DEAD   1

Definition at line 93 of file pvrusb2-hdw.h.

#define PVR2_STATE_ERROR   4

Definition at line 96 of file pvrusb2-hdw.h.

#define PVR2_STATE_NONE   0

Definition at line 92 of file pvrusb2-hdw.h.

#define PVR2_STATE_READY   5

Definition at line 97 of file pvrusb2-hdw.h.

#define PVR2_STATE_RUN   6

Definition at line 98 of file pvrusb2-hdw.h.

#define PVR2_STATE_WARM   3

Definition at line 95 of file pvrusb2-hdw.h.

Enumeration Type Documentation

Enumerator:
pvr2_config_empty 
pvr2_config_mpeg 
pvr2_config_vbi 
pvr2_config_pcm 
pvr2_config_rawvideo 

Definition at line 57 of file pvrusb2-hdw.h.

Enumerator:
pvr2_v4l_type_video 
pvr2_v4l_type_vbi 
pvr2_v4l_type_radio 

Definition at line 65 of file pvrusb2-hdw.h.

Function Documentation

const char* pvr2_config_get_name ( enum  pvr2_config)

Definition at line 1278 of file pvrusb2-hdw.c.

int pvr2_hdw_cmd_decoder_reset ( struct pvr2_hdw )

Definition at line 4040 of file pvrusb2-hdw.c.

int pvr2_hdw_cmd_deep_reset ( struct pvr2_hdw )

Definition at line 4022 of file pvrusb2-hdw.c.

int pvr2_hdw_cmd_powerdown ( struct pvr2_hdw )

Definition at line 4034 of file pvrusb2-hdw.c.

int pvr2_hdw_cmd_powerup ( struct pvr2_hdw )

Definition at line 4028 of file pvrusb2-hdw.c.

int pvr2_hdw_commit_ctl ( struct pvr2_hdw )

Definition at line 3220 of file pvrusb2-hdw.c.

int pvr2_hdw_cpufw_get ( struct pvr2_hdw ,
unsigned int  offs,
char buf,
unsigned int  cnt 
)

Definition at line 3514 of file pvrusb2-hdw.c.

int pvr2_hdw_cpufw_get_enabled ( struct pvr2_hdw )

Definition at line 3508 of file pvrusb2-hdw.c.

void pvr2_hdw_cpufw_set_enabled ( struct pvr2_hdw ,
int  mode,
int  enable_flag 
)

Definition at line 3432 of file pvrusb2-hdw.c.

void pvr2_hdw_cpureset_assert ( struct pvr2_hdw ,
int   
)

Definition at line 3988 of file pvrusb2-hdw.c.

struct pvr2_hdw* pvr2_hdw_create ( struct usb_interface intf,
const struct usb_device_id devid 
)
read

Definition at line 2381 of file pvrusb2-hdw.c.

void pvr2_hdw_destroy ( struct pvr2_hdw )

Definition at line 2709 of file pvrusb2-hdw.c.

int pvr2_hdw_dev_ok ( struct pvr2_hdw )

Definition at line 2746 of file pvrusb2-hdw.c.

void pvr2_hdw_device_reset ( struct pvr2_hdw )

Definition at line 3966 of file pvrusb2-hdw.c.

void pvr2_hdw_disconnect ( struct pvr2_hdw )

Definition at line 2753 of file pvrusb2-hdw.c.

void pvr2_hdw_execute_tuner_poll ( struct pvr2_hdw )

Definition at line 3288 of file pvrusb2-hdw.c.

const char* pvr2_hdw_get_bus_info ( struct pvr2_hdw )

Definition at line 1303 of file pvrusb2-hdw.c.

int pvr2_hdw_get_cropcap ( struct pvr2_hdw ,
struct v4l2_cropcap  
)

Definition at line 3310 of file pvrusb2-hdw.c.

struct pvr2_ctrl* pvr2_hdw_get_ctrl_by_id ( struct pvr2_hdw ,
unsigned  int 
)
read

Definition at line 2781 of file pvrusb2-hdw.c.

struct pvr2_ctrl* pvr2_hdw_get_ctrl_by_index ( struct pvr2_hdw ,
unsigned  int 
)
read

Definition at line 2772 of file pvrusb2-hdw.c.

unsigned int pvr2_hdw_get_ctrl_count ( struct pvr2_hdw )

Definition at line 2765 of file pvrusb2-hdw.c.

struct pvr2_ctrl* pvr2_hdw_get_ctrl_nextv4l ( struct pvr2_hdw ,
unsigned int  ctl_id 
)
read

Definition at line 2817 of file pvrusb2-hdw.c.

struct pvr2_ctrl* pvr2_hdw_get_ctrl_v4l ( struct pvr2_hdw ,
unsigned int  ctl_id 
)
read

Definition at line 2799 of file pvrusb2-hdw.c.

void pvr2_hdw_get_debug_info_locked ( struct pvr2_hdw hdw,
struct pvr2_hdw_debug_info  
)
void pvr2_hdw_get_debug_info_unlocked ( const struct pvr2_hdw hdw,
struct pvr2_hdw_debug_info  
)
const char* pvr2_hdw_get_desc ( struct pvr2_hdw )

Definition at line 3260 of file pvrusb2-hdw.c.

struct usb_device* pvr2_hdw_get_dev ( struct pvr2_hdw )
read

Definition at line 1291 of file pvrusb2-hdw.c.

const char* pvr2_hdw_get_device_identifier ( struct pvr2_hdw )

Definition at line 1309 of file pvrusb2-hdw.c.

const char* pvr2_hdw_get_driver_name ( struct pvr2_hdw )

Definition at line 3254 of file pvrusb2-hdw.c.

unsigned int pvr2_hdw_get_input_allowed ( struct pvr2_hdw )

Definition at line 5083 of file pvrusb2-hdw.c.

unsigned int pvr2_hdw_get_input_available ( struct pvr2_hdw )

Definition at line 5077 of file pvrusb2-hdw.c.

unsigned long pvr2_hdw_get_sn ( struct pvr2_hdw )

Definition at line 1297 of file pvrusb2-hdw.c.

int pvr2_hdw_get_state ( struct pvr2_hdw )

Definition at line 1703 of file pvrusb2-hdw.c.

int pvr2_hdw_get_streaming ( struct pvr2_hdw )

Definition at line 1732 of file pvrusb2-hdw.c.

int pvr2_hdw_get_tuner_status ( struct pvr2_hdw ,
struct v4l2_tuner  
)

Definition at line 3324 of file pvrusb2-hdw.c.

const char* pvr2_hdw_get_type ( struct pvr2_hdw )

Definition at line 3266 of file pvrusb2-hdw.c.

int pvr2_hdw_get_unit_number ( struct pvr2_hdw )

Definition at line 1349 of file pvrusb2-hdw.c.

struct pvr2_stream* pvr2_hdw_get_video_stream ( struct pvr2_hdw )
read

Definition at line 3337 of file pvrusb2-hdw.c.

int pvr2_hdw_gpio_chg_dir ( struct pvr2_hdw hdw,
u32  msk,
u32  val 
)

Definition at line 5011 of file pvrusb2-hdw.c.

int pvr2_hdw_gpio_chg_out ( struct pvr2_hdw hdw,
u32  msk,
u32  val 
)

Definition at line 5032 of file pvrusb2-hdw.c.

int pvr2_hdw_gpio_get_dir ( struct pvr2_hdw hdw,
u32  
)

Definition at line 4993 of file pvrusb2-hdw.c.

int pvr2_hdw_gpio_get_in ( struct pvr2_hdw hdw,
u32  
)

Definition at line 5005 of file pvrusb2-hdw.c.

int pvr2_hdw_gpio_get_out ( struct pvr2_hdw hdw,
u32  
)

Definition at line 4999 of file pvrusb2-hdw.c.

int pvr2_hdw_initialize ( struct pvr2_hdw ,
void(*)(void *)  callback_func,
void callback_data 
)

Definition at line 2357 of file pvrusb2-hdw.c.

int pvr2_hdw_is_hsm ( struct pvr2_hdw )

Definition at line 3272 of file pvrusb2-hdw.c.

int pvr2_hdw_register_access ( struct pvr2_hdw ,
struct v4l2_dbg_match match,
u64  reg_id,
int  setFl,
u64 val_ptr 
)

Definition at line 5167 of file pvrusb2-hdw.c.

void pvr2_hdw_render_useless ( struct pvr2_hdw )

Definition at line 3952 of file pvrusb2-hdw.c.

int pvr2_hdw_set_input_allowed ( struct pvr2_hdw ,
unsigned int  change_mask,
unsigned int  change_val 
)

Definition at line 5111 of file pvrusb2-hdw.c.

int pvr2_hdw_set_stream_type ( struct pvr2_hdw ,
enum  pvr2_config 
)

Definition at line 1762 of file pvrusb2-hdw.c.

int pvr2_hdw_set_streaming ( struct pvr2_hdw ,
int   
)

Definition at line 1738 of file pvrusb2-hdw.c.

unsigned int pvr2_hdw_state_report ( struct pvr2_hdw hdw,
char buf_ptr,
unsigned int  buf_size 
)

Definition at line 4874 of file pvrusb2-hdw.c.

void pvr2_hdw_trigger_module_log ( struct pvr2_hdw hdw)

Definition at line 3343 of file pvrusb2-hdw.c.

int pvr2_hdw_untrip ( struct pvr2_hdw )

Definition at line 1719 of file pvrusb2-hdw.c.

int pvr2_hdw_v4l_get_minor_number ( struct pvr2_hdw ,
enum pvr2_v4l_type  index 
)

Definition at line 3549 of file pvrusb2-hdw.c.

void pvr2_hdw_v4l_store_minor_number ( struct pvr2_hdw ,
enum pvr2_v4l_type  index,
int   
)

Definition at line 3562 of file pvrusb2-hdw.c.

int pvr2_send_request ( struct pvr2_hdw ,
void write_ptr,
unsigned int  write_len,
void read_ptr,
unsigned int  read_len 
)

Definition at line 3837 of file pvrusb2-hdw.c.

int pvr2_upload_firmware2 ( struct pvr2_hdw hdw)

Definition at line 1519 of file pvrusb2-hdw.c.

int pvr2_write_register ( struct pvr2_hdw ,
u16  ,
u32   
)

Definition at line 3907 of file pvrusb2-hdw.c.