Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cx88-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/pci.h>
#include <linux/delay.h>
#include <linux/videodev2.h>
#include <linux/mutex.h>
#include "cx88.h"
#include <media/v4l2-common.h>
#include <media/v4l2-ioctl.h>

Go to the source code of this file.

Macros

#define dprintk(level, fmt, arg...)
 
#define NO_SYNC_LINE   (-1U)
 

Functions

 MODULE_DESCRIPTION ("v4l2 driver module for cx2388x based TV cards")
 
 MODULE_AUTHOR ("Gerd Knorr <[email protected]> [SuSE Labs]")
 
 MODULE_LICENSE ("GPL")
 
 module_param (core_debug, int, 0644)
 
 MODULE_PARM_DESC (core_debug,"enable debug messages [core]")
 
 module_param (nicam, int, 0644)
 
 MODULE_PARM_DESC (nicam,"tv audio is nicam")
 
 module_param (nocomb, int, 0644)
 
 MODULE_PARM_DESC (nocomb,"disable comb filter")
 
int cx88_risc_buffer (struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int top_offset, unsigned int bottom_offset, unsigned int bpl, unsigned int padding, unsigned int lines)
 
int cx88_risc_databuffer (struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi)
 
int cx88_risc_stopper (struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value)
 
void cx88_free_buffer (struct videobuf_queue *q, struct cx88_buffer *buf)
 
int cx88_sram_channel_setup (struct cx88_core *core, const struct sram_channel *ch, unsigned int bpl, u32 risc)
 
void cx88_sram_channel_dump (struct cx88_core *core, const struct sram_channel *ch)
 
void cx88_print_irqbits (const char *name, const char *tag, const char *strings[], int len, u32 bits, u32 mask)
 
int cx88_core_irq (struct cx88_core *core, u32 status)
 
void cx88_wakeup (struct cx88_core *core, struct cx88_dmaqueue *q, u32 count)
 
void cx88_shutdown (struct cx88_core *core)
 
int cx88_reset (struct cx88_core *core)
 
int cx88_set_scale (struct cx88_core *core, unsigned int width, unsigned int height, enum v4l2_field field)
 
int cx88_start_audio_dma (struct cx88_core *core)
 
int cx88_stop_audio_dma (struct cx88_core *core)
 
int cx88_set_tvnorm (struct cx88_core *core, v4l2_std_id norm)
 
struct video_devicecx88_vdev_init (struct cx88_core *core, struct pci_dev *pci, const struct video_device *template_, const char *type)
 
struct cx88_corecx88_core_get (struct pci_dev *pci)
 
void cx88_core_put (struct cx88_core *core, struct pci_dev *pci)
 
 EXPORT_SYMBOL (cx88_print_irqbits)
 
 EXPORT_SYMBOL (cx88_core_irq)
 
 EXPORT_SYMBOL (cx88_wakeup)
 
 EXPORT_SYMBOL (cx88_reset)
 
 EXPORT_SYMBOL (cx88_shutdown)
 
 EXPORT_SYMBOL (cx88_risc_buffer)
 
 EXPORT_SYMBOL (cx88_risc_databuffer)
 
 EXPORT_SYMBOL (cx88_risc_stopper)
 
 EXPORT_SYMBOL (cx88_free_buffer)
 
 EXPORT_SYMBOL (cx88_sram_channels)
 
 EXPORT_SYMBOL (cx88_sram_channel_setup)
 
 EXPORT_SYMBOL (cx88_sram_channel_dump)
 
 EXPORT_SYMBOL (cx88_set_tvnorm)
 
 EXPORT_SYMBOL (cx88_set_scale)
 
 EXPORT_SYMBOL (cx88_vdev_init)
 
 EXPORT_SYMBOL (cx88_core_get)
 
 EXPORT_SYMBOL (cx88_core_put)
 
 EXPORT_SYMBOL (cx88_ir_start)
 
 EXPORT_SYMBOL (cx88_ir_stop)
 

Variables

struct sram_channel cx88_sram_channels []
 

Macro Definition Documentation

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

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

#define NO_SYNC_LINE   (-1U)

Definition at line 70 of file cx88-core.c.

Function Documentation

struct cx88_core* cx88_core_get ( struct pci_dev pci)
read

Definition at line 1043 of file cx88-core.c.

int cx88_core_irq ( struct cx88_core core,
u32  status 
)

Definition at line 521 of file cx88-core.c.

void cx88_core_put ( struct cx88_core core,
struct pci_dev pci 
)

Definition at line 1073 of file cx88-core.c.

