Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cx23885.h File Reference
#include <linux/pci.h>
#include <linux/i2c.h>
#include <linux/kdev_t.h>
#include <linux/slab.h>
#include <media/v4l2-device.h>
#include <media/tuner.h>
#include <media/tveeprom.h>
#include <media/videobuf-dma-sg.h>
#include <media/videobuf-dvb.h>
#include <media/rc-core.h>
#include "btcx-risc.h"
#include "cx23885-reg.h"
#include "media/cx2341x.h"
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  cx23885_fmt
 
struct  cx23885_ctrl
 
struct  cx23885_tvnorm
 
struct  cx23885_fh
 
struct  cx23885_buffer
 
struct  cx23885_input
 
struct  cx23885_board
 
struct  cx23885_subid
 
struct  cx23885_i2c
 
struct  cx23885_dmaqueue
 
struct  cx23885_tsport
 
struct  cx23885_kernel_ir
 
struct  cx23885_audio_buffer
 
struct  cx23885_audio_dev
 
struct  cx23885_dev
 
struct  sram_channel
 

Macros

#define CX23885_VERSION   "0.0.3"
 
#define UNSET   (-1U)
 
#define CX23885_MAXBOARDS   8
 
#define MAX_CX23885_INPUT   8
 
#define INPUT(nr)   (&cx23885_boards[dev->board].input[nr])
 
#define RESOURCE_OVERLAY   1
 
#define RESOURCE_VIDEO   2
 
#define RESOURCE_VBI   4
 
#define BUFFER_TIMEOUT   (HZ) /* 0.5 seconds */
 
#define CX23885_BOARD_NOAUTO   UNSET
 
#define CX23885_BOARD_UNKNOWN   0
 
#define CX23885_BOARD_HAUPPAUGE_HVR1800lp   1
 
#define CX23885_BOARD_HAUPPAUGE_HVR1800   2
 
#define CX23885_BOARD_HAUPPAUGE_HVR1250   3
 
#define CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP   4
 
#define CX23885_BOARD_HAUPPAUGE_HVR1500Q   5
 
#define CX23885_BOARD_HAUPPAUGE_HVR1500   6
 
#define CX23885_BOARD_HAUPPAUGE_HVR1200   7
 
#define CX23885_BOARD_HAUPPAUGE_HVR1700   8
 
#define CX23885_BOARD_HAUPPAUGE_HVR1400   9
 
#define CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP   10
 
#define CX23885_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL_EXP   11
 
#define CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H   12
 
#define CX23885_BOARD_COMPRO_VIDEOMATE_E650F   13
 
#define CX23885_BOARD_TBS_6920   14
 
#define CX23885_BOARD_TEVII_S470   15
 
#define CX23885_BOARD_DVBWORLD_2005   16
 
#define CX23885_BOARD_NETUP_DUAL_DVBS2_CI   17
 
#define CX23885_BOARD_HAUPPAUGE_HVR1270   18
 
#define CX23885_BOARD_HAUPPAUGE_HVR1275   19
 
#define CX23885_BOARD_HAUPPAUGE_HVR1255   20
 
#define CX23885_BOARD_HAUPPAUGE_HVR1210   21
 
#define CX23885_BOARD_MYGICA_X8506   22
 
#define CX23885_BOARD_MAGICPRO_PROHDTVE2   23
 
#define CX23885_BOARD_HAUPPAUGE_HVR1850   24
 
#define CX23885_BOARD_COMPRO_VIDEOMATE_E800   25
 
#define CX23885_BOARD_HAUPPAUGE_HVR1290   26
 
#define CX23885_BOARD_MYGICA_X8558PRO   27
 
#define CX23885_BOARD_LEADTEK_WINFAST_PXTV1200   28
 
#define CX23885_BOARD_GOTVIEW_X5_3D_HYBRID   29
 
#define CX23885_BOARD_NETUP_DUAL_DVB_T_C_CI_RF   30
 
#define CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H_XC4000   31
 
#define CX23885_BOARD_MPX885   32
 
#define CX23885_BOARD_MYGICA_X8507   33
 
