Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bt878.h File Reference
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include "bt848.h"
#include "bttv.h"

Go to the source code of this file.

Data Structures

struct  bt878
 

Macros

#define BT878_VERSION_CODE   0x000000
 
#define BT878_AINT_STAT   0x100
 
#define BT878_ARISCS   (0xf<<28)
 
#define BT878_ARISC_EN   (1<<27)
 
#define BT878_ASCERR   (1<<19)
 
#define BT878_AOCERR   (1<<18)
 
#define BT878_APABORT   (1<<17)
 
#define BT878_ARIPERR   (1<<16)
 
#define BT878_APPERR   (1<<15)
 
#define BT878_AFDSR   (1<<14)
 
#define BT878_AFTRGT   (1<<13)
 
#define BT878_AFBUS   (1<<12)
 
#define BT878_ARISCI   (1<<11)
 
#define BT878_AOFLOW   (1<<3)
 
#define BT878_AINT_MASK   0x104
 
#define BT878_AGPIO_DMA_CTL   0x10c
 
#define BT878_A_GAIN   (0xf<<28)
 
#define BT878_A_G2X   (1<<27)
 
#define BT878_A_PWRDN   (1<<26)
 
#define BT878_A_SEL   (3<<24)
 
#define BT878_DA_SCE   (1<<23)
 
#define BT878_DA_LRI   (1<<22)
 
#define BT878_DA_MLB   (1<<21)
 
#define BT878_DA_LRD   (0x1f<<16)
 
#define BT878_DA_DPM   (1<<15)
 
#define BT878_DA_SBR   (1<<14)
 
#define BT878_DA_ES2   (1<<13)
 
#define BT878_DA_LMT   (1<<12)
 
#define BT878_DA_SDR   (0xf<<8)
 
#define BT878_DA_IOM   (3<<6)
 
#define BT878_DA_APP   (1<<5)
 
#define BT878_ACAP_EN   (1<<4)
 
#define BT878_PKTP   (3<<2)
 
#define BT878_RISC_EN   (1<<1)
 
#define BT878_FIFO_EN   1
 
#define BT878_APACK_LEN   0x110
 
#define BT878_AFP_LEN   (0xff<<16)
 
#define BT878_ALP_LEN   0xfff
 
#define BT878_ARISC_START   0x114
 
#define BT878_ARISC_PC   0x120
 
#define BT878_GPIO_DMA_CTL   0x10c
 
#define BT878_INT_STAT   0x100
 
#define BT878_INT_MASK   0x104
 
#define BT878_I2CRACK   (1<<25)
 
#define BT878_I2CDONE   (1<<8)
 
#define BT878_MAX   4
 
#define BT878_RISC_SYNC_MASK   (1 << 15)
 
#define BTTV_BOARD_UNKNOWN   0x00
 
#define BTTV_BOARD_PINNACLESAT   0x5e
 
#define BTTV_BOARD_NEBULA_DIGITV   0x68
 
#define BTTV_BOARD_PC_HDTV   0x70
 
#define BTTV_BOARD_TWINHAN_DST   0x71
 
#define BTTV_BOARD_AVDVBT_771   0x7b
 
#define BTTV_BOARD_AVDVBT_761   0x7c
 
#define BTTV_BOARD_DVICO_DVBT_LITE   0x80
 
#define BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE   0x87
 
#define bmtwrite(dat, adr)   writel((dat), (adr))
 
#define bmtread(adr)   readl(adr)
 

Functions

void bt878_start (struct bt878 *bt, u32 controlreg, u32 op_sync_orin, u32 irq_err_ignore)
 
void bt878_stop (struct bt878 *bt)
 

Variables

int bt878_num
 
struct bt878 bt878 [BT878_MAX]
 

Macro Definition Documentation

#define bmtread (   adr)    readl(adr)

Definition at line 156 of file bt878.h.

#define bmtwrite (   dat,
  adr 
)    writel((dat), (adr))

Definition at line 155 of file bt878.h.

#define BT878_A_G2X   (1<<27)

Definition at line 53 of file bt878.h.

#define BT878_A_GAIN   (0xf<<28)

Definition at line 52 of file bt878.h.

#define BT878_A_PWRDN   (1<<26)

Definition at line 54 of file bt878.h.

#define BT878_A_SEL   (3<<24)

Definition at line 55 of file bt878.h.

#define BT878_ACAP_EN   (1<<4)

Definition at line 67 of file bt878.h.

#define BT878_AFBUS   (1<<12)

Definition at line 45 of file bt878.h.

#define BT878_AFDSR   (1<<14)

Definition at line 43 of file bt878.h.

#define BT878_AFP_LEN   (0xff<<16)

Definition at line 73 of file bt878.h.

#define BT878_AFTRGT   (1<<13)

Definition at line 44 of file bt878.h.

#define BT878_AGPIO_DMA_CTL   0x10c

