Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
zoran_card.c File Reference
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/proc_fs.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/videodev2.h>
#include <linux/spinlock.h>
#include <linux/sem.h>
#include <linux/kmod.h>
#include <linux/wait.h>
#include <linux/pci.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/io.h>
#include <media/v4l2-common.h>
#include <media/bt819.h>
#include "videocodec.h"
#include "zoran.h"
#include "zoran_card.h"
#include "zoran_device.h"
#include "zoran_procfs.h"

Go to the source code of this file.

Macros

#define ZORAN_VERSION   "0.10.1"
 
#define ZR_DEVICE(subven, subdev, data)
 

Functions

 module_param_array (card, int, NULL, 0444)
 
 MODULE_PARM_DESC (card,"Card type")
 
 module_param (vidmem, ulong, 0444)
 
 MODULE_PARM_DESC (vidmem,"Default video memory base address")
 
 module_param (default_input, uint, 0444)
 
 MODULE_PARM_DESC (default_input,"Default input (0=Composite, 1=S-Video, 2=Internal)")
 
 module_param (default_mux, int, 0644)
 
 MODULE_PARM_DESC (default_mux,"Default 6 Eyes mux setting (Input selection)")
 
 module_param (default_norm, int, 0444)
 
 MODULE_PARM_DESC (default_norm,"Default norm (0=PAL, 1=NTSC, 2=SECAM)")
 
 module_param_array (video_nr, int, NULL, 0444)
 
 MODULE_PARM_DESC (video_nr,"Video device number (-1=Auto)")
 
 module_param (v4l_nbufs, int, 0644)
 
 MODULE_PARM_DESC (v4l_nbufs,"Maximum number of V4L buffers to use")
 
 module_param (v4l_bufsize, int, 0644)
 
 MODULE_PARM_DESC (v4l_bufsize,"Maximum size per V4L buffer (in kB)")
 
 module_param (jpg_nbufs, int, 0644)
 
 MODULE_PARM_DESC (jpg_nbufs,"Maximum number of JPG buffers to use")
 
 module_param (jpg_bufsize, int, 0644)
 
 MODULE_PARM_DESC (jpg_bufsize,"Maximum size per JPG buffer (in kB)")
 
 module_param (pass_through, int, 0644)
 
 MODULE_PARM_DESC (pass_through,"Pass TV signal through to TV-out when idling")
 
 module_param_named (debug, zr36067_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Debug level (0-5)")
 
 MODULE_DESCRIPTION ("Zoran-36057/36067 JPEG codec driver")
 
 MODULE_AUTHOR ("Serguei Miridonov")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (ZORAN_VERSION)
 
 MODULE_DEVICE_TABLE (pci, zr36067_pci_tbl)
 
void zr36016_write (struct videocodec *codec, u16 reg, u32 val)
 
int zoran_check_jpg_settings (struct zoran *zr, struct zoran_jpg_settings *settings, int try)
 
void zoran_open_init_params (struct zoran *zr)
 
void zoran_vdev_release (struct video_device *vdev)
 
 module_init (zoran_init)
 
 module_exit (zoran_exit)
 

Variables

struct zoran_format zoran_formats []
 
int v4l_nbufs = 4
 
int v4l_bufsize = 864
 
int jpg_nbufs = 32
 
int jpg_bufsize = 512
 
int pass_through = 0
 
int zr36067_debug = 1
 

Macro Definition Documentation

#define ZORAN_VERSION   "0.10.1"

Definition at line 126 of file zoran_card.c.

#define ZR_DEVICE (   subven,
  subdev,
  data 
)
Value:
{ \
.subvendor = (subven), .subdevice = (subdev), .driver_data = (data) }

Definition at line 133 of file zoran_card.c.

Function Documentation

MODULE_AUTHOR ( "Serguei Miridonov"  )
MODULE_DESCRIPTION ( "Zoran-36057/36067 JPEG codec driver )
MODULE_DEVICE_TABLE ( pci  ,
zr36067_pci_tbl   
)
module_exit ( zoran_exit  )
module_init ( zoran_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( vidmem  ,
ulong  ,
0444   
)
module_param ( default_input  ,
uint  ,
0444   
)
module_param ( default_mux  ,
int  ,
0644   
)
module_param ( default_norm  ,
int  ,
0444   
)
module_param ( v4l_nbufs  ,
int  ,
0644   
)
module_param ( v4l_bufsize  ,
int  ,
0644   
)
module_param ( jpg_nbufs  ,
int  ,
0644   
)
module_param ( jpg_bufsize  ,
int  ,
0644   
)
module_param ( pass_through  ,
int  ,
0644   
)
module_param_array ( card  ,
int  ,
NULL  ,
0444   
)
module_param_array ( video_nr  ,
int  ,
NULL  ,
0444   
)
module_param_named ( debug  ,
zr36067_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( card  ,
"Card type  
)
MODULE_PARM_DESC ( vidmem  ,
"Default video memory base address  
)
MODULE_PARM_DESC ( default_input  ,
"Default input (0=Composite, 1=S-Video, 2=Internal)"   
)
MODULE_PARM_DESC ( default_mux  ,
"Default 6 Eyes mux setting (Input selection)"   
)
MODULE_PARM_DESC ( default_norm  ,
"Default norm (0=PAL, 1=NTSC, 2=SECAM)"   
)
MODULE_PARM_DESC ( video_nr  ,
"Video device number (-1=Auto)"   
)
MODULE_PARM_DESC ( v4l_nbufs  ,
"Maximum number of V4L buffers to use"   
)
MODULE_PARM_DESC ( v4l_bufsize  ,
"Maximum size per V4L buffer (in kB)"   
)
MODULE_PARM_DESC ( jpg_nbufs  ,
"Maximum number of JPG buffers to use"   
)
MODULE_PARM_DESC ( jpg_bufsize  ,
"Maximum size per JPG buffer (in kB)"   
)
MODULE_PARM_DESC ( pass_through  ,
"Pass TV signal through to TV-out when idling"   
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0-5)"   
)
MODULE_VERSION ( ZORAN_VERSION  )
int zoran_check_jpg_settings ( struct zoran zr,
struct zoran_jpg_settings settings,
int  try 
)

Definition at line 731 of file zoran_card.c.

void zoran_open_init_params ( struct zoran zr)

Definition at line 891 of file zoran_card.c.

void zoran_vdev_release ( struct video_device vdev)

Definition at line 1127 of file zoran_card.c.

void zr36016_write ( struct videocodec codec,
u16  reg,
u32  val 
)

Definition at line 233 of file zoran_card.c.

Variable Documentation

int jpg_bufsize = 512

Definition at line 110 of file zoran_card.c.

int jpg_nbufs = 32

Definition at line 109 of file zoran_card.c.

int pass_through = 0

Definition at line 116 of file zoran_card.c.

int v4l_bufsize = 864

Definition at line 103 of file zoran_card.c.

int v4l_nbufs = 4

Definition at line 102 of file zoran_card.c.

struct zoran_format zoran_formats[]

Definition at line 77 of file zoran_driver.c.

int zr36067_debug = 1

Definition at line 122 of file zoran_card.c.