#define CX23885_BOARD_TERRATEC_CINERGY_T_PCIE_DUAL   34
 
#define CX23885_BOARD_TEVII_S471   35
 
#define CX23885_BOARD_HAUPPAUGE_HVR1255_22111   36
 
#define CX23885_BOARD_PROF_8000   37
 
#define GPIO_0   0x00000001
 
#define GPIO_1   0x00000002
 
#define GPIO_2   0x00000004
 
#define GPIO_3   0x00000008
 
#define GPIO_4   0x00000010
 
#define GPIO_5   0x00000020
 
#define GPIO_6   0x00000040
 
#define GPIO_7   0x00000080
 
#define GPIO_8   0x00000100
 
#define GPIO_9   0x00000200
 
#define GPIO_10   0x00000400
 
#define GPIO_11   0x00000800
 
#define GPIO_12   0x00001000
 
#define GPIO_13   0x00002000
 
#define GPIO_14   0x00004000
 
#define GPIO_15   0x00008000
 
#define CX23885_NORMS
 
#define call_all(dev, o, f, args...)   v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)
 
#define CX23885_HW_888_IR   (1 << 0)
 
#define CX23885_HW_AV_CORE   (1 << 1)
 
#define call_hw(dev, grpid, o, f, args...)   v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)
 
#define SRAM_CH01   0 /* Video A */
 
#define SRAM_CH02   1 /* VBI A */
 
#define SRAM_CH03   2 /* Video B */
 
#define SRAM_CH04   3 /* Transport via B */
 
#define SRAM_CH05   4 /* VBI B */
 
#define SRAM_CH06   5 /* Video C */
 
#define SRAM_CH07   6 /* Transport via C */
 
#define SRAM_CH08   7 /* Audio Internal A */
 
#define SRAM_CH09   8 /* Audio Internal B */
 
#define SRAM_CH10   9 /* Audio External */
 
#define SRAM_CH11   10 /* COMB_3D_N */
 
#define SRAM_CH12   11 /* Comb 3D N1 */
 
#define SRAM_CH13   12 /* Comb 3D N2 */
 
#define SRAM_CH14   13 /* MOE Vid */
 
#define SRAM_CH15   14 /* MOE RSLT */
 
#define cx_read(reg)   readl(dev->lmmio + ((reg)>>2))
 
#define cx_write(reg, value)   writel((value), dev->lmmio + ((reg)>>2))
 
#define cx_andor(reg, mask, value)
 
#define cx_set(reg, bit)   cx_andor((reg), (bit), (bit))
 
#define cx_clear(reg, bit)   cx_andor((reg), (bit), 0)
 

Enumerations

enum  cx23885_itype {
  CX23885_VMUX_COMPOSITE1 = 1, CX23885_VMUX_COMPOSITE2, CX23885_VMUX_COMPOSITE3, CX23885_VMUX_COMPOSITE4,
  CX23885_VMUX_SVIDEO, CX23885_VMUX_COMPONENT, CX23885_VMUX_TELEVISION, CX23885_VMUX_CABLE,
  CX23885_VMUX_DVB, CX23885_VMUX_DEBUG, CX23885_RADIO
}
 
enum  cx23885_src_sel_type { CX23885_SRC_SEL_EXT_656_VIDEO = 0, CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO }
 
enum  port_t {
  CX23885_MPEG_UNDEFINED = 0, CX23885_MPEG_DVB, CX23885_ANALOG_VIDEO, CX23885_MPEG_ENCODER,
  SAA7164_MPEG_UNDEFINED = 0, SAA7164_MPEG_DVB, SAA7164_MPEG_ENCODER, SAA7164_MPEG_VBI
}
 

Functions

struct v4l2_subdevcx23885_find_hw (struct cx23885_dev *dev, u32 hw)
 
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)
 
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_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_cancel_buffers (struct cx23885_tsport *port)
 
int cx23885_restart_queue (struct cx23885_tsport *port, struct cx23885_dmaqueue *q)
 
void cx23885_wakeup (struct cx23885_tsport *port, struct cx23885_dmaqueue *q, u32 count)
 
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)
 
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)
 
