|
Linux Kernel
3.7.1
|
#include <linux/errno.h>#include <linux/string.h>#include <linux/slab.h>#include <linux/module.h>#include <linux/firmware.h>#include <linux/videodev2.h>#include <media/v4l2-common.h>#include <media/tuner.h>#include "pvrusb2.h"#include "pvrusb2-std.h"#include "pvrusb2-util.h"#include "pvrusb2-hdw.h"#include "pvrusb2-i2c-core.h"#include "pvrusb2-eeprom.h"#include "pvrusb2-hdw-internal.h"#include "pvrusb2-encoder.h"#include "pvrusb2-debug.h"#include "pvrusb2-fx2-cmd.h"#include "pvrusb2-wm8775.h"#include "pvrusb2-video-v4l.h"#include "pvrusb2-cx2584x-v4l.h"#include "pvrusb2-cs53l32a.h"#include "pvrusb2-audio.h"Go to the source code of this file.
Data Structures | |
| struct | pvr2_mpeg_ids |
| struct | pvr2_fx2cmd_descdef |
| struct | pvr2_std_hack |
Macros | |
| #define | TV_MIN_FREQ 55250000L |
| #define | TV_MAX_FREQ 850000000L |
| #define | TIME_MSEC_DECODER_WAIT 50 |
| #define | TIME_MSEC_DECODER_STABILIZATION_WAIT 300 |
| #define | TIME_MSEC_ENCODER_WAIT 50 |
| #define | TIME_MSEC_ENCODER_OK 250 |
| #define | PVR2_CTL_WRITE_ENDPOINT 0x01 |
| #define | PVR2_CTL_READ_ENDPOINT 0x81 |
| #define | PVR2_GPIO_IN 0x9008 |
| #define | PVR2_GPIO_OUT 0x900c |
| #define | PVR2_GPIO_DIR 0x9020 |
| #define | trace_firmware(...) pvr2_trace(PVR2_TRACE_FIRMWARE,__VA_ARGS__) |
| #define | PVR2_FIRMWARE_ENDPOINT 0x02 |
| #define | FIRMWARE_CHUNK_SIZE 0x2000 |
| #define | MPEGDEF_COUNT ARRAY_SIZE(mpeg_ids) |
| #define | DEFINT(vmin, vmax) |
| #define | DEFENUM(tab) |
| #define | DEFBOOL .type = pvr2_ctl_bool |
| #define | DEFMASK(msk, tab) |
| #define | DEFREF(vname) |
| #define | VCREATE_FUNCS(vname) |
| #define | CTRLDEF_COUNT ARRAY_SIZE(control_defs) |
| #define | PVR2_SUBDEV_SET_CONTROL(hdw, id, lab) |
| #define | EEPROM_SIZE 8192 |
| #define | trace_eeprom(...) pvr2_trace(PVR2_TRACE_EEPROM,__VA_ARGS__) |
Typedefs | |
| typedef void(* | pvr2_subdev_update_func )(struct pvr2_hdw *, struct v4l2_subdev *) |
| typedef void(* | led_method_func )(struct pvr2_hdw *, int) |
| typedef int(* | state_eval_func )(struct pvr2_hdw *) |
| #define CTRLDEF_COUNT ARRAY_SIZE(control_defs) |
Definition at line 1275 of file pvrusb2-hdw.c.
| #define DEFBOOL .type = pvr2_ctl_bool |
Definition at line 956 of file pvrusb2-hdw.c.
| #define DEFENUM | ( | tab | ) |
Definition at line 951 of file pvrusb2-hdw.c.
| #define DEFINT | ( | vmin, | |
| vmax | |||
| ) |
Definition at line 946 of file pvrusb2-hdw.c.
| #define DEFMASK | ( | msk, | |
| tab | |||
| ) |
Definition at line 959 of file pvrusb2-hdw.c.
| #define DEFREF | ( | vname | ) |
Definition at line 964 of file pvrusb2-hdw.c.
| #define EEPROM_SIZE 8192 |
Definition at line 3358 of file pvrusb2-hdw.c.
| #define FIRMWARE_CHUNK_SIZE 0x2000 |
Definition at line 113 of file pvrusb2-hdw.c.
| #define MPEGDEF_COUNT ARRAY_SIZE(mpeg_ids) |
Definition at line 245 of file pvrusb2-hdw.c.
| #define PVR2_CTL_READ_ENDPOINT 0x81 |
Definition at line 102 of file pvrusb2-hdw.c.
| #define PVR2_CTL_WRITE_ENDPOINT 0x01 |
Definition at line 101 of file pvrusb2-hdw.c.
| #define PVR2_FIRMWARE_ENDPOINT 0x02 |
Definition at line 110 of file pvrusb2-hdw.c.
| #define PVR2_GPIO_DIR 0x9020 |
Definition at line 106 of file pvrusb2-hdw.c.
| #define PVR2_GPIO_IN 0x9008 |
Definition at line 104 of file pvrusb2-hdw.c.
| #define PVR2_GPIO_OUT 0x900c |
Definition at line 105 of file pvrusb2-hdw.c.
Definition at line 2862 of file pvrusb2-hdw.c.
| #define TIME_MSEC_DECODER_STABILIZATION_WAIT 300 |
Definition at line 54 of file pvrusb2-hdw.c.
| #define TIME_MSEC_DECODER_WAIT 50 |
Definition at line 50 of file pvrusb2-hdw.c.
| #define TIME_MSEC_ENCODER_OK 250 |
Definition at line 65 of file pvrusb2-hdw.c.
| #define TIME_MSEC_ENCODER_WAIT 50 |
Definition at line 58 of file pvrusb2-hdw.c.
| #define trace_eeprom | ( | ... | ) | pvr2_trace(PVR2_TRACE_EEPROM,__VA_ARGS__) |
Definition at line 3359 of file pvrusb2-hdw.c.
| #define trace_firmware | ( | ... | ) | pvr2_trace(PVR2_TRACE_FIRMWARE,__VA_ARGS__) |
Definition at line 108 of file pvrusb2-hdw.c.
| #define TV_MAX_FREQ 850000000L |
Definition at line 46 of file pvrusb2-hdw.c.
| #define TV_MIN_FREQ 55250000L |
Definition at line 45 of file pvrusb2-hdw.c.
| #define VCREATE_FUNCS | ( | vname | ) |
Definition at line 971 of file pvrusb2-hdw.c.
Definition at line 4137 of file pvrusb2-hdw.c.
| typedef void(* pvr2_subdev_update_func)(struct pvr2_hdw *, struct v4l2_subdev *) |
Definition at line 115 of file pvrusb2-hdw.c.
Definition at line 4641 of file pvrusb2-hdw.c.
| module_param_named | ( | tv_freq | , |
| default_tv_freq | , | ||
| int | , | ||
| 0444 | |||
| ) |
| module_param_named | ( | radio_freq | , |
| default_radio_freq | , | ||
| int | , | ||
| 0444 | |||
| ) |
| MODULE_PARM_DESC | ( | ctlchg | ) |
| MODULE_PARM_DESC | ( | video_std | , |
| "specify initial video standard" | |||
| ) |
| MODULE_PARM_DESC | ( | tv_freq | , |
| "specify initial television frequency" | |||
| ) |
| MODULE_PARM_DESC | ( | radio_freq | , |
| "specify initial radio frequency" | |||
| ) |
| const char* pvr2_config_get_name | ( | enum pvr2_config | cfg | ) |
Definition at line 1278 of file pvrusb2-hdw.c.
Definition at line 4040 of file pvrusb2-hdw.c.
Definition at line 4022 of file pvrusb2-hdw.c.
Definition at line 4034 of file pvrusb2-hdw.c.
Definition at line 4028 of file pvrusb2-hdw.c.
Definition at line 3220 of file pvrusb2-hdw.c.
Definition at line 3514 of file pvrusb2-hdw.c.
Definition at line 3508 of file pvrusb2-hdw.c.
Definition at line 3432 of file pvrusb2-hdw.c.
Definition at line 3988 of file pvrusb2-hdw.c.
|
read |
Definition at line 2381 of file pvrusb2-hdw.c.
Definition at line 2709 of file pvrusb2-hdw.c.
Definition at line 2746 of file pvrusb2-hdw.c.
Definition at line 3966 of file pvrusb2-hdw.c.
Definition at line 2753 of file pvrusb2-hdw.c.
Definition at line 3288 of file pvrusb2-hdw.c.
Definition at line 1303 of file pvrusb2-hdw.c.
| int pvr2_hdw_get_cropcap | ( | struct pvr2_hdw * | hdw, |
| struct v4l2_cropcap * | pp | ||
| ) |
Definition at line 3310 of file pvrusb2-hdw.c.
Definition at line 2781 of file pvrusb2-hdw.c.
Definition at line 2772 of file pvrusb2-hdw.c.
Definition at line 2765 of file pvrusb2-hdw.c.
Definition at line 2817 of file pvrusb2-hdw.c.
Definition at line 2799 of file pvrusb2-hdw.c.
Definition at line 1315 of file pvrusb2-hdw.c.
Definition at line 3260 of file pvrusb2-hdw.c.
Definition at line 1291 of file pvrusb2-hdw.c.
Definition at line 1309 of file pvrusb2-hdw.c.
Definition at line 3254 of file pvrusb2-hdw.c.
Definition at line 5083 of file pvrusb2-hdw.c.
Definition at line 5077 of file pvrusb2-hdw.c.
Definition at line 1297 of file pvrusb2-hdw.c.
Definition at line 1703 of file pvrusb2-hdw.c.
Definition at line 1732 of file pvrusb2-hdw.c.
| int pvr2_hdw_get_tuner_status | ( | struct pvr2_hdw * | hdw, |
| struct v4l2_tuner * | vtp | ||
| ) |
Definition at line 3324 of file pvrusb2-hdw.c.
Definition at line 3266 of file pvrusb2-hdw.c.
Definition at line 1349 of file pvrusb2-hdw.c.
|
read |
Definition at line 3337 of file pvrusb2-hdw.c.
Definition at line 5011 of file pvrusb2-hdw.c.
Definition at line 5032 of file pvrusb2-hdw.c.
Definition at line 4993 of file pvrusb2-hdw.c.
Definition at line 5005 of file pvrusb2-hdw.c.
Definition at line 4999 of file pvrusb2-hdw.c.
| int pvr2_hdw_initialize | ( | struct pvr2_hdw * | hdw, |
| void(*)(void *) | callback_func, | ||
| void * | callback_data | ||
| ) |
Definition at line 2357 of file pvrusb2-hdw.c.
Definition at line 3272 of file pvrusb2-hdw.c.
| int pvr2_hdw_register_access | ( | struct pvr2_hdw * | hdw, |
| struct v4l2_dbg_match * | match, | ||
| u64 | reg_id, | ||
| int | setFl, | ||
| u64 * | val_ptr | ||
| ) |
Definition at line 5167 of file pvrusb2-hdw.c.
Definition at line 3952 of file pvrusb2-hdw.c.
| int pvr2_hdw_set_input_allowed | ( | struct pvr2_hdw * | 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 * | hdw, |
| enum pvr2_config | config | ||
| ) |
Definition at line 1762 of file pvrusb2-hdw.c.
Definition at line 1738 of file pvrusb2-hdw.c.
Definition at line 4874 of file pvrusb2-hdw.c.
Definition at line 5052 of file pvrusb2-hdw.c.
Definition at line 3343 of file pvrusb2-hdw.c.
Definition at line 1719 of file pvrusb2-hdw.c.
| int pvr2_hdw_v4l_get_minor_number | ( | struct pvr2_hdw * | 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 * | hdw, |
| enum pvr2_v4l_type | index, | ||
| int | v | ||
| ) |
Definition at line 3562 of file pvrusb2-hdw.c.
| int pvr2_send_request | ( | struct pvr2_hdw * | hdw, |
| void * | write_data, | ||
| unsigned int | write_len, | ||
| void * | read_data, | ||
| unsigned int | read_len | ||
| ) |
Definition at line 3837 of file pvrusb2-hdw.c.
Definition at line 1519 of file pvrusb2-hdw.c.
1.8.2