void cx88_free_buffer ( struct videobuf_queue q,
struct cx88_buffer buf 
)

Definition at line 215 of file cx88-core.c.

void cx88_print_irqbits ( const char name,
const char tag,
const char strings[],
int  len,
u32  bits,
u32  mask 
)

Definition at line 499 of file cx88-core.c.

int cx88_reset ( struct cx88_core core)

Definition at line 593 of file cx88-core.c.

int cx88_risc_buffer ( struct pci_dev pci,
struct btcx_riscmem risc,
struct scatterlist sglist,
unsigned int  top_offset,
unsigned int  bottom_offset,
unsigned int  bpl,
unsigned int  padding,
unsigned int  lines 
)

Definition at line 128 of file cx88-core.c.

int cx88_risc_databuffer ( struct pci_dev pci,
struct btcx_riscmem risc,
struct scatterlist sglist,
unsigned int  bpl,
unsigned int  lines,
unsigned int  lpi 
)

Definition at line 167 of file cx88-core.c.

int cx88_risc_stopper ( struct pci_dev pci,
struct btcx_riscmem risc,
u32  reg,
u32  mask,
u32  value 
)

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

int cx88_set_scale ( struct cx88_core core,
unsigned int  width,
unsigned int  height,
enum v4l2_field  field 
)

Definition at line 700 of file cx88-core.c.

int cx88_set_tvnorm ( struct cx88_core core,
v4l2_std_id  norm 
)

Definition at line 900 of file cx88-core.c.

void cx88_shutdown ( struct cx88_core core)

Definition at line 569 of file cx88-core.c.

void cx88_sram_channel_dump ( struct cx88_core core,
const struct sram_channel ch 
)

Definition at line 434 of file cx88-core.c.

int cx88_sram_channel_setup ( struct cx88_core core,
const struct sram_channel ch,
unsigned int  bpl,
u32  risc 
)

Definition at line 355 of file cx88-core.c.

int cx88_start_audio_dma ( struct cx88_core core)

Definition at line 808 of file cx88-core.c.

int cx88_stop_audio_dma ( struct cx88_core core)

Definition at line 834 of file cx88-core.c.

struct video_device* cx88_vdev_init ( struct cx88_core core,
struct pci_dev pci,
const struct video_device template_,
const char type 
)
read

Definition at line 1024 of file cx88-core.c.

void cx88_wakeup ( struct cx88_core core,
struct cx88_dmaqueue q,
u32  count 
)

Definition at line 536 of file cx88-core.c.

EXPORT_SYMBOL ( cx88_print_irqbits  )
EXPORT_SYMBOL ( cx88_core_irq  )
EXPORT_SYMBOL ( cx88_wakeup  )
EXPORT_SYMBOL ( cx88_reset  )
EXPORT_SYMBOL ( cx88_shutdown  )
EXPORT_SYMBOL ( cx88_risc_buffer  )
EXPORT_SYMBOL ( cx88_risc_databuffer  )
EXPORT_SYMBOL ( cx88_risc_stopper  )
EXPORT_SYMBOL ( cx88_free_buffer  )
EXPORT_SYMBOL ( cx88_sram_channels  )
EXPORT_SYMBOL ( cx88_sram_channel_setup  )
EXPORT_SYMBOL ( cx88_sram_channel_dump  )
EXPORT_SYMBOL ( cx88_set_tvnorm  )
EXPORT_SYMBOL ( cx88_set_scale  )
EXPORT_SYMBOL ( cx88_vdev_init  )
EXPORT_SYMBOL ( cx88_core_get  )
EXPORT_SYMBOL ( cx88_core_put  )
EXPORT_SYMBOL ( cx88_ir_start  )
EXPORT_SYMBOL ( cx88_ir_stop  )
MODULE_AUTHOR ( "Gerd Knorr <[email protected]> "  [SuSE Labs])
MODULE_DESCRIPTION ( "v4l2 driver module for cx2388x based TV cards )
MODULE_LICENSE ( "GPL"  )
module_param ( core_debug  ,
int  ,
0644   
)
module_param ( nicam  ,
int  ,
0644   
)
module_param ( nocomb  ,
int  ,
0644   
)
MODULE_PARM_DESC ( core_debug  ,
"enable debug messages "  [core] 
)
MODULE_PARM_DESC ( nicam  ,
"tv audio is nicam"   
)
MODULE_PARM_DESC ( nocomb  ,
"disable comb filter  
)

Variable Documentation

struct sram_channel cx88_sram_channels[]

Definition at line 256 of file cx88-core.c.