int cx23885_tuner_callback (void *priv, int component, int command, int arg)
 
void cx23885_card_list (struct cx23885_dev *dev)
 
int cx23885_ir_init (struct cx23885_dev *dev)
 
void cx23885_ir_pci_int_enable (struct cx23885_dev *dev)
 
void cx23885_ir_fini (struct cx23885_dev *dev)
 
void cx23885_gpio_setup (struct cx23885_dev *dev)
 
void cx23885_card_setup (struct cx23885_dev *dev)
 
void cx23885_card_setup_pre_i2c (struct cx23885_dev *dev)
 
int cx23885_dvb_register (struct cx23885_tsport *port)
 
int cx23885_dvb_unregister (struct cx23885_tsport *port)
 
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_free_buffer (struct videobuf_queue *q, struct cx23885_buffer *buf)
 
int cx23885_video_register (struct cx23885_dev *dev)
 
void cx23885_video_unregister (struct cx23885_dev *dev)
 
int cx23885_video_irq (struct cx23885_dev *dev, u32 status)
 
void cx23885_video_wakeup (struct cx23885_dev *dev, struct cx23885_dmaqueue *q, u32 count)
 
int cx23885_enum_input (struct cx23885_dev *dev, struct v4l2_input *i)
 
int cx23885_set_input (struct file *file, void *priv, unsigned int i)
 
int cx23885_get_input (struct file *file, void *priv, unsigned int *i)
 
int cx23885_set_frequency (struct file *file, void *priv, struct v4l2_frequency *f)
 
int cx23885_set_control (struct cx23885_dev *dev, struct v4l2_control *ctl)
 
int cx23885_get_control (struct cx23885_dev *dev, struct v4l2_control *ctl)
 
int cx23885_set_tvnorm (struct cx23885_dev *dev, v4l2_std_id norm)
 
int cx23885_vbi_fmt (struct file *file, void *priv, struct v4l2_format *f)
 
void cx23885_vbi_timeout (unsigned long data)
 
int cx23885_restart_vbi_queue (struct cx23885_dev *dev, struct cx23885_dmaqueue *q)
 
int cx23885_vbi_irq (struct cx23885_dev *dev, u32 status)
 
int cx23885_i2c_register (struct cx23885_i2c *bus)
 
int cx23885_i2c_unregister (struct cx23885_i2c *bus)
 
void cx23885_av_clk (struct cx23885_dev *dev, int enable)
 
int cx23885_417_register (struct cx23885_dev *dev)
 
void cx23885_417_unregister (struct cx23885_dev *dev)
 
int cx23885_irq_417 (struct cx23885_dev *dev, u32 status)
 
void cx23885_417_check_encoder (struct cx23885_dev *dev)
 
void cx23885_mc417_init (struct cx23885_dev *dev)
 
int mc417_memory_read (struct cx23885_dev *dev, u32 address, u32 *value)
 
int mc417_memory_write (struct cx23885_dev *dev, u32 address, u32 value)
 
int mc417_register_read (struct cx23885_dev *dev, u16 address, u32 *value)
 
int mc417_register_write (struct cx23885_dev *dev, u16 address, u32 value)
 
void mc417_gpio_set (struct cx23885_dev *dev, u32 mask)
 
void mc417_gpio_clear (struct cx23885_dev *dev, u32 mask)
 
void mc417_gpio_enable (struct cx23885_dev *dev, u32 mask, int asoutput)
 
struct cx23885_audio_devcx23885_audio_register (struct cx23885_dev *dev)
 
void cx23885_audio_unregister (struct cx23885_dev *dev)
 
int cx23885_audio_irq (struct cx23885_dev *dev, u32 status, u32 mask)
 
int cx23885_risc_databuffer (struct pci_dev *pci, struct btcx_riscmem *risc, struct scatterlist *sglist, unsigned int bpl, unsigned int lines, unsigned int lpi)
 

Variables

struct cx23885_board cx23885_boards []
 
const unsigned int cx23885_bcount
 
struct cx23885_subid cx23885_subids []
 
const unsigned int cx23885_idcount
 
struct videobuf_queue_ops cx23885_vbi_qops
 

