Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
saa7164-core.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kmod.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <asm/div64.h>
#include "saa7164.h"

Go to the source code of this file.

Macros

#define INT_SIZE   16
 
#define FIXED_VIDEO_PID   0xf1
 
#define FIXED_AUDIO_PID   0xf2
 

Functions

 MODULE_DESCRIPTION ("Driver for NXP SAA7164 based TV cards")
 
 MODULE_AUTHOR ("Steven Toth <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (debug, saa_debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable debug messages")
 
 module_param (fw_debug, int, 0644)
 
 MODULE_PARM_DESC (fw_debug,"Firware debug level def:2")
 
 module_param (encoder_buffers, int, 0644)
 
 MODULE_PARM_DESC (encoder_buffers,"Total buffers in read queue 16-512 def:64")
 
 module_param (vbi_buffers, int, 0644)
 
 MODULE_PARM_DESC (vbi_buffers,"Total buffers in read queue 16-512 def:64")
 
 module_param (waitsecs, int, 0644)
 
 MODULE_PARM_DESC (waitsecs,"timeout on firmware messages")
 
 module_param_array (card, int, NULL, 0444)
 
 MODULE_PARM_DESC (card,"card type")
 
 module_param (print_histogram, int, 0644)
 
 MODULE_PARM_DESC (print_histogram,"print histogram values once")
 
 module_param (crc_checking, int, 0644)
 
 MODULE_PARM_DESC (crc_checking,"enable crc sanity checking on buffers")
 
 module_param (guard_checking, int, 0644)
 
 MODULE_PARM_DESC (guard_checking,"enable dma sanity checking for buffer overruns")
 
 LIST_HEAD (saa7164_devlist)
 
void saa7164_histogram_update (struct saa7164_histogram *hg, u32 val)
 
void saa7164_getfirmwarestatus (struct saa7164_dev *dev)
 
u32 saa7164_getcurrentfirmwareversion (struct saa7164_dev *dev)
 
void saa7164_dumpregs (struct saa7164_dev *dev, u32 addr)
 
 MODULE_DEVICE_TABLE (pci, saa7164_pci_tbl)
 
 module_init (saa7164_init)
 
 module_exit (saa7164_fini)
 

Variables

unsigned int saa_debug
 
unsigned int fw_debug
 
unsigned int encoder_buffers = SAA7164_MAX_ENCODER_BUFFERS
 
unsigned int vbi_buffers = SAA7164_MAX_VBI_BUFFERS
 
unsigned int waitsecs = 10
 
unsigned int print_histogram = 64
 
unsigned int crc_checking = 1
 
unsigned int guard_checking = 1
 

Macro Definition Documentation

#define FIXED_AUDIO_PID   0xf2

Definition at line 114 of file saa7164-core.c.

#define FIXED_VIDEO_PID   0xf1

Definition at line 113 of file saa7164-core.c.

#define INT_SIZE   16

Definition at line 93 of file saa7164-core.c.

Function Documentation

LIST_HEAD ( saa7164_devlist  )
MODULE_AUTHOR ( "Steven Toth <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for NXP SAA7164 based TV cards )
MODULE_DEVICE_TABLE ( pci  ,
saa7164_pci_tbl   
)
module_exit ( saa7164_fini  )
module_init ( saa7164_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( fw_debug  ,
int  ,
0644   
)
module_param ( encoder_buffers  ,
int  ,
0644   
)
module_param ( vbi_buffers  ,
int  ,
0644   
)
module_param ( waitsecs  ,
int  ,
0644   
)
module_param ( print_histogram  ,
int  ,
0644   
)
module_param ( crc_checking  ,
int  ,
0644   
)
module_param ( guard_checking  ,
int  ,
0644   
)
module_param_array ( card  ,
int  ,
NULL  ,
0444   
)
module_param_named ( debug  ,
saa_debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"enable debug messages"   
)
MODULE_PARM_DESC ( fw_debug  ,
"Firware debug level def:2"   
)
MODULE_PARM_DESC ( encoder_buffers  ,
"Total buffers in read queue 16-512 def:64"   
)
MODULE_PARM_DESC ( vbi_buffers  ,
"Total buffers in read queue 16-512 def:64"   
)
MODULE_PARM_DESC ( waitsecs  ,
"timeout on firmware messages"   
)
MODULE_PARM_DESC ( card  ,
"card type  
)
MODULE_PARM_DESC ( print_histogram  ,
"print histogram values once"   
)
MODULE_PARM_DESC ( crc_checking  ,
"enable crc sanity checking on buffers"   
)
MODULE_PARM_DESC ( guard_checking  ,
"enable dma sanity checking for buffer overruns"   
)
void saa7164_dumpregs ( struct saa7164_dev dev,
u32  addr 
)

Definition at line 760 of file saa7164-core.c.

u32 saa7164_getcurrentfirmwareversion ( struct saa7164_dev dev)

Definition at line 744 of file saa7164-core.c.

void saa7164_getfirmwarestatus ( struct saa7164_dev dev)

Definition at line 723 of file saa7164-core.c.

void saa7164_histogram_update ( struct saa7164_histogram hg,
u32  val 
)

Definition at line 223 of file saa7164-core.c.

Variable Documentation

unsigned int crc_checking = 1

Definition at line 79 of file saa7164-core.c.

unsigned int encoder_buffers = SAA7164_MAX_ENCODER_BUFFERS

Definition at line 59 of file saa7164-core.c.

unsigned int fw_debug

Definition at line 55 of file saa7164-core.c.

unsigned int guard_checking = 1

Definition at line 83 of file saa7164-core.c.

unsigned int print_histogram = 64

Definition at line 75 of file saa7164-core.c.

unsigned int saa_debug

Definition at line 51 of file saa7164-core.c.

unsigned int vbi_buffers = SAA7164_MAX_VBI_BUFFERS

Definition at line 63 of file saa7164-core.c.

unsigned int waitsecs = 10

Definition at line 67 of file saa7164-core.c.