Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cx23885-vbi.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include "cx23885.h"

Go to the source code of this file.

Macros

#define dprintk(level, fmt, arg...)
 
#define VBI_LINE_LENGTH   1440
 
#define NTSC_VBI_START_LINE   10 /* line 10 - 21 */
 
#define NTSC_VBI_END_LINE   21
 
#define NTSC_VBI_LINES   (NTSC_VBI_END_LINE - NTSC_VBI_START_LINE + 1)
 
#define VBI_LINE_LENGTH   1440
 
#define VBI_LINE_COUNT   17
 

Functions

 module_param (vbibufs, int, 0644)
 
 MODULE_PARM_DESC (vbibufs,"number of vbi buffers, range 2-32")
 
 module_param (vbi_debug, int, 0644)
 
 MODULE_PARM_DESC (vbi_debug,"enable debug messages [vbi]")
 
int cx23885_vbi_fmt (struct file *file, void *priv, struct v4l2_format *f)
 
int cx23885_vbi_irq (struct cx23885_dev *dev, u32 status)
 
int cx23885_restart_vbi_queue (struct cx23885_dev *dev, struct cx23885_dmaqueue *q)
 
void cx23885_vbi_timeout (unsigned long data)
 

Variables

struct videobuf_queue_ops cx23885_vbi_qops
 

Macro Definition Documentation

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
do { if (vbi_debug >= level)\
printk(KERN_DEBUG "%s/0: " fmt, dev->name, ## arg);\
} while (0)

Definition at line 37 of file cx23885-vbi.c.

#define NTSC_VBI_END_LINE   21

Definition at line 46 of file cx23885-vbi.c.

#define NTSC_VBI_LINES   (NTSC_VBI_END_LINE - NTSC_VBI_START_LINE + 1)

Definition at line 47 of file cx23885-vbi.c.

#define NTSC_VBI_START_LINE   10 /* line 10 - 21 */

Definition at line 45 of file cx23885-vbi.c.

#define VBI_LINE_COUNT   17

Definition at line 184 of file cx23885-vbi.c.

#define VBI_LINE_LENGTH   1440

Definition at line 183 of file cx23885-vbi.c.

#define VBI_LINE_LENGTH   1440

Definition at line 183 of file cx23885-vbi.c.

Function Documentation

int cx23885_restart_vbi_queue ( struct cx23885_dev dev,
struct cx23885_dmaqueue q 
)

Definition at line 137 of file cx23885-vbi.c.

int cx23885_vbi_fmt ( struct file file,
void priv,
struct v4l2_format f 
)

Definition at line 50 of file cx23885-vbi.c.

int cx23885_vbi_irq ( struct cx23885_dev dev,
u32  status 
)

Definition at line 83 of file cx23885-vbi.c.

void cx23885_vbi_timeout ( unsigned long  data)

Definition at line 158 of file cx23885-vbi.c.

module_param ( vbibufs  ,
int  ,
0644   
)
module_param ( vbi_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( vbibufs  ,
"number of vbi  buffers,
range 2-32"   
)
MODULE_PARM_DESC ( vbi_debug  ,
"enable debug messages "  [vbi] 
)

Variable Documentation

struct videobuf_queue_ops cx23885_vbi_qops
Initial value:
= {
.buf_setup = vbi_setup,
.buf_prepare = vbi_prepare,
.buf_queue = vbi_queue,
.buf_release = vbi_release,
}

Definition at line 283 of file cx23885-vbi.c.