Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
cx25821-core.c File Reference
#include <linux/i2c.h>
#include <linux/slab.h>
#include "cx25821.h"
#include "cx25821-sram.h"
#include "cx25821-video.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

 MODULE_DESCRIPTION ("Driver for Athena cards")
 
 MODULE_AUTHOR ("Shu Lin - Hiep Huynh")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"enable debug messages")
 
 module_param_array (card, int, NULL, 0444)
 
 MODULE_PARM_DESC (card,"card type")
 
 DEFINE_MUTEX (cx25821_devlist_mutex)
 
 EXPORT_SYMBOL (cx25821_devlist_mutex)
 
 LIST_HEAD (cx25821_devlist)
 
 EXPORT_SYMBOL (cx25821_devlist)
 
 EXPORT_SYMBOL (cx25821_sram_channels)
 
int cx25821_sram_channel_setup (struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc)
 
 EXPORT_SYMBOL (cx25821_sram_channel_setup)
 
int cx25821_sram_channel_setup_audio (struct cx25821_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc)
 
 EXPORT_SYMBOL (cx25821_sram_channel_setup_audio)
 
void cx25821_sram_channel_dump (struct cx25821_dev *dev, struct sram_channel *ch)
 
 EXPORT_SYMBOL (cx25821_sram_channel_dump)
 
void cx25821_sram_channel_dump_audio (struct cx25821_dev *dev, struct sram_channel *ch)
 
 EXPORT_SYMBOL (cx25821_sram_channel_dump_audio)
 
void cx25821_set_pixel_format (struct cx25821_dev *dev, int channel_select, u32 format)
 
void cx25821_start_upstream_video_ch1 (struct cx25821_dev *dev, struct upstream_user_struct *up_data)
 
void cx25821_start_upstream_video_ch2 (struct cx25821_dev *dev, struct upstream_user_struct *up_data)
 
void cx25821_start_upstream_audio (struct cx25821_dev *dev, struct upstream_user_struct *up_data)
 
void cx25821_dev_unregister (struct cx25821_dev *dev)
 
 EXPORT_SYMBOL (cx25821_dev_unregister)
 
int cx25821_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 cx25821_risc_databuffer_audio (struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi)
 
 EXPORT_SYMBOL (cx25821_risc_databuffer_audio)
 
int cx25821_risc_stopper (struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value)
 
void cx25821_free_buffer (struct videobuf_queue *q, struct cx25821_buffer *buf)
 
void cx25821_print_irqbits (char *name, char *tag, char **strings, int len, u32 bits, u32 mask)
 
 EXPORT_SYMBOL (cx25821_print_irqbits)
 
struct cx25821_devcx25821_dev_get (struct pci_dev *pci)
 
 EXPORT_SYMBOL (cx25821_dev_get)
 
 MODULE_DEVICE_TABLE (pci, cx25821_pci_tbl)
 
 module_init (cx25821_init)
 
 module_exit (cx25821_fini)
 

Variables

struct sram_channel cx25821_sram_channels []
 
struct sram_channelchannel0 = &cx25821_sram_channels[SRAM_CH00]
 
struct sram_channelchannel1 = &cx25821_sram_channels[SRAM_CH01]
 
struct sram_channelchannel2 = &cx25821_sram_channels[SRAM_CH02]
 
struct sram_channelchannel3 = &cx25821_sram_channels[SRAM_CH03]
 
struct sram_channelchannel4 = &cx25821_sram_channels[SRAM_CH04]
 
struct sram_channelchannel5 = &cx25821_sram_channels[SRAM_CH05]
 
struct sram_channelchannel6 = &cx25821_sram_channels[SRAM_CH06]
 
struct sram_channelchannel7 = &cx25821_sram_channels[SRAM_CH07]
 
struct sram_channelchannel9 = &cx25821_sram_channels[SRAM_CH09]
 
struct sram_channelchannel10 = &cx25821_sram_channels[SRAM_CH10]
 
struct sram_channelchannel11 = &cx25821_sram_channels[SRAM_CH11]
 
struct cx25821_dmaqueue mpegq
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file cx25821-core.c.

Function Documentation

struct cx25821_dev* cx25821_dev_get ( struct pci_dev pci)
read