Macro Definition Documentation

#define BUFFER_TIMEOUT   (HZ) /* 0.5 seconds */

Definition at line 53 of file cx23885.h.

#define call_all (   dev,
  o,
  f,
  args... 
)    v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args)

Definition at line 452 of file cx23885.h.

#define call_hw (   dev,
  grpid,
  o,
  f,
  args... 
)    v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args)

Definition at line 458 of file cx23885.h.

#define CX23885_BOARD_COMPRO_VIDEOMATE_E650F   13

Definition at line 69 of file cx23885.h.

#define CX23885_BOARD_COMPRO_VIDEOMATE_E800   25

Definition at line 81 of file cx23885.h.

#define CX23885_BOARD_DVBWORLD_2005   16

Definition at line 72 of file cx23885.h.

#define CX23885_BOARD_DVICO_FUSIONHDTV_5_EXP   4

Definition at line 60 of file cx23885.h.

#define CX23885_BOARD_DVICO_FUSIONHDTV_7_DUAL_EXP   10

Definition at line 66 of file cx23885.h.

#define CX23885_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL_EXP   11

Definition at line 67 of file cx23885.h.

#define CX23885_BOARD_GOTVIEW_X5_3D_HYBRID   29

Definition at line 85 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1200   7

Definition at line 63 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1210   21

Definition at line 77 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1250   3

Definition at line 59 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1255   20

Definition at line 76 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1255_22111   36

Definition at line 92 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1270   18

Definition at line 74 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1275   19

Definition at line 75 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1290   26

Definition at line 82 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1400   9

Definition at line 65 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1500   6

Definition at line 62 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1500Q   5

Definition at line 61 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1700   8

Definition at line 64 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1800   2

Definition at line 58 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1800lp   1

Definition at line 57 of file cx23885.h.

#define CX23885_BOARD_HAUPPAUGE_HVR1850   24

Definition at line 80 of file cx23885.h.

#define CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H   12

Definition at line 68 of file cx23885.h.

#define CX23885_BOARD_LEADTEK_WINFAST_PXDVR3200_H_XC4000   31

Definition at line 87 of file cx23885.h.

#define CX23885_BOARD_LEADTEK_WINFAST_PXTV1200   28

Definition at line 84 of file cx23885.h.

#define CX23885_BOARD_MAGICPRO_PROHDTVE2   23

Definition at line 79 of file cx23885.h.

#define CX23885_BOARD_MPX885   32

Definition at line 88 of file cx23885.h.

#define CX23885_BOARD_MYGICA_X8506   22

Definition at line 78 of file cx23885.h.

#define CX23885_BOARD_MYGICA_X8507   33

Definition at line 89 of file cx23885.h.

#define CX23885_BOARD_MYGICA_X8558PRO   27

Definition at line 83 of file cx23885.h.

#define CX23885_BOARD_NETUP_DUAL_DVB_T_C_CI_RF   30

Definition at line 86 of file cx23885.h.

#define CX23885_BOARD_NETUP_DUAL_DVBS2_CI   17

Definition at line 73 of file cx23885.h.

#define CX23885_BOARD_NOAUTO   UNSET

Definition at line 55 of file cx23885.h.

#define CX23885_BOARD_PROF_8000   37

Definition at line 93 of file cx23885.h.

#define CX23885_BOARD_TBS_6920   14

Definition at line 70 of file cx23885.h.

#define CX23885_BOARD_TERRATEC_CINERGY_T_PCIE_DUAL   34

Definition at line 90 of file cx23885.h.

#define CX23885_BOARD_TEVII_S470   15

Definition at line 71 of file cx23885.h.

#define CX23885_BOARD_TEVII_S471   35

Definition at line 91 of file cx23885.h.

#define CX23885_BOARD_UNKNOWN   0

Definition at line 56 of file cx23885.h.

#define CX23885_HW_888_IR   (1 << 0)

Definition at line 455 of file cx23885.h.

#define CX23885_HW_AV_CORE   (1 << 1)

Definition at line 456 of file cx23885.h.

#define CX23885_MAXBOARDS   8

