Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/fs.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/vmalloc.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/cx2341x.h>
#include <linux/usb.h>
#include "cx231xx.h"
Go to the source code of this file.
Functions | |
module_param (mpegbufs, int, 0644) | |
MODULE_PARM_DESC (mpegbufs,"number of mpeg buffers, range 2-32") | |
module_param (mpeglines, int, 0644) | |
MODULE_PARM_DESC (mpeglines,"number of lines in an MPEG buffer, range 2-32") | |
module_param (mpeglinesize, int, 0644) | |
MODULE_PARM_DESC (mpeglinesize,"number of bytes in each line of an MPEG buffer, range 512-1024") | |
module_param (v4l_debug, int, 0644) | |
MODULE_PARM_DESC (v4l_debug,"enable V4L debug messages") | |
void | cx231xx_417_unregister (struct cx231xx *dev) |
int | cx231xx_417_register (struct cx231xx *dev) |
MODULE_FIRMWARE (CX231xx_FIRM_IMAGE_NAME) | |
Variables | |
struct cx231xx_dmaqueue * | dma_qq |
#define CX231xx_FIRM_IMAGE_NAME "v4l-cx23885-enc.fw" |
Definition at line 44 of file cx231xx-417.c.
#define CX231xx_FIRM_IMAGE_SIZE 376836 |
Definition at line 43 of file cx231xx-417.c.
#define CX23417_GPIO_MASK 0xFC0003FF |
Definition at line 298 of file cx231xx-417.c.
#define ITVC_READ_DIR 0x0001FC00 |
Definition at line 48 of file cx231xx-417.c.
#define ITVC_WRITE_DIR 0x03FDFC00 |
Definition at line 47 of file cx231xx-417.c.
#define IVTV_API_STD_TIMEOUT 500 |
Definition at line 241 of file cx231xx-417.c.
#define IVTV_CMD_HW_BLOCKS_RST 0xFFFFFFFF |
Definition at line 238 of file cx231xx-417.c.
#define IVTV_REG_APU (0xA064) |
Definition at line 250 of file cx231xx-417.c.
#define IVTV_REG_ENC_SDRAM_PRECHARGE (0x07FC) |
Definition at line 246 of file cx231xx-417.c.
#define IVTV_REG_ENC_SDRAM_REFRESH (0x07F8) |
Definition at line 245 of file cx231xx-417.c.
#define IVTV_REG_HW_BLOCKS (0x9054) |
Definition at line 248 of file cx231xx-417.c.
#define IVTV_REG_SPU (0x9050) |
Definition at line 247 of file cx231xx-417.c.
#define IVTV_REG_VPU (0x9058) |
Definition at line 249 of file cx231xx-417.c.
Definition at line 283 of file cx231xx-417.c.
#define MC417_GPIO_SEL_GPIO0 0x0 |
Definition at line 295 of file cx231xx-417.c.
#define MC417_GPIO_SEL_GPIO1 0x1 |
Definition at line 294 of file cx231xx-417.c.
#define MC417_GPIO_SEL_GPIO2 0x2 |
Definition at line 293 of file cx231xx-417.c.
#define MC417_GPIO_SEL_GPIO3 0x3 |
Definition at line 292 of file cx231xx-417.c.
#define MC417_MIADDR 0x0F00 |
Definition at line 272 of file cx231xx-417.c.
#define MC417_MICS 0x2000 |
Definition at line 270 of file cx231xx-417.c.
#define MC417_MIDATA 0x00FF |
Definition at line 273 of file cx231xx-417.c.
#define MC417_MIRD 0x4000 |
Definition at line 269 of file cx231xx-417.c.
#define MC417_MIRDY 0x1000 |
Definition at line 271 of file cx231xx-417.c.
#define MC417_MIWR 0x8000 |
Definition at line 268 of file cx231xx-417.c.
Definition at line 282 of file cx231xx-417.c.
#define MC417_SPD_CTL_FAST 0x3 /* b'1x, but we use b'11 */ |
Definition at line 289 of file cx231xx-417.c.
#define MC417_SPD_CTL_MEDIUM 0x0 |
Definition at line 288 of file cx231xx-417.c.
#define MC417_SPD_CTL_SLOW 0x1 |
Definition at line 287 of file cx231xx-417.c.
#define MC417_UART_GPIO_EN 0x00000001 |
Definition at line 284 of file cx231xx-417.c.
#define MCI_MEMORY_ADDRESS_BYTE0 0x30 |
Definition at line 57 of file cx231xx-417.c.
#define MCI_MEMORY_ADDRESS_BYTE1 0x28 |
Definition at line 56 of file cx231xx-417.c.
#define MCI_MEMORY_ADDRESS_BYTE2 0x20 |
Definition at line 55 of file cx231xx-417.c.
#define MCI_MEMORY_DATA_BYTE0 0x00 |
Definition at line 50 of file cx231xx-417.c.
#define MCI_MEMORY_DATA_BYTE1 0x08 |
Definition at line 51 of file cx231xx-417.c.
#define MCI_MEMORY_DATA_BYTE2 0x10 |
Definition at line 52 of file cx231xx-417.c.
#define MCI_MEMORY_DATA_BYTE3 0x18 |
Definition at line 53 of file cx231xx-417.c.
#define MCI_MODE_MEMORY_READ 0x000 |
Definition at line 72 of file cx231xx-417.c.
#define MCI_MODE_MEMORY_WRITE 0x4000 |
Definition at line 73 of file cx231xx-417.c.
#define MCI_MODE_REGISTER_READ 0x000 |
Definition at line 70 of file cx231xx-417.c.
#define MCI_MODE_REGISTER_WRITE 0x100 |
Definition at line 71 of file cx231xx-417.c.
#define MCI_REGISTER_ADDRESS_BYTE0 0x60 |
Definition at line 64 of file cx231xx-417.c.
#define MCI_REGISTER_ADDRESS_BYTE1 0x68 |
Definition at line 65 of file cx231xx-417.c.
#define MCI_REGISTER_DATA_BYTE0 0x40 |
Definition at line 59 of file cx231xx-417.c.
#define MCI_REGISTER_DATA_BYTE1 0x48 |
Definition at line 60 of file cx231xx-417.c.
#define MCI_REGISTER_DATA_BYTE2 0x50 |
Definition at line 61 of file cx231xx-417.c.
#define MCI_REGISTER_DATA_BYTE3 0x58 |
Definition at line 62 of file cx231xx-417.c.
#define MCI_REGISTER_MODE 0x70 |
Definition at line 67 of file cx231xx-417.c.
enum cx231xx_capture_bits |
CX231xx_RAW_BITS_NONE | |
CX231xx_RAW_BITS_YUV_CAPTURE | |
CX231xx_RAW_BITS_PCM_CAPTURE | |
CX231xx_RAW_BITS_VBI_CAPTURE | |
CX231xx_RAW_BITS_PASSTHRU_CAPTURE | |
CX231xx_RAW_BITS_TO_HOST_CAPTURE |
Definition at line 139 of file cx231xx-417.c.
enum cx231xx_capture_end |
Definition at line 147 of file cx231xx-417.c.
enum cx231xx_capture_type |
Definition at line 134 of file cx231xx-417.c.
enum cx231xx_copyright |
Definition at line 194 of file cx231xx-417.c.
Definition at line 218 of file cx231xx-417.c.
Definition at line 160 of file cx231xx-417.c.
CX231xx_DMA_TRANSFER_BITS_DONE | |
CX231xx_DMA_TRANSFER_BITS_ERROR | |
CX231xx_DMA_TRANSFER_BITS_LL_ERROR |
Definition at line 185 of file cx231xx-417.c.
enum cx231xx_dma_unit |
Definition at line 181 of file cx231xx-417.c.
enum cx231xx_field1_lines |
Definition at line 208 of file cx231xx-417.c.
enum cx231xx_field2_lines |
Definition at line 213 of file cx231xx-417.c.
enum cx231xx_framerate |
Definition at line 151 of file cx231xx-417.c.
enum cx231xx_mute |
Definition at line 222 of file cx231xx-417.c.
Definition at line 226 of file cx231xx-417.c.
Definition at line 231 of file cx231xx-417.c.
Definition at line 205 of file cx231xx-417.c.
Definition at line 201 of file cx231xx-417.c.
Definition at line 198 of file cx231xx-417.c.
enum cx231xx_pause |
Definition at line 190 of file cx231xx-417.c.
enum cx231xx_picture_mask |
CX231xx_PICTURE_MASK_NONE | |
CX231xx_PICTURE_MASK_I_FRAMES | |
CX231xx_PICTURE_MASK_I_P_FRAMES | |
CX231xx_PICTURE_MASK_ALL_FRAMES |
Definition at line 164 of file cx231xx-417.c.
enum cx231xx_stream_port |
Definition at line 155 of file cx231xx-417.c.
Definition at line 174 of file cx231xx-417.c.
Definition at line 170 of file cx231xx-417.c.
Definition at line 2159 of file cx231xx-417.c.
Definition at line 2121 of file cx231xx-417.c.
MODULE_FIRMWARE | ( | CX231xx_FIRM_IMAGE_NAME | ) |
module_param | ( | mpegbufs | , |
int | , | ||
0644 | |||
) |
module_param | ( | mpeglines | , |
int | , | ||
0644 | |||
) |
module_param | ( | mpeglinesize | , |
int | , | ||
0644 | |||
) |
module_param | ( | v4l_debug | , |
int | , | ||
0644 | |||
) |
MODULE_PARM_DESC | ( | mpegbufs | , |
"number of mpeg | buffers, | ||
range 2-32" | |||
) |
MODULE_PARM_DESC | ( | mpeglinesize | , |
"number of bytes in each line of an MPEG | buffer, | ||
range 512-1024" | |||
) |
MODULE_PARM_DESC | ( | v4l_debug | , |
"enable V4L debug messages" | |||
) |
struct cx231xx_dmaqueue* dma_qq |
Definition at line 89 of file cx231xx-417.c.