Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
pvrusb2-hdw-internal.h File Reference
#include <linux/videodev2.h>
#include <linux/i2c.h>
#include <linux/workqueue.h>
#include <linux/mutex.h>
#include "pvrusb2-hdw.h"
#include "pvrusb2-io.h"
#include <media/v4l2-device.h>
#include <media/cx2341x.h>
#include <media/ir-kbd-i2c.h>
#include "pvrusb2-devattr.h"

Go to the source code of this file.

Data Structures

struct  pvr2_ctl_info
 
struct  pvr2_ctld_info
 
struct  pvr2_ctrl
 
struct  pvr2_hdw
 

Macros

#define PVR2_CVAL_HSM_FAIL   0
 
#define PVR2_CVAL_HSM_FULL   1
 
#define PVR2_CVAL_HSM_HIGH   2
 
#define PVR2_VID_ENDPOINT   0x84
 
#define PVR2_UNK_ENDPOINT   0x86 /* maybe raw yuv ? */
 
#define PVR2_VBI_ENDPOINT   0x88
 
#define PVR2_CTL_BUFFSIZE   64
 
#define FREQTABLE_SIZE   500
 
#define LOCK_TAKE(x)   do { mutex_lock(&x##_mutex); x##_held = !0; } while (0)
 
#define LOCK_GIVE(x)   do { x##_held = 0; mutex_unlock(&x##_mutex); } while (0)
 
#define PVR2_CTLD_INFO_DESC_SIZE   32
 
#define FW1_STATE_UNKNOWN   0
 
#define FW1_STATE_MISSING   1
 
#define FW1_STATE_FAILED   2
 
#define FW1_STATE_RELOAD   3
 
#define FW1_STATE_OK   4
 
#define PVR2_PATHWAY_UNKNOWN   0
 
#define PVR2_PATHWAY_ANALOG   1
 
#define PVR2_PATHWAY_DIGITAL   2
 
#define PVR2_I2C_FUNC_CNT   128
 
#define VCREATE_DATA(lab)   int lab##_val; int lab##_dirty
 

Typedefs

typedef int(* pvr2_ctlf_is_dirty )(struct pvr2_ctrl *)
 
typedef void(* pvr2_ctlf_clear_dirty )(struct pvr2_ctrl *)
 
typedef int(* pvr2_ctlf_check_value )(struct pvr2_ctrl *, int)
 
typedef int(* pvr2_ctlf_get_value )(struct pvr2_ctrl *, int *)
 
typedef int(* pvr2_ctlf_set_value )(struct pvr2_ctrl *, int msk, int val)
 
typedef int(* pvr2_ctlf_val_to_sym )(struct pvr2_ctrl *, int msk, int val, char *, unsigned int, unsigned int *)
 
typedef int(* pvr2_ctlf_sym_to_val )(struct pvr2_ctrl *, const char *, unsigned int, int *mskp, int *valp)
 
typedef unsigned int(* pvr2_ctlf_get_v4lflags )(struct pvr2_ctrl *)
 
typedef int(* pvr2_i2c_func )(struct pvr2_hdw *, u8, u8 *, u16, u8 *, u16)
 

Functions

unsigned long pvr2_hdw_get_cur_freq (struct pvr2_hdw *)
 
void pvr2_hdw_status_poll (struct pvr2_hdw *)
 

Macro Definition Documentation

#define FREQTABLE_SIZE   500

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

#define FW1_STATE_FAILED   2

Definition at line 146 of file pvrusb2-hdw-internal.h.

#define FW1_STATE_MISSING   1

Definition at line 145 of file pvrusb2-hdw-internal.h.

#define FW1_STATE_OK   4

Definition at line 148 of file pvrusb2-hdw-internal.h.

#define FW1_STATE_RELOAD   3

Definition at line 147 of file pvrusb2-hdw-internal.h.

#define FW1_STATE_UNKNOWN   0

Definition at line 144 of file pvrusb2-hdw-internal.h.

#define LOCK_GIVE (   x)    do { x##_held = 0; mutex_unlock(&x##_mutex); } while (0)

Definition at line 60 of file pvrusb2-hdw-internal.h.

#define LOCK_TAKE (   x)    do { mutex_lock(&x##_mutex); x##_held = !0; } while (0)

Definition at line 59 of file pvrusb2-hdw-internal.h.

#define PVR2_CTL_BUFFSIZE   64

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

#define PVR2_CTLD_INFO_DESC_SIZE   32

Definition at line 130 of file pvrusb2-hdw-internal.h.

#define PVR2_CVAL_HSM_FAIL   0

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

#define PVR2_CVAL_HSM_FULL   1

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

#define PVR2_CVAL_HSM_HIGH   2

Definition at line 49 of file pvrusb2-hdw-internal.h.

#define PVR2_I2C_FUNC_CNT   128

Definition at line 156 of file pvrusb2-hdw-internal.h.

#define PVR2_PATHWAY_ANALOG   1

Definition at line 152 of file pvrusb2-hdw-internal.h.

#define PVR2_PATHWAY_DIGITAL   2

Definition at line 153 of file pvrusb2-hdw-internal.h.

#define PVR2_PATHWAY_UNKNOWN   0

Definition at line 151 of file pvrusb2-hdw-internal.h.

#define PVR2_UNK_ENDPOINT   0x86 /* maybe raw yuv ? */

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

#define PVR2_VBI_ENDPOINT   0x88

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

#define PVR2_VID_ENDPOINT   0x84

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

#define VCREATE_DATA (   lab)    int lab##_val; int lab##_dirty

Definition at line 364 of file pvrusb2-hdw-internal.h.

Typedef Documentation

typedef int(* pvr2_ctlf_check_value)(struct pvr2_ctrl *, int)

Definition at line 64 of file pvrusb2-hdw-internal.h.

typedef void(* pvr2_ctlf_clear_dirty)(struct pvr2_ctrl *)

Definition at line 63 of file pvrusb2-hdw-internal.h.

typedef unsigned int(* pvr2_ctlf_get_v4lflags)(struct pvr2_ctrl *)

Definition at line 72 of file pvrusb2-hdw-internal.h.

typedef int(* pvr2_ctlf_get_value)(struct pvr2_ctrl *, int *)

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

typedef int(* pvr2_ctlf_is_dirty)(struct pvr2_ctrl *)

Definition at line 62 of file pvrusb2-hdw-internal.h.

typedef int(* pvr2_ctlf_set_value)(struct pvr2_ctrl *, int msk, int val)

Definition at line 66 of file pvrusb2-hdw-internal.h.

typedef int(* pvr2_ctlf_sym_to_val)(struct pvr2_ctrl *, const char *, unsigned int, int *mskp, int *valp)

Definition at line 69 of file pvrusb2-hdw-internal.h.

typedef int(* pvr2_ctlf_val_to_sym)(struct pvr2_ctrl *, int msk, int val, char *, unsigned int, unsigned int *)

Definition at line 67 of file pvrusb2-hdw-internal.h.

typedef int(* pvr2_i2c_func)(struct pvr2_hdw *, u8, u8 *, u16, u8 *, u16)

Definition at line 155 of file pvrusb2-hdw-internal.h.

Function Documentation

unsigned long pvr2_hdw_get_cur_freq ( struct pvr2_hdw )

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

void pvr2_hdw_status_poll ( struct pvr2_hdw )

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