Definition at line 44 of file cx23885.h.

#define CX23885_NORMS
Value:
(\
V4L2_STD_NTSC_M | V4L2_STD_NTSC_M_JP | V4L2_STD_NTSC_443 | \
V4L2_STD_PAL_BG | V4L2_STD_PAL_DK | V4L2_STD_PAL_I | \
V4L2_STD_PAL_M | V4L2_STD_PAL_N | V4L2_STD_PAL_Nc | \
V4L2_STD_PAL_60 | V4L2_STD_SECAM_L | V4L2_STD_SECAM_DK)

Definition at line 113 of file cx23885.h.

#define CX23885_VERSION   "0.0.3"

Definition at line 40 of file cx23885.h.

#define cx_andor (   reg,
  mask,
  value 
)
Value:
writel((readl(dev->lmmio+((reg)>>2)) & ~(mask)) |\
((value) & (mask)), dev->lmmio+((reg)>>2))

Definition at line 498 of file cx23885.h.

#define cx_clear (   reg,
  bit 
)    cx_andor((reg), (bit), 0)

Definition at line 503 of file cx23885.h.

#define cx_read (   reg)    readl(dev->lmmio + ((reg)>>2))

Definition at line 495 of file cx23885.h.

#define cx_set (   reg,
  bit 
)    cx_andor((reg), (bit), (bit))

Definition at line 502 of file cx23885.h.

#define cx_write (   reg,
  value 
)    writel((value), dev->lmmio + ((reg)>>2))

Definition at line 496 of file cx23885.h.

#define GPIO_0   0x00000001

Definition at line 95 of file cx23885.h.

#define GPIO_1   0x00000002

Definition at line 96 of file cx23885.h.

#define GPIO_10   0x00000400

Definition at line 105 of file cx23885.h.

#define GPIO_11   0x00000800

Definition at line 106 of file cx23885.h.

#define GPIO_12   0x00001000

Definition at line 107 of file cx23885.h.

#define GPIO_13   0x00002000

Definition at line 108 of file cx23885.h.

#define GPIO_14   0x00004000

Definition at line 109 of file cx23885.h.

#define GPIO_15   0x00008000

Definition at line 110 of file cx23885.h.

#define GPIO_2   0x00000004

Definition at line 97 of file cx23885.h.

#define GPIO_3   0x00000008

Definition at line 98 of file cx23885.h.

#define GPIO_4   0x00000010

Definition at line 99 of file cx23885.h.

#define GPIO_5   0x00000020

Definition at line 100 of file cx23885.h.

#define GPIO_6   0x00000040

Definition at line 101 of file cx23885.h.

#define GPIO_7   0x00000080

Definition at line 102 of file cx23885.h.

#define GPIO_8   0x00000100

Definition at line 103 of file cx23885.h.

#define GPIO_9   0x00000200

Definition at line 104 of file cx23885.h.

#define INPUT (   nr)    (&cx23885_boards[dev->board].input[nr])

Definition at line 48 of file cx23885.h.

#define MAX_CX23885_INPUT   8

Definition at line 47 of file cx23885.h.

#define RESOURCE_OVERLAY   1

Definition at line 49 of file cx23885.h.

#define RESOURCE_VBI   4

Definition at line 51 of file cx23885.h.

#define RESOURCE_VIDEO   2

Definition at line 50 of file cx23885.h.

#define SRAM_CH01   0 /* Video A */

Definition at line 463 of file cx23885.h.

#define SRAM_CH02   1 /* VBI A */

Definition at line 464 of file cx23885.h.

#define SRAM_CH03   2 /* Video B */

Definition at line 465 of file cx23885.h.

#define SRAM_CH04   3 /* Transport via B */

Definition at line 466 of file cx23885.h.

#define SRAM_CH05   4 /* VBI B */

Definition at line 467 of file cx23885.h.

#define SRAM_CH06   5 /* Video C */

Definition at line 468 of file cx23885.h.

#define SRAM_CH07   6 /* Transport via C */

Definition at line 469 of file cx23885.h.

#define SRAM_CH08   7 /* Audio Internal A */

Definition at line 470 of file cx23885.h.