Definition at line 51 of file bt878.h.

#define BT878_AINT_MASK   0x104

Definition at line 49 of file bt878.h.

#define BT878_AINT_STAT   0x100

Definition at line 35 of file bt878.h.

#define BT878_ALP_LEN   0xfff

Definition at line 74 of file bt878.h.

#define BT878_AOCERR   (1<<18)

Definition at line 39 of file bt878.h.

#define BT878_AOFLOW   (1<<3)

Definition at line 47 of file bt878.h.

#define BT878_APABORT   (1<<17)

Definition at line 40 of file bt878.h.

#define BT878_APACK_LEN   0x110

Definition at line 72 of file bt878.h.

#define BT878_APPERR   (1<<15)

Definition at line 42 of file bt878.h.

#define BT878_ARIPERR   (1<<16)

Definition at line 41 of file bt878.h.

#define BT878_ARISC_EN   (1<<27)

Definition at line 37 of file bt878.h.

#define BT878_ARISC_PC   0x120

Definition at line 78 of file bt878.h.

#define BT878_ARISC_START   0x114

Definition at line 76 of file bt878.h.

#define BT878_ARISCI   (1<<11)

Definition at line 46 of file bt878.h.

#define BT878_ARISCS   (0xf<<28)

Definition at line 36 of file bt878.h.

#define BT878_ASCERR   (1<<19)

Definition at line 38 of file bt878.h.

#define BT878_DA_APP   (1<<5)

Definition at line 66 of file bt878.h.

#define BT878_DA_DPM   (1<<15)

Definition at line 60 of file bt878.h.

#define BT878_DA_ES2   (1<<13)

Definition at line 62 of file bt878.h.

#define BT878_DA_IOM   (3<<6)

Definition at line 65 of file bt878.h.

#define BT878_DA_LMT   (1<<12)

Definition at line 63 of file bt878.h.

#define BT878_DA_LRD   (0x1f<<16)

Definition at line 59 of file bt878.h.

#define BT878_DA_LRI   (1<<22)

Definition at line 57 of file bt878.h.

#define BT878_DA_MLB   (1<<21)

Definition at line 58 of file bt878.h.

#define BT878_DA_SBR   (1<<14)

Definition at line 61 of file bt878.h.

#define BT878_DA_SCE   (1<<23)

Definition at line 56 of file bt878.h.

#define BT878_DA_SDR   (0xf<<8)

Definition at line 64 of file bt878.h.

#define BT878_FIFO_EN   1

Definition at line 70 of file bt878.h.

#define BT878_GPIO_DMA_CTL   0x10c

Definition at line 81 of file bt878.h.

#define BT878_I2CDONE   (1<<8)

Definition at line 87 of file bt878.h.

#define BT878_I2CRACK   (1<<25)

Definition at line 86 of file bt878.h.

#define BT878_INT_MASK   0x104

Definition at line 85 of file bt878.h.

#define BT878_INT_STAT   0x100

Definition at line 84 of file bt878.h.

#define BT878_MAX   4

Definition at line 89 of file bt878.h.

#define BT878_PKTP   (3<<2)

Definition at line 68 of file bt878.h.

#define BT878_RISC_EN   (1<<1)

Definition at line 69 of file bt878.h.

#define BT878_RISC_SYNC_MASK   (1 << 15)

Definition at line 91 of file bt878.h.

#define BT878_VERSION_CODE   0x000000

Definition at line 33 of file bt878.h.

#define BTTV_BOARD_AVDVBT_761   0x7c

Definition at line 100 of file bt878.h.

#define BTTV_BOARD_AVDVBT_771   0x7b

Definition at line 99 of file bt878.h.

#define BTTV_BOARD_DVICO_DVBT_LITE   0x80

Definition at line 101 of file bt878.h.

#define BTTV_BOARD_DVICO_FUSIONHDTV_5_LITE   0x87

Definition at line 102 of file bt878.h.

#define BTTV_BOARD_NEBULA_DIGITV   0x68

Definition at line 96 of file bt878.h.

#define BTTV_BOARD_PC_HDTV   0x70

Definition at line 97 of file bt878.h.

#define BTTV_BOARD_PINNACLESAT   0x5e

Definition at line 95 of file bt878.h.

#define BTTV_BOARD_TWINHAN_DST   0x71

Definition at line 98 of file bt878.h.

#define BTTV_BOARD_UNKNOWN   0x00

Definition at line 94 of file bt878.h.

Function Documentation

void bt878_start ( struct bt878 bt,
u32  controlreg,
u32  op_sync_orin,
u32  irq_err_ignore 
)

Definition at line 210 of file bt878.c.

void bt878_stop ( struct bt878 bt)

Definition at line 244 of file bt878.c.

Variable Documentation

Definition at line 63 of file bt878.c.

int bt878_num

Definition at line 62 of file bt878.c.