Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
saa7134-core.c File Reference
#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/kmod.h>
#include <linux/sound.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/dma-mapping.h>
#include <linux/pm.h>
#include "saa7134-reg.h"
#include "saa7134.h"

Go to the source code of this file.

Macros

#define dprintk(fmt, arg...)
 
#define request_submodules(dev)
 
#define flush_request_submodules(dev)
 
#define IRQBITS   ARRAY_SIZE(irqbits)
 

Functions

 MODULE_DESCRIPTION ("v4l2 driver module for saa7130/34 based TV cards")
 
 MODULE_AUTHOR ("Gerd Knorr <[email protected]> [SuSE Labs]")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (SAA7134_VERSION)
 
 module_param (irq_debug, int, 0644)
 
 MODULE_PARM_DESC (irq_debug,"enable debug messages [IRQ handler]")
 
 module_param (core_debug, int, 0644)
 
 MODULE_PARM_DESC (core_debug,"enable debug messages [core]")
 
 module_param (gpio_tracking, int, 0644)
 
 MODULE_PARM_DESC (gpio_tracking,"enable debug messages [gpio]")
 
 module_param (alsa, int, 0644)
 
 MODULE_PARM_DESC (alsa,"enable/disable ALSA DMA sound [dmasound]")
 
 module_param (latency, int, 0444)
 
 MODULE_PARM_DESC (latency,"pci latency timer")
 
 module_param_named (no_overlay, saa7134_no_overlay, int, 0444)
 
 MODULE_PARM_DESC (no_overlay,"allow override overlay default (0 disables, 1 enables)"" [some VIA/SIS chipsets are known to have problem with overlay]")
 
 module_param_array (video_nr, int, NULL, 0444)
 
 module_param_array (vbi_nr, int, NULL, 0444)
 
 module_param_array (radio_nr, int, NULL, 0444)
 
 module_param_array (tuner, int, NULL, 0444)
 
 module_param_array (card, int, NULL, 0444)
 
 MODULE_PARM_DESC (video_nr,"video device number")
 
 MODULE_PARM_DESC (vbi_nr,"vbi device number")
 
 MODULE_PARM_DESC (radio_nr,"radio device number")
 
 MODULE_PARM_DESC (tuner,"tuner type")
 
 MODULE_PARM_DESC (card,"card type")
 
 DEFINE_MUTEX (saa7134_devlist_lock)
 
 EXPORT_SYMBOL (saa7134_devlist_lock)
 
 LIST_HEAD (saa7134_devlist)
 
 EXPORT_SYMBOL (saa7134_devlist)
 
void saa7134_track_gpio (struct saa7134_dev *dev, char *msg)
 
void saa7134_set_gpio (struct saa7134_dev *dev, int bit_no, int value)
 
int saa7134_buffer_count (unsigned int size, unsigned int count)
 
int saa7134_buffer_startpage (struct saa7134_buf *buf)
 
unsigned long saa7134_buffer_base (struct saa7134_buf *buf)
 
int saa7134_pgtable_alloc (struct pci_dev *pci, struct saa7134_pgtable *pt)
 
int saa7134_pgtable_build (struct pci_dev *pci, struct saa7134_pgtable *pt, struct scatterlist *list, unsigned int length, unsigned int startpage)
 
void saa7134_pgtable_free (struct pci_dev *pci, struct saa7134_pgtable *pt)
 
void saa7134_dma_free (struct videobuf_queue *q, struct saa7134_buf *buf)
 
int saa7134_buffer_queue (struct saa7134_dev *dev, struct saa7134_dmaqueue *q, struct saa7134_buf *buf)
 
void saa7134_buffer_finish (struct saa7134_dev *dev, struct saa7134_dmaqueue *q, unsigned int state)
 
void saa7134_buffer_next (struct saa7134_dev *dev, struct saa7134_dmaqueue *q)
 
