Go to the documentation of this file.
20 #ifndef __PVRUSB2_HDW_INTERNAL_H
21 #define __PVRUSB2_HDW_INTERNAL_H
35 #include <linux/videodev2.h>
36 #include <linux/i2c.h>
47 #define PVR2_CVAL_HSM_FAIL 0
48 #define PVR2_CVAL_HSM_FULL 1
49 #define PVR2_CVAL_HSM_HIGH 2
51 #define PVR2_VID_ENDPOINT 0x84
52 #define PVR2_UNK_ENDPOINT 0x86
53 #define PVR2_VBI_ENDPOINT 0x88
55 #define PVR2_CTL_BUFFSIZE 64
57 #define FREQTABLE_SIZE 500
59 #define LOCK_TAKE(x) do { mutex_lock(&x##_mutex); x##_held = !0; } while (0)
60 #define LOCK_GIVE(x) do { x##_held = 0; mutex_unlock(&x##_mutex); } while (0)
68 char *,
unsigned int,
unsigned int *);
70 const char *,
unsigned int,
130 #define PVR2_CTLD_INFO_DESC_SIZE 32
144 #define FW1_STATE_UNKNOWN 0
145 #define FW1_STATE_MISSING 1
146 #define FW1_STATE_FAILED 2
147 #define FW1_STATE_RELOAD 3
148 #define FW1_STATE_OK 4
151 #define PVR2_PATHWAY_UNKNOWN 0
152 #define PVR2_PATHWAY_ANALOG 1
153 #define PVR2_PATHWAY_DIGITAL 2
156 #define PVR2_I2C_FUNC_CNT 128
364 #define VCREATE_DATA(lab) int lab##_val; int lab##_dirty