#define SRAM_CH09   8 /* Audio Internal B */

Definition at line 471 of file cx23885.h.

#define SRAM_CH10   9 /* Audio External */

Definition at line 472 of file cx23885.h.

#define SRAM_CH11   10 /* COMB_3D_N */

Definition at line 473 of file cx23885.h.

#define SRAM_CH12   11 /* Comb 3D N1 */

Definition at line 474 of file cx23885.h.

#define SRAM_CH13   12 /* Comb 3D N2 */

Definition at line 475 of file cx23885.h.

#define SRAM_CH14   13 /* MOE Vid */

Definition at line 476 of file cx23885.h.

#define SRAM_CH15   14 /* MOE RSLT */

Definition at line 477 of file cx23885.h.

#define UNSET   (-1U)

Definition at line 42 of file cx23885.h.

Enumeration Type Documentation

Enumerator:
CX23885_VMUX_COMPOSITE1 
CX23885_VMUX_COMPOSITE2 
CX23885_VMUX_COMPOSITE3 
CX23885_VMUX_COMPOSITE4 
CX23885_VMUX_SVIDEO 
CX23885_VMUX_COMPONENT 
CX23885_VMUX_TELEVISION 
CX23885_VMUX_CABLE 
CX23885_VMUX_DVB 
CX23885_VMUX_DEBUG 
CX23885_RADIO 

Definition at line 166 of file cx23885.h.

Enumerator:
CX23885_SRC_SEL_EXT_656_VIDEO 
CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO 

Definition at line 180 of file cx23885.h.

enum port_t
Enumerator:
CX23885_MPEG_UNDEFINED 
CX23885_MPEG_DVB 
CX23885_ANALOG_VIDEO 
CX23885_MPEG_ENCODER 
SAA7164_MPEG_UNDEFINED 
SAA7164_MPEG_DVB 
SAA7164_MPEG_ENCODER 
SAA7164_MPEG_VBI 

Definition at line 204 of file cx23885.h.

Function Documentation

void cx23885_417_check_encoder ( struct cx23885_dev dev)

Definition at line 1013 of file cx23885-417.c.

int cx23885_417_register ( struct cx23885_dev dev)

Definition at line 1743 of file cx23885-417.c.

void cx23885_417_unregister ( struct cx23885_dev dev)

Definition at line 1708 of file cx23885-417.c.

int cx23885_audio_irq ( struct cx23885_dev dev,
u32  status,
u32  mask 
)

Definition at line 165 of file cx23885-alsa.c.

struct cx23885_audio_dev* cx23885_audio_register ( struct cx23885_dev dev)
read

Definition at line 475 of file cx23885-alsa.c.

void cx23885_audio_unregister ( struct cx23885_dev dev)

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

void cx23885_av_clk ( struct cx23885_dev dev,
int  enable 
)

Definition at line 367 of file cx23885-i2c.c.

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.

void cx23885_card_list ( struct cx23885_dev dev)

Definition at line 795 of file cx23885-cards.c.

void cx23885_card_setup ( struct cx23885_dev dev)

Definition at line 1473 of file cx23885-cards.c.

void cx23885_card_setup_pre_i2c ( struct cx23885_dev dev)
int cx23885_dvb_register ( struct cx23885_tsport port)

Definition at line 1329 of file cx23885-dvb.c.

int cx23885_dvb_unregister ( struct cx23885_tsport port)

Definition at line 1384 of file cx23885-dvb.c.

int cx23885_enum_input ( struct cx23885_dev dev,
struct v4l2_input i 
)

Definition at line 1273 of file cx23885-video.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.

int cx23885_get_control ( struct cx23885_dev dev,
struct v4l2_control ctl 
)

Definition at line 1024 of file cx23885-video.c.

int cx23885_get_input ( struct file file,
void priv,
unsigned int i 
)

Definition at line 1330 of file cx23885-video.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.

void cx23885_gpio_setup ( struct cx23885_dev dev)

Definition at line 1027 of file cx23885-cards.c.

int cx23885_i2c_register ( struct cx23885_i2c bus)

Definition at line 313 of file cx23885-i2c.c.

