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/slab.h>
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>
#include <media/cx2341x.h>
#include "cx23885.h"
#include "cx23885-ioctl.h"
Go to the source code of this file.
#define CX23885_FIRM_IMAGE_NAME "v4l-cx23885-enc.fw" |
Definition at line 43 of file cx23885-417.c.
#define CX23885_FIRM_IMAGE_SIZE 376836 |
Definition at line 42 of file cx23885-417.c.
Definition at line 60 of file cx23885-417.c.
#define IVTV_API_STD_TIMEOUT 500 |
Definition at line 211 of file cx23885-417.c.
#define IVTV_CMD_HW_BLOCKS_RST 0xFFFFFFFF |
Definition at line 208 of file cx23885-417.c.
#define IVTV_REG_APU (0xA064) |
Definition at line 220 of file cx23885-417.c.
#define IVTV_REG_ENC_SDRAM_PRECHARGE (0x07FC) |
Definition at line 216 of file cx23885-417.c.
#define IVTV_REG_ENC_SDRAM_REFRESH (0x07F8) |
Definition at line 215 of file cx23885-417.c.
#define IVTV_REG_HW_BLOCKS (0x9054) |
Definition at line 218 of file cx23885-417.c.
#define IVTV_REG_SPU (0x9050) |
Definition at line 217 of file cx23885-417.c.
#define IVTV_REG_VPU (0x9058) |
Definition at line 219 of file cx23885-417.c.
Definition at line 272 of file cx23885-417.c.
#define MC417_GPIO_SEL_GPIO0 0x0 |
Definition at line 284 of file cx23885-417.c.
#define MC417_GPIO_SEL_GPIO1 0x1 |
Definition at line 283 of file cx23885-417.c.
#define MC417_GPIO_SEL_GPIO2 0x2 |
Definition at line 282 of file cx23885-417.c.
#define MC417_GPIO_SEL_GPIO3 0x3 |
Definition at line 281 of file cx23885-417.c.
#define MC417_MIADDR 0x0F00 |
Definition at line 240 of file cx23885-417.c.
#define MC417_MICS 0x2000 |
Definition at line 238 of file cx23885-417.c.
#define MC417_MIDATA 0x00FF |
Definition at line 241 of file cx23885-417.c.
#define MC417_MIRD 0x4000 |
Definition at line 237 of file cx23885-417.c.
#define MC417_MIRDY 0x1000 |
Definition at line 239 of file cx23885-417.c.
#define MC417_MIWR 0x8000 |
Definition at line 236 of file cx23885-417.c.
Definition at line 271 of file cx23885-417.c.
#define MC417_SPD_CTL_FAST 0x3 /* b'1x, but we use b'11 */ |
Definition at line 278 of file cx23885-417.c.
#define MC417_SPD_CTL_MEDIUM 0x0 |
Definition at line 277 of file cx23885-417.c.
#define MC417_SPD_CTL_SLOW 0x1 |
Definition at line 276 of file cx23885-417.c.
#define MC417_UART_GPIO_EN 0x00000001 |
Definition at line 273 of file cx23885-417.c.
#define MCI_MEMORY_ADDRESS_BYTE0 0x600 |
Definition at line 250 of file cx23885-417.c.
#define MCI_MEMORY_ADDRESS_BYTE1 0x500 |
Definition at line 249 of file cx23885-417.c.
#define MCI_MEMORY_ADDRESS_BYTE2 0x400 |
Definition at line 248 of file cx23885-417.c.
#define MCI_MEMORY_DATA_BYTE0 0x000 |
Definition at line 244 of file cx23885-417.c.
#define MCI_MEMORY_DATA_BYTE1 0x100 |
Definition at line 245 of file cx23885-417.c.
#define MCI_MEMORY_DATA_BYTE2 0x200 |
Definition at line 246 of file cx23885-417.c.
#define MCI_MEMORY_DATA_BYTE3 0x300 |
Definition at line 247 of file cx23885-417.c.
#define MCI_MODE_MEMORY_READ 0 |
Definition at line 262 of file cx23885-417.c.
#define MCI_MODE_MEMORY_WRITE 0x40 |
Definition at line 263 of file cx23885-417.c.
#define MCI_MODE_REGISTER_READ 0 |
Definition at line 260 of file cx23885-417.c.
#define MCI_MODE_REGISTER_WRITE 1 |
Definition at line 261 of file cx23885-417.c.
#define MCI_REGISTER_ADDRESS_BYTE0 0xC00 |
Definition at line 255 of file cx23885-417.c.
#define MCI_REGISTER_ADDRESS_BYTE1 0xD00 |
Definition at line 256 of file cx23885-417.c.
#define MCI_REGISTER_DATA_BYTE0 0x800 |
Definition at line 251 of file cx23885-417.c.
#define MCI_REGISTER_DATA_BYTE1 0x900 |
Definition at line 252 of file cx23885-417.c.
#define MCI_REGISTER_DATA_BYTE2 0xA00 |
Definition at line 253 of file cx23885-417.c.
#define MCI_REGISTER_DATA_BYTE3 0xB00 |
Definition at line 254 of file cx23885-417.c.
#define MCI_REGISTER_MODE 0xE00 |
Definition at line 257 of file cx23885-417.c.
enum cx23885_capture_bits |
CX23885_RAW_BITS_NONE | |
CX23885_RAW_BITS_YUV_CAPTURE | |
CX23885_RAW_BITS_PCM_CAPTURE | |
CX23885_RAW_BITS_VBI_CAPTURE | |
CX23885_RAW_BITS_PASSTHRU_CAPTURE | |
CX23885_RAW_BITS_TO_HOST_CAPTURE |
Definition at line 109 of file cx23885-417.c.
enum cx23885_capture_end |
Definition at line 117 of file cx23885-417.c.
enum cx23885_capture_type |
Definition at line 104 of file cx23885-417.c.
enum cx23885_copyright |
Definition at line 164 of file cx23885-417.c.
Definition at line 188 of file cx23885-417.c.
Definition at line 130 of file cx23885-417.c.
CX23885_DMA_TRANSFER_BITS_DONE | |
CX23885_DMA_TRANSFER_BITS_ERROR | |
CX23885_DMA_TRANSFER_BITS_LL_ERROR |
Definition at line 155 of file cx23885-417.c.
enum cx23885_dma_unit |
Definition at line 151 of file cx23885-417.c.
enum cx23885_field1_lines |
Definition at line 178 of file cx23885-417.c.
enum cx23885_field2_lines |
Definition at line 183 of file cx23885-417.c.
enum cx23885_framerate |
Definition at line 121 of file cx23885-417.c.
enum cx23885_mute |
Definition at line 192 of file cx23885-417.c.
Definition at line 196 of file cx23885-417.c.
Definition at line 201 of file cx23885-417.c.
Definition at line 175 of file cx23885-417.c.
Definition at line 171 of file cx23885-417.c.
Definition at line 168 of file cx23885-417.c.
enum cx23885_pause |
Definition at line 160 of file cx23885-417.c.
enum cx23885_picture_mask |
CX23885_PICTURE_MASK_NONE | |
CX23885_PICTURE_MASK_I_FRAMES | |
CX23885_PICTURE_MASK_I_P_FRAMES | |
CX23885_PICTURE_MASK_ALL_FRAMES |
Definition at line 134 of file cx23885-417.c.
enum cx23885_stream_port |
Definition at line 125 of file cx23885-417.c.
Definition at line 144 of file cx23885-417.c.
Definition at line 140 of file cx23885-417.c.
void cx23885_417_check_encoder | ( | struct cx23885_dev * | dev | ) |
Definition at line 1013 of file cx23885-417.c.
int cx23885_417_register | ( | struct cx23885_dev * | dev | ) |
Definition at line 1743 of file cx23885-417.c.
void cx23885_417_unregister | ( | struct cx23885_dev * | dev | ) |
Definition at line 1708 of file cx23885-417.c.
void cx23885_mc417_init | ( | struct cx23885_dev * | dev | ) |
Definition at line 286 of file cx23885-417.c.
void mc417_gpio_clear | ( | struct cx23885_dev * | dev, |
u32 | mask | ||
) |
Definition at line 644 of file cx23885-417.c.
void mc417_gpio_enable | ( | struct cx23885_dev * | dev, |
u32 | mask, | ||
int | asoutput | ||
) |
Definition at line 654 of file cx23885-417.c.
void mc417_gpio_set | ( | struct cx23885_dev * | dev, |
u32 | mask | ||
) |
Definition at line 634 of file cx23885-417.c.
int mc417_memory_read | ( | struct cx23885_dev * | dev, |
u32 | address, | ||
u32 * | value | ||
) |
Definition at line 544 of file cx23885-417.c.
int mc417_memory_write | ( | struct cx23885_dev * | dev, |
u32 | address, | ||
u32 | value | ||
) |
Definition at line 480 of file cx23885-417.c.
int mc417_register_read | ( | struct cx23885_dev * | dev, |
u16 | address, | ||
u32 * | value | ||
) |
Definition at line 386 of file cx23885-417.c.
int mc417_register_write | ( | struct cx23885_dev * | dev, |
u16 | address, | ||
u32 | value | ||
) |
Definition at line 322 of file cx23885-417.c.
MODULE_FIRMWARE | ( | CX23885_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" | |||
) |