Definition at line 1357 of file cx25821-core.c.

void cx25821_dev_unregister ( struct cx25821_dev dev)

Definition at line 1038 of file cx25821-core.c.

void cx25821_free_buffer ( struct videobuf_queue q,
struct cx25821_buffer buf 
)

Definition at line 1293 of file cx25821-core.c.

void cx25821_print_irqbits ( char name,
char tag,
char **  strings,
int  len,
u32  bits,
u32  mask 
)

Definition at line 1335 of file cx25821-core.c.

int cx25821_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 1125 of file cx25821-core.c.

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

Definition at line 1235 of file cx25821-core.c.

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

Definition at line 1269 of file cx25821-core.c.

void cx25821_set_pixel_format ( struct cx25821_dev dev,
int  channel_select,
u32  format 
)

Definition at line 795 of file cx25821-core.c.

void cx25821_sram_channel_dump ( struct cx25821_dev dev,
struct sram_channel ch 
)

Definition at line 595 of file cx25821-core.c.

void cx25821_sram_channel_dump_audio ( struct cx25821_dev dev,
struct sram_channel ch 
)

Definition at line 657 of file cx25821-core.c.

int cx25821_sram_channel_setup ( struct cx25821_dev dev,
struct sram_channel ch,
unsigned int  bpl,
u32  risc 
)

Definition at line 459 of file cx25821-core.c.

int cx25821_sram_channel_setup_audio ( struct cx25821_dev dev,
struct sram_channel ch,
unsigned int  bpl,
u32  risc 
)

Definition at line 528 of file cx25821-core.c.

void cx25821_start_upstream_audio ( struct cx25821_dev dev,
struct upstream_user_struct up_data 
)

Definition at line 1032 of file cx25821-core.c.

void cx25821_start_upstream_video_ch1 ( struct cx25821_dev dev,
struct upstream_user_struct up_data 
)

Definition at line 1008 of file cx25821-core.c.

void cx25821_start_upstream_video_ch2 ( struct cx25821_dev dev,
struct upstream_user_struct up_data 
)

Definition at line 1020 of file cx25821-core.c.

DEFINE_MUTEX ( cx25821_devlist_mutex  )
EXPORT_SYMBOL ( cx25821_devlist_mutex  )
EXPORT_SYMBOL ( cx25821_devlist  )
EXPORT_SYMBOL ( cx25821_sram_channels  )
EXPORT_SYMBOL ( cx25821_sram_channel_setup  )
EXPORT_SYMBOL ( cx25821_sram_channel_setup_audio  )
EXPORT_SYMBOL ( cx25821_sram_channel_dump  )
EXPORT_SYMBOL ( cx25821_sram_channel_dump_audio  )
EXPORT_SYMBOL ( cx25821_dev_unregister  )
EXPORT_SYMBOL ( cx25821_risc_databuffer_audio  )
EXPORT_SYMBOL ( cx25821_print_irqbits  )
EXPORT_SYMBOL ( cx25821_dev_get  )
LIST_HEAD ( cx25821_devlist  )
MODULE_AUTHOR ( "Shu Lin - Hiep Huynh"  )
MODULE_DESCRIPTION ( "Driver for Athena cards )
MODULE_DEVICE_TABLE ( pci  ,
cx25821_pci_tbl   
)
module_exit ( cx25821_fini  )
module_init ( cx25821_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param_array ( card  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( debug  ,
"enable debug messages"   
)
MODULE_PARM_DESC ( card  ,
"card type  
)

Variable Documentation

Definition at line 320 of file cx25821-core.c.

Definition at line 321 of file cx25821-core.c.

Definition at line 329 of file cx25821-core.c.

Definition at line 330 of file cx25821-core.c.

Definition at line 322 of file cx25821-core.c.

Definition at line 323 of file cx25821-core.c.

Definition at line 324 of file cx25821-core.c.

Definition at line 325 of file cx25821-core.c.

Definition at line 326 of file cx25821-core.c.

Definition at line 327 of file cx25821-core.c.

Definition at line 328 of file cx25821-core.c.

struct sram_channel cx25821_sram_channels[]

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

Definition at line 332 of file cx25821-core.c.