int cx23885_i2c_unregister ( struct cx23885_i2c bus)

Definition at line 361 of file cx23885-i2c.c.

void cx23885_ir_fini ( struct cx23885_dev dev)

Definition at line 1410 of file cx23885-cards.c.

int cx23885_ir_init ( struct cx23885_dev dev)

Definition at line 1307 of file cx23885-cards.c.

void cx23885_ir_pci_int_enable ( struct cx23885_dev dev)

Definition at line 1455 of file cx23885-cards.c.

int cx23885_irq_417 ( struct cx23885_dev dev,
u32  status 
)

Definition at line 1679 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.

void cx23885_mc417_init ( struct cx23885_dev dev)

Definition at line 286 of file cx23885-417.c.

int cx23885_restart_queue ( struct cx23885_tsport port,
struct cx23885_dmaqueue q 
)

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

int cx23885_restart_vbi_queue ( struct cx23885_dev dev,
struct cx23885_dmaqueue q 
)

Definition at line 137 of file cx23885-vbi.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.

int cx23885_set_control ( struct cx23885_dev dev,
struct v4l2_control ctl 
)

Definition at line 1032 of file cx23885-video.c.

int cx23885_set_frequency ( struct file file,
void priv,
struct v4l2_frequency f 
)

Definition at line 1609 of file cx23885-video.c.

int cx23885_set_input ( struct file file,
void priv,
unsigned int  i 
)

Definition at line 1344 of file cx23885-video.c.

int cx23885_set_tvnorm ( struct cx23885_dev dev,
v4l2_std_id  norm 
)

Definition at line 319 of file cx23885-video.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.

int cx23885_tuner_callback ( void priv,
int  component,
int  command,
int  arg 
)

Definition at line 972 of file cx23885-cards.c.

int cx23885_vbi_fmt ( struct file file,
void priv,
struct v4l2_format f 
)

Definition at line 50 of file cx23885-vbi.c.

int cx23885_vbi_irq ( struct cx23885_dev dev,
u32  status 
)

Definition at line 83 of file cx23885-vbi.c.

void cx23885_vbi_timeout ( unsigned long  data)

Definition at line 158 of file cx23885-vbi.c.

int cx23885_video_irq ( struct cx23885_dev dev,
u32  status 
)

Definition at line 1659 of file cx23885-video.c.

int cx23885_video_register ( struct cx23885_dev dev)

Definition at line 1813 of file cx23885-video.c.

void cx23885_video_unregister ( struct cx23885_dev dev)

Definition at line 1786 of file cx23885-video.c.

void cx23885_video_wakeup ( struct cx23885_dev dev,
struct cx23885_dmaqueue q,
u32  count 
)

Definition at line 285 of file cx23885-video.c.

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

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

void mc417_gpio_clear ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 644 of file cx23885-417.c.

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

Definition at line 654 of file cx23885-417.c.

void mc417_gpio_set ( struct cx23885_dev dev,
u32  mask 
)

Definition at line 634 of file cx23885-417.c.

int mc417_memory_read ( struct cx23885_dev dev,
u32  address,
u32 value 
)

Definition at line 544 of file cx23885-417.c.

int mc417_memory_write ( struct cx23885_dev dev,
u32  address,
u32  value 
)

Definition at line 480 of file cx23885-417.c.

int mc417_register_read ( struct cx23885_dev dev,
u16  address,
u32 value 
)

Definition at line 386 of file cx23885-417.c.

int mc417_register_write ( struct cx23885_dev dev,
u16  address,
u32  value 
)

Definition at line 322 of file cx23885-417.c.

Variable Documentation

const unsigned int cx23885_bcount

Definition at line 577 of file cx23885-cards.c.

struct cx23885_board cx23885_boards[]

Definition at line 57 of file cx23885-cards.c.

const unsigned int cx23885_idcount

Definition at line 793 of file cx23885-cards.c.

struct cx23885_subid cx23885_subids[]

Definition at line 582 of file cx23885-cards.c.

struct videobuf_queue_ops cx23885_vbi_qops

Definition at line 283 of file cx23885-vbi.c.