Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx23885-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 <linux/firmware.h>
#include "cx23885.h"
#include "cimax2.h"
#include "altera-ci.h"
#include "cx23888-ir.h"
#include "cx23885-ir.h"
#include "cx23885-av.h"
#include "cx23885-input.h"

Go to the source code of this file.

Macros

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

Functions

 MODULE_DESCRIPTION ("Driver for cx23885 based TV cards")
 
 MODULE_AUTHOR ("Steven Toth <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (CX23885_VERSION)
 
 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")
 
void cx23885_irq_add (struct cx23885_dev *dev, u32 mask)
 
void cx23885_irq_add_enable (struct cx23885_dev *dev, u32 mask)
 
void cx23885_irq_enable (struct cx23885_dev *dev, u32 mask)
 
void cx23885_irq_disable (struct cx23885_dev *dev, u32 mask)
 
void cx23885_irq_remove (struct cx23885_dev *dev, u32 mask)
 
void cx23885_wakeup (struct cx23885_tsport *port, struct cx23885_dmaqueue *q, u32 count)
 
int cx23885_sram_channel_setup (struct cx23885_dev *dev, struct sram_channel *ch, unsigned int bpl, u32 risc)
 
void cx23885_sram_channel_dump (struct cx23885_dev *dev, struct sram_channel *ch)
 
int cx23885_risc_stopper (struct pci_dev *pci, struct btcx_riscmem *risc, u32 reg, u32 mask, u32 value)
 
struct v4l2_subdevcx23885_find_hw (struct cx23885_dev *dev, u32 hw)
 
int cx23885_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 cx23885_risc_databuffer (struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi)
 
int cx23885_risc_vbibuffer (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)
 
void cx23885_free_buffer (struct videobuf_queue *q, struct cx23885_buffer *buf)
 
int cx23885_restart_queue (struct cx23885_tsport *port, struct cx23885_dmaqueue *q)
 
int cx23885_buf_prepare (struct videobuf_queue *q, struct cx23885_tsport *port, struct cx23885_buffer *buf, enum v4l2_field field)
 
void cx23885_buf_queue (struct cx23885_tsport *port, struct cx23885_buffer *buf)
 
void cx23885_cancel_buffers (struct cx23885_tsport *port)
 
int cx23885_irq_417 (struct cx23885_dev *dev, u32 status)
 
void cx23885_gpio_set (struct cx23885_dev *dev, u32 mask)
 
void cx23885_gpio_clear (struct cx23885_dev *dev, u32 mask)
 
u32 cx23885_gpio_get (struct cx23885_dev *dev, u32 mask)
 
void cx23885_gpio_enable (struct cx23885_dev *dev, u32 mask, int asoutput)
 
 MODULE_DEVICE_TABLE (pci, cx23885_pci_tbl)
 
 module_init (cx23885_init)
 
 module_exit (cx23885_fini)
 

Macro Definition Documentation

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
do { if (debug >= level)\
printk(KERN_DEBUG "%s: " fmt, dev->name, ## arg);\
} while (0)

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

#define NO_SYNC_LINE   (-1U)

Definition at line 62 of file cx23885-core.c.

Function Documentation

int cx23885_buf_prepare ( struct videobuf_queue q,
struct cx23885_tsport port,
struct cx23885_buffer buf,
enum v4l2_field  field 
)

Definition at line 1560 of file cx23885-core.c.

void cx23885_buf_queue ( struct cx23885_tsport port,
struct cx23885_buffer buf 
)

Definition at line 1592 of file cx23885-core.c.

void cx23885_cancel_buffers ( struct cx23885_tsport port)

Definition at line 1653 of file cx23885-core.c.

struct v4l2_subdev* cx23885_find_hw ( struct cx23885_dev dev,
u32  hw 
)
read

Definition at line 839 of file cx23885-core.c.

void cx23885_free_buffer ( struct videobuf_queue q,
struct cx23885_buffer buf 
)

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

void cx23885_gpio_clear ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 2029 of file cx23885-core.c.

void cx23885_gpio_enable ( struct cx23885_dev dev,
u32  mask,
int  asoutput 
)

Definition at line 2067 of file cx23885-core.c.

u32 cx23885_gpio_get ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 2047 of file cx23885-core.c.

void cx23885_gpio_set ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 2011 of file cx23885-core.c.

int cx23885_irq_417 ( struct cx23885_dev dev,
u32  status 
)

Definition at line 1679 of file cx23885-core.c.

void cx23885_irq_add ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 306 of file cx23885-core.c.

void cx23885_irq_add_enable ( struct cx23885_dev dev,
u32  mask 
)

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

void cx23885_irq_disable ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 345 of file cx23885-core.c.

void cx23885_irq_enable ( struct cx23885_dev dev,
u32  mask 
)

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

void cx23885_irq_remove ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 360 of file cx23885-core.c.

int cx23885_restart_queue ( struct cx23885_tsport port,
struct cx23885_dmaqueue q 
)

Definition at line 1500 of file cx23885-core.c.

int cx23885_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 1149 of file cx23885-core.c.

int cx23885_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 1191 of file cx23885-core.c.

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

Definition at line 1272 of file cx23885-core.c.

int cx23885_risc_vbibuffer ( 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 1224 of file cx23885-core.c.

void cx23885_sram_channel_dump ( struct cx23885_dev dev,
struct sram_channel ch 
)

Definition at line 530 of file cx23885-core.c.

int cx23885_sram_channel_setup ( struct cx23885_dev dev,
struct sram_channel ch,
unsigned int  bpl,
u32  risc 
)

Definition at line 458 of file cx23885-core.c.

void cx23885_wakeup ( struct cx23885_tsport port,
struct cx23885_dmaqueue q,
u32  count 
)

Definition at line 423 of file cx23885-core.c.

MODULE_AUTHOR ( "Steven Toth <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for cx23885 based TV cards )
MODULE_DEVICE_TABLE ( pci  ,
cx23885_pci_tbl   
)
module_exit ( cx23885_fini  )
module_init ( cx23885_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  
)
MODULE_VERSION ( CX23885_VERSION  )