Linux Kernel
3.7.1
|
#include <linux/list.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <media/v4l2-device.h>
#include <media/tuner.h>
#include <linux/videodev2.h>
Go to the source code of this file.
Data Structures | |
struct | usbvision_sbuf |
struct | usbvision_v4l2_format_st |
struct | usbvision_frame_header |
struct | usbvision_frame |
struct | usbvision_device_data_st |
struct | usb_usbvision |
Enumerations | |
enum | { ISOC_MODE_YUV422 = 0x03, ISOC_MODE_YUV420 = 0x14, ISOC_MODE_COMPRESS = 0x60 } |
enum | scan_state { scan_state_scanning, scan_state_lines } |
enum | parse_state { parse_state_continue, parse_state_next_frame, parse_state_out, parse_state_end_parse } |
enum | frame_state { frame_state_unused, frame_state_ready, frame_state_grabbing, frame_state_done, frame_state_done_hold, frame_state_error } |
enum | stream_state { stream_off, stream_idle, stream_interrupt, stream_on } |
enum | isoc_state { isoc_state_in_frame, isoc_state_no_frame } |
Variables | |
struct usbvision_device_data_st | usbvision_device_data [] |
struct usb_device_id | usbvision_table [] |
#define BRIDGE_NT1003 1003 |
Definition at line 337 of file usbvision.h.
#define BRIDGE_NT1004 1004 |
Definition at line 338 of file usbvision.h.
#define BRIDGE_NT1005 1005 |
Definition at line 339 of file usbvision.h.
#define call_all | ( | usbvision, | |
o, | |||
f, | |||
args... | |||
) | v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args) |
Definition at line 478 of file usbvision.h.
#define CODEC_SAA7111 7111 |
Definition at line 335 of file usbvision.h.
#define CODEC_SAA7113 7113 |
Definition at line 334 of file usbvision.h.
#define CODEC_WEBCAM 3000 |
Definition at line 336 of file usbvision.h.
#define FRAMERATE_MAX 31 |
Definition at line 160 of file usbvision.h.
#define FRAMERATE_MIN 0 |
Definition at line 159 of file usbvision.h.
#define I2C_USB_ADAP_MAX 16 |
Definition at line 225 of file usbvision.h.
Definition at line 191 of file usbvision.h.
#define MAX_BYTES_PER_PIXEL 4 |
Definition at line 137 of file usbvision.h.
#define MAX_FRAME_HEIGHT 240 /* 288 */ /* Streching sometimes causes crashes*/ |
Definition at line 145 of file usbvision.h.
#define MAX_FRAME_SIZE (MAX_FRAME_WIDTH * MAX_FRAME_HEIGHT * MAX_BYTES_PER_PIXEL) |
Definition at line 147 of file usbvision.h.
#define MAX_FRAME_WIDTH 320 /* 384 */ /* streching sometimes causes crashes*/ |
Definition at line 141 of file usbvision.h.
#define MAX_USB_HEIGHT 240 /* 288 */ |
Definition at line 144 of file usbvision.h.
#define MAX_USB_WIDTH 320 /* 384 */ |
Definition at line 140 of file usbvision.h.
#define MIN_FRAME_HEIGHT 48 |
Definition at line 143 of file usbvision.h.
#define MIN_FRAME_WIDTH 64 |
Definition at line 139 of file usbvision.h.
#define RESTRICT_TO_RANGE | ( | v, | |
mi, | |||
ma | |||
) | { if ((v) < (mi)) (v) = (mi); else if ((v) > (ma)) (v) = (ma); } |
Definition at line 169 of file usbvision.h.
#define USBVISION_16_422_SYNC 0x02 |
Definition at line 91 of file usbvision.h.
#define USBVISION_8_422_SYNC 0x01 |
Definition at line 90 of file usbvision.h.
#define USBVISION_ADRS_REG 0x02 |
Definition at line 50 of file usbvision.h.
#define USBVISION_ALTER_REG 0x03 |
Definition at line 51 of file usbvision.h.
#define USBVISION_AUD_PK_LEN 0x33 |
Definition at line 127 of file usbvision.h.
#define USBVISION_AUDIO_CONT 0x32 |
Definition at line 126 of file usbvision.h.
#define USBVISION_AUDIO_IN 0 |
Definition at line 57 of file usbvision.h.
#define USBVISION_AUDIO_MUTE 3 |
Definition at line 60 of file usbvision.h.
#define USBVISION_AUDIO_RADIO 2 |
Definition at line 59 of file usbvision.h.
#define USBVISION_AUDIO_TV 1 |
Definition at line 58 of file usbvision.h.
#define USBVISION_AUTO_FID (1 << 0) |
Definition at line 98 of file usbvision.h.
#define USBVISION_BLK_PK_LEN 0x34 |
Definition at line 128 of file usbvision.h.
#define USBVISION_BUF_THR 0x30 |
Definition at line 124 of file usbvision.h.
#define USBVISION_CLIPMASK_SIZE (MAX_FRAME_WIDTH * MAX_FRAME_HEIGHT / 8) /* bytesize of clipmask */ |
Definition at line 148 of file usbvision.h.
#define USBVISION_CLK_OUT (1 << 0) |
Definition at line 62 of file usbvision.h.
#define USBVISION_CONFIG_REG 0x01 |
Definition at line 49 of file usbvision.h.
#define USBVISION_DAT_IO (1 << 1) |
Definition at line 63 of file usbvision.h.
#define USBVISION_DEBUG /* Turn on debug messages */ |
Definition at line 42 of file usbvision.h.
#define USBVISION_DIST_THR_H 0x3B |
Definition at line 132 of file usbvision.h.
#define USBVISION_DIST_THR_L 0x3A |
Definition at line 131 of file usbvision.h.
#define USBVISION_DRM_CONT 0x12 |
Definition at line 76 of file usbvision.h.
#define USBVISION_DRM_PRM1 0x13 |
Definition at line 81 of file usbvision.h.
#define USBVISION_DRM_PRM2 0x14 |
Definition at line 82 of file usbvision.h.
#define USBVISION_DRM_PRM3 0x15 |
Definition at line 83 of file usbvision.h.
#define USBVISION_DRM_PRM4 0x16 |
Definition at line 84 of file usbvision.h.
#define USBVISION_DRM_PRM5 0x17 |
Definition at line 85 of file usbvision.h.
#define USBVISION_DRM_PRM6 0x18 |
Definition at line 86 of file usbvision.h.
#define USBVISION_DRM_PRM7 0x19 |
Definition at line 87 of file usbvision.h.
#define USBVISION_DRM_PRM8 0x1A |
Definition at line 88 of file usbvision.h.
#define USBVISION_DVI_YUV 0x31 |
Definition at line 125 of file usbvision.h.
#define USBVISION_E2_EN (1 << 7) |
Definition at line 48 of file usbvision.h.
#define USBVISION_EE_CONT 0x10 |
Definition at line 75 of file usbvision.h.
#define USBVISION_EE_DATA 0x0E |
Definition at line 73 of file usbvision.h.
#define USBVISION_EE_LSBAD 0x0F |
Definition at line 74 of file usbvision.h.
#define USBVISION_FID_POL (1 << 5) |
Definition at line 94 of file usbvision.h.
#define USBVISION_FILT_CONT 0x2A |
Definition at line 118 of file usbvision.h.
#define USBVISION_FIX_2C (1 << 4) |
Definition at line 102 of file usbvision.h.
#define USBVISION_FORCE_ALTER_REG 0x04 |
Definition at line 52 of file usbvision.h.
#define USBVISION_FORCE_INTRA 0x2E |
Definition at line 122 of file usbvision.h.
#define USBVISION_FORCE_UP 0x2F |
Definition at line 123 of file usbvision.h.
#define USBVISION_FRAME_FORMAT_PARAM_INTRA (1<<7) |
Definition at line 281 of file usbvision.h.
#define USBVISION_FRM_RATE 0x25 |
Definition at line 113 of file usbvision.h.
#define USBVISION_HEADER_LENGTH 0x0c |
Definition at line 276 of file usbvision.h.
#define USBVISION_HSNC_POL (1 << 4) |
Definition at line 93 of file usbvision.h.
#define USBVISION_HVALID_PO (1 << 6) |
Definition at line 95 of file usbvision.h.
#define USBVISION_IIC_LRACK 0x20 |
Definition at line 279 of file usbvision.h.
#define USBVISION_IIC_LRNACK 0x30 |
Definition at line 280 of file usbvision.h.
#define USBVISION_INTRA_CYC 0x2C |
Definition at line 120 of file usbvision.h.
#define USBVISION_IO_1 (1 << 0) |
Definition at line 55 of file usbvision.h.
#define USBVISION_IO_2 (1 << 1) |
Definition at line 56 of file usbvision.h.
#define USBVISION_IOPIN_REG 0x06 |
Definition at line 54 of file usbvision.h.
#define USBVISION_IS_OPERATIONAL | ( | udevice | ) |
Definition at line 219 of file usbvision.h.
#define USBVISION_KEEP_BLANK (1 << 7) |
Definition at line 104 of file usbvision.h.
#define USBVISION_LX_OFFST 0x21 |
Definition at line 109 of file usbvision.h.
#define USBVISION_LXSIZE_I 0x1D |
Definition at line 105 of file usbvision.h.
#define USBVISION_LXSIZE_O 0x26 |
Definition at line 114 of file usbvision.h.
#define USBVISION_LY_OFFST 0x23 |
Definition at line 111 of file usbvision.h.
#define USBVISION_LYSIZE_I 0x1F |
Definition at line 107 of file usbvision.h.
#define USBVISION_LYSIZE_O 0x28 |
Definition at line 116 of file usbvision.h.
#define USBVISION_MAGIC_1 0x55 |
Definition at line 274 of file usbvision.h.
#define USBVISION_MAGIC_2 0xAA |
Definition at line 275 of file usbvision.h.
#define USBVISION_MAX_DIST_H 0x3D |
Definition at line 134 of file usbvision.h.
#define USBVISION_MAX_DIST_L 0x3C |
Definition at line 133 of file usbvision.h.
#define USBVISION_MX_OFFST 0x22 |
Definition at line 110 of file usbvision.h.
#define USBVISION_MXSIZE_I 0x1E |
Definition at line 106 of file usbvision.h.
#define USBVISION_MXSIZE_O 0x27 |
Definition at line 115 of file usbvision.h.
#define USBVISION_MY_OFFST 0x24 |
Definition at line 112 of file usbvision.h.
#define USBVISION_MYSIZE_I 0x20 |
Definition at line 108 of file usbvision.h.
#define USBVISION_MYSIZE_O 0x29 |
Definition at line 117 of file usbvision.h.
#define USBVISION_NOHVALID (1 << 2) |
Definition at line 100 of file usbvision.h.
#define USBVISION_NONE_INTER (1 << 1) |
Definition at line 99 of file usbvision.h.
#define USBVISION_NORMS (V4L2_STD_PAL | V4L2_STD_NTSC | V4L2_STD_SECAM | V4L2_STD_PAL_M) |
Definition at line 227 of file usbvision.h.
#define USBVISION_NUM_HEADERMARKER 20 |
Definition at line 152 of file usbvision.h.
#define USBVISION_NUMFRAMES 3 /* Maximum number of frames an application can get */ |
Definition at line 153 of file usbvision.h.
Definition at line 154 of file usbvision.h.
#define USBVISION_OP_CODE 0x33 |
Definition at line 135 of file usbvision.h.
#define USBVISION_PCM_THR1 0x38 |
Definition at line 129 of file usbvision.h.
#define USBVISION_PCM_THR2 0x39 |
Definition at line 130 of file usbvision.h.
Definition at line 156 of file usbvision.h.
#define USBVISION_PWR_REG 0x00 |
Definition at line 44 of file usbvision.h.
#define USBVISION_PWR_VID (1 << 5) |
Definition at line 47 of file usbvision.h.
#define USBVISION_REF (1 << 0) |
Definition at line 77 of file usbvision.h.
#define USBVISION_RES2 (1 << 2) |
Definition at line 46 of file usbvision.h.
#define USBVISION_RES_FDL (1 << 3) |
Definition at line 79 of file usbvision.h.
#define USBVISION_RES_UR (1 << 2) |
Definition at line 78 of file usbvision.h.
#define USBVISION_RES_VDW (1 << 4) |
Definition at line 80 of file usbvision.h.
#define USBVISION_SAA7111_ADDR 0x48 |
Definition at line 277 of file usbvision.h.
#define USBVISION_SAA7113_ADDR 0x4a |
Definition at line 278 of file usbvision.h.
#define USBVISION_SAY_AND_WAIT | ( | what | ) |
Definition at line 207 of file usbvision.h.
#define USBVISION_SEND_FID (1 << 5) |
Definition at line 103 of file usbvision.h.
#define USBVISION_SENS_OUT (1 << 2) |
Definition at line 64 of file usbvision.h.
#define USBVISION_SER_ADRS 0x08 |
Definition at line 67 of file usbvision.h.
#define USBVISION_SER_CONT 0x09 |
Definition at line 68 of file usbvision.h.
#define USBVISION_SER_DAT1 0x0A |
Definition at line 69 of file usbvision.h.
#define USBVISION_SER_DAT2 0x0B |
Definition at line 70 of file usbvision.h.
#define USBVISION_SER_DAT3 0x0C |
Definition at line 71 of file usbvision.h.
#define USBVISION_SER_DAT4 0x0D |
Definition at line 72 of file usbvision.h.
#define USBVISION_SER_MODE 0x07 |
Definition at line 61 of file usbvision.h.
#define USBVISION_SER_MODE_SIO (1 << 4) |
Definition at line 66 of file usbvision.h.
#define USBVISION_SER_MODE_SOFT (0 << 4) |
Definition at line 65 of file usbvision.h.
#define USBVISION_SSPND_EN (1 << 1) |
Definition at line 45 of file usbvision.h.
#define USBVISION_STATUS_REG 0x05 |
Definition at line 53 of file usbvision.h.
#define USBVISION_STRIP_SZ 0x2D |
Definition at line 121 of file usbvision.h.
#define USBVISION_SUPPORTED_PALETTES ARRAY_SIZE(usbvision_v4l2_format) |
Definition at line 290 of file usbvision.h.
#define USBVISION_URB_FRAMES 32 |
Definition at line 150 of file usbvision.h.
#define USBVISION_UV_ID (1 << 3) |
Definition at line 101 of file usbvision.h.
#define USBVISION_VCLK_POL (1 << 7) |
Definition at line 96 of file usbvision.h.
#define USBVISION_VIN_REG1 0x1B |
Definition at line 89 of file usbvision.h.
#define USBVISION_VIN_REG2 0x1C |
Definition at line 97 of file usbvision.h.
#define USBVISION_VO_MODE 0x2B |
Definition at line 119 of file usbvision.h.
#define USBVISION_VSNC_POL (1 << 3) |
Definition at line 92 of file usbvision.h.
Definition at line 192 of file usbvision.h.
anonymous enum |
Definition at line 162 of file usbvision.h.
enum frame_state |
frame_state_unused | |
frame_state_ready | |
frame_state_grabbing | |
frame_state_done | |
frame_state_done_hold | |
frame_state_error |
Definition at line 245 of file usbvision.h.
enum isoc_state |
Definition at line 262 of file usbvision.h.
enum parse_state |
Definition at line 238 of file usbvision.h.
enum scan_state |
Definition at line 232 of file usbvision.h.
enum stream_state |
Definition at line 255 of file usbvision.h.
int usbvision_audio_off | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2263 of file usbvision-core.c.
int usbvision_begin_streaming | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2224 of file usbvision-core.c.
int usbvision_decompress_alloc | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 391 of file usbvision-core.c.
void usbvision_decompress_free | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 410 of file usbvision-core.c.
void usbvision_empty_framequeues | ( | struct usb_usbvision * | dev | ) |
Definition at line 1842 of file usbvision-core.c.
int usbvision_frames_alloc | ( | struct usb_usbvision * | usbvision, |
int | number_of_frames | ||
) |
Definition at line 1779 of file usbvision-core.c.
void usbvision_frames_free | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 1826 of file usbvision-core.c.
int usbvision_i2c_register | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 182 of file usbvision-i2c.c.
int usbvision_i2c_unregister | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 263 of file usbvision-i2c.c.
int usbvision_init_isoc | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2333 of file usbvision-core.c.
void usbvision_init_power_off_timer | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2201 of file usbvision-core.c.
int usbvision_muxsel | ( | struct usb_usbvision * | usbvision, |
int | channel | ||
) |
Definition at line 2470 of file usbvision-core.c.
int usbvision_power_off | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 1575 of file usbvision-core.c.
int usbvision_power_on | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2141 of file usbvision-core.c.
int usbvision_read_reg | ( | struct usb_usbvision * | usbvision, |
unsigned char | reg | ||
) |
Definition at line 1367 of file usbvision-core.c.
void usbvision_reset_power_off_timer | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2213 of file usbvision-core.c.
int usbvision_restart_isoc | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2237 of file usbvision-core.c.
int usbvision_scratch_alloc | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 367 of file usbvision-core.c.
void usbvision_scratch_free | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 380 of file usbvision-core.c.
int usbvision_set_alternate | ( | struct usb_usbvision * | dev | ) |
Definition at line 2301 of file usbvision-core.c.
int usbvision_set_audio | ( | struct usb_usbvision * | usbvision, |
int | audio_channel | ||
) |
Definition at line 2274 of file usbvision-core.c.
int usbvision_set_input | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 1951 of file usbvision-core.c.
int usbvision_set_output | ( | struct usb_usbvision * | usbvision, |
int | width, | ||
int | height | ||
) |
Definition at line 1680 of file usbvision-core.c.
void usbvision_set_power_off_timer | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2208 of file usbvision-core.c.
int usbvision_setup | ( | struct usb_usbvision * | usbvision, |
int | format | ||
) |
Definition at line 2286 of file usbvision-core.c.
void usbvision_stop_isoc | ( | struct usb_usbvision * | usbvision | ) |
Definition at line 2423 of file usbvision-core.c.
int usbvision_stream_interrupt | ( | struct usb_usbvision * | dev | ) |
Definition at line 1859 of file usbvision-core.c.
int usbvision_write_reg | ( | struct usb_usbvision * | usbvision, |
unsigned char | reg, | ||
unsigned char | value | ||
) |
Definition at line 1396 of file usbvision-core.c.
struct usbvision_device_data_st usbvision_device_data[] |
Definition at line 34 of file usbvision-cards.c.
struct usb_device_id usbvision_table[] |
Definition at line 1062 of file usbvision-cards.c.