void saa7134_buffer_timeout (unsigned long data)
 
int saa7134_set_dmabits (struct saa7134_dev *dev)
 
int saa7134_ts_register (struct saa7134_mpeg_ops *ops)
 
void saa7134_ts_unregister (struct saa7134_mpeg_ops *ops)
 
 EXPORT_SYMBOL (saa7134_ts_register)
 
 EXPORT_SYMBOL (saa7134_ts_unregister)
 
 module_init (saa7134_init)
 
 module_exit (saa7134_fini)
 
 EXPORT_SYMBOL (saa7134_set_gpio)
 
 EXPORT_SYMBOL (saa7134_boards)
 
 EXPORT_SYMBOL (saa7134_dmasound_init)
 
 EXPORT_SYMBOL (saa7134_dmasound_exit)
 
 EXPORT_SYMBOL (saa7134_pgtable_free)
 
 EXPORT_SYMBOL (saa7134_pgtable_build)
 
 EXPORT_SYMBOL (saa7134_pgtable_alloc)
 
 EXPORT_SYMBOL (saa7134_set_dmabits)
 

Variables

int saa7134_no_overlay =-1
 
int(* saa7134_dmasound_init )(struct saa7134_dev *dev)
 
int(* saa7134_dmasound_exit )(struct saa7134_dev *dev)
 

Macro Definition Documentation

#define dprintk (   fmt,
  arg... 
)
Value:
if (core_debug) \
printk(KERN_DEBUG "%s/core: " fmt, dev->name , ## arg)

Definition at line 101 of file saa7134-core.c.

#define flush_request_submodules (   dev)

Definition at line 178 of file saa7134-core.c.

#define IRQBITS   ARRAY_SIZE(irqbits)

Definition at line 484 of file saa7134-core.c.

#define request_submodules (   dev)

Definition at line 177 of file saa7134-core.c.

Function Documentation

DEFINE_MUTEX ( saa7134_devlist_lock  )
EXPORT_SYMBOL ( saa7134_devlist_lock  )
EXPORT_SYMBOL ( saa7134_devlist  )
EXPORT_SYMBOL ( saa7134_ts_register  )
EXPORT_SYMBOL ( saa7134_ts_unregister  )
EXPORT_SYMBOL ( saa7134_set_gpio  )
EXPORT_SYMBOL ( saa7134_boards  )
EXPORT_SYMBOL ( saa7134_dmasound_init  )
EXPORT_SYMBOL ( saa7134_dmasound_exit  )
EXPORT_SYMBOL ( saa7134_pgtable_free  )
EXPORT_SYMBOL ( saa7134_pgtable_build  )
EXPORT_SYMBOL ( saa7134_pgtable_alloc  )
EXPORT_SYMBOL ( saa7134_set_dmabits  )
LIST_HEAD ( saa7134_devlist  )
MODULE_AUTHOR ( "Gerd Knorr <[email protected]> "  [SuSE Labs])
MODULE_DESCRIPTION ( "v4l2 driver module for saa7130/34 based TV cards )
module_exit ( saa7134_fini  )
module_init ( saa7134_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( irq_debug  ,
int  ,
0644   
)
module_param ( core_debug  ,
int  ,
0644   
)
module_param ( gpio_tracking  ,
int  ,
0644   
)
module_param ( alsa  ,
int  ,
0644   
)
module_param ( latency  ,
int  ,
0444   
)
module_param_array ( video_nr  ,
int  ,
NULL  ,
0444   
)
module_param_array ( vbi_nr  ,
int  ,
NULL  ,
0444   
)
module_param_array ( radio_nr  ,
int  ,
NULL  ,
0444   
)
module_param_array ( tuner  ,
int  ,
NULL  ,
0444   
)
module_param_array ( card  ,
int  ,
NULL  ,
0444   
)
module_param_named ( no_overlay  ,
saa7134_no_overlay  ,
int  ,
0444   
)
MODULE_PARM_DESC ( irq_debug  ,
"enable debug messages "  [IRQ handler] 
)
MODULE_PARM_DESC ( core_debug  ,
"enable debug messages "  [core] 
)
MODULE_PARM_DESC ( gpio_tracking  ,
"enable debug messages "  [gpio] 
)
MODULE_PARM_DESC ( alsa  ,
"enable/disable ALSA DMA sound "  [dmasound] 
)
MODULE_PARM_DESC ( latency  ,
"pci latency timer  
)
MODULE_PARM_DESC ( no_overlay  ,
"allow override overlay default (0 disables, 1 enables)"" "  [some VIA/SIS chipsets are known to have problem with overlay] 
)
MODULE_PARM_DESC ( video_nr  ,
"video device number  
)
MODULE_PARM_DESC ( vbi_nr  ,
"vbi device number  
)
MODULE_PARM_DESC ( radio_nr  ,
"radio device number  
)
MODULE_PARM_DESC ( tuner  ,
"tuner type  
)
MODULE_PARM_DESC ( card  ,
"card type  
)
MODULE_VERSION ( SAA7134_VERSION  )
unsigned long saa7134_buffer_base ( struct saa7134_buf buf)

Definition at line 209 of file saa7134-core.c.

int saa7134_buffer_count ( unsigned int  size,
unsigned int  count 
)

Definition at line 194 of file saa7134-core.c.

void saa7134_buffer_finish ( struct saa7134_dev dev,
struct saa7134_dmaqueue q,
unsigned int  state 
)

Definition at line 302 of file saa7134-core.c.

void saa7134_buffer_next ( struct saa7134_dev dev,
struct saa7134_dmaqueue q 
)

Definition at line 316 of file saa7134-core.c.

int saa7134_buffer_queue ( struct saa7134_dev dev,
struct saa7134_dmaqueue q,
struct saa7134_buf buf 
)

Definition at line 274 of file saa7134-core.c.

int saa7134_buffer_startpage ( struct saa7134_buf buf)

Definition at line 204 of file saa7134-core.c.

void saa7134_buffer_timeout ( unsigned long  data)

Definition at line 349 of file saa7134-core.c.

void saa7134_dma_free ( struct videobuf_queue q,
struct saa7134_buf buf 
)

Definition at line 261 of file saa7134-core.c.

int saa7134_pgtable_alloc ( struct pci_dev pci,
struct saa7134_pgtable pt 
)

Definition at line 221 of file saa7134-core.c.

int saa7134_pgtable_build ( struct pci_dev pci,
struct saa7134_pgtable pt,
struct scatterlist list,
unsigned int  length,
unsigned int  startpage 
)

Definition at line 235 of file saa7134-core.c.

void saa7134_pgtable_free ( struct pci_dev pci,
struct saa7134_pgtable pt 
)

Definition at line 251 of file saa7134-core.c.

int saa7134_set_dmabits ( struct saa7134_dev dev)

Definition at line 374 of file saa7134-core.c.

void saa7134_set_gpio ( struct saa7134_dev dev,
int  bit_no,
int  value 
)

Definition at line 120 of file saa7134-core.c.

void saa7134_track_gpio ( struct saa7134_dev dev,
char msg 
)

Definition at line 104 of file saa7134-core.c.

int saa7134_ts_register ( struct saa7134_mpeg_ops ops)

Definition at line 1294 of file saa7134-core.c.

void saa7134_ts_unregister ( struct saa7134_mpeg_ops ops)

Definition at line 1306 of file saa7134-core.c.

Variable Documentation

int(* saa7134_dmasound_exit)(struct saa7134_dev *dev)

Definition at line 99 of file saa7134-core.c.

int(* saa7134_dmasound_init)(struct saa7134_dev *dev)

Definition at line 98 of file saa7134-core.c.

int saa7134_no_overlay =-1

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