Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pluto2.c File Reference
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include "demux.h"
#include "dmxdev.h"
#include "dvb_demux.h"
#include "dvb_frontend.h"
#include "dvb_net.h"
#include "dvbdev.h"
#include "tda1004x.h"

Go to the source code of this file.

Data Structures

struct  pluto
 

Macros

#define DRIVER_NAME   "pluto2"
 
#define REG_PIDn(n)   ((n) << 2) /* PID n pattern registers */
 
#define REG_PCAR   0x0020 /* PC address register */
 
#define REG_TSCR   0x0024 /* TS ctrl & status */
 
#define REG_MISC   0x0028 /* miscellaneous */
 
#define REG_MMAC   0x002c /* MSB MAC address */
 
#define REG_IMAC   0x0030 /* ISB MAC address */
 
#define REG_LMAC   0x0034 /* LSB MAC address */
 
#define REG_SPID   0x0038 /* SPI data */
 
#define REG_SLCS   0x003c /* serial links ctrl/status */
 
#define PID0_NOFIL   (0x0001 << 16)
 
#define PIDn_ENP   (0x0001 << 15)
 
#define PID0_END   (0x0001 << 14)
 
#define PID0_AFIL   (0x0001 << 13)
 
#define PIDn_PID   (0x1fff << 0)
 
#define TSCR_NBPACKETS   (0x00ff << 24)
 
#define TSCR_DEM   (0x0001 << 17)
 
#define TSCR_DE   (0x0001 << 16)
 
#define TSCR_RSTN   (0x0001 << 15)
 
#define TSCR_MSKO   (0x0001 << 14)
 
#define TSCR_MSKA   (0x0001 << 13)
 
#define TSCR_MSKL   (0x0001 << 12)
 
#define TSCR_OVR   (0x0001 << 11)
 
#define TSCR_AFUL   (0x0001 << 10)
 
#define TSCR_LOCK   (0x0001 << 9)
 
#define TSCR_IACK   (0x0001 << 8)
 
#define TSCR_ADEF   (0x007f << 0)
 
#define MISC_DVR   (0x0fff << 4)
 
#define MISC_ALED   (0x0001 << 3)
 
#define MISC_FRST   (0x0001 << 2)
 
#define MISC_LED1   (0x0001 << 1)
 
#define MISC_LED0   (0x0001 << 0)
 
#define SPID_SPIDR   (0x00ff << 0)
 
#define SLCS_SCL   (0x0001 << 7)
 
#define SLCS_SDA   (0x0001 << 6)
 
#define SLCS_CSN   (0x0001 << 2)
 
#define SLCS_OVR   (0x0001 << 1)
 
#define SLCS_SWC   (0x0001 << 0)
 
#define TS_DMA_PACKETS   (8)
 
#define TS_DMA_BYTES   (188 * TS_DMA_PACKETS)
 
#define I2C_ADDR_TDA10046   0x10
 
#define I2C_ADDR_TUA6034   0xc2
 
#define NHWFILTERS   8
 
#define PCI_VENDOR_ID_SCM   0x0432
 
#define PCI_DEVICE_ID_PLUTO2   0x0001
 

Functions

 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
 MODULE_DEVICE_TABLE (pci, pluto2_id_table)
 
 module_init (pluto2_init)
 
 module_exit (pluto2_exit)
 
 MODULE_AUTHOR ("Andreas Oberritter <[email protected]>")
 
 MODULE_DESCRIPTION ("Pluto2 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRIVER_NAME   "pluto2"

Definition at line 46 of file pluto2.c.

#define I2C_ADDR_TDA10046   0x10

Definition at line 94 of file pluto2.c.

#define I2C_ADDR_TUA6034   0xc2

Definition at line 95 of file pluto2.c.

#define MISC_ALED   (0x0001 << 3)

Definition at line 78 of file pluto2.c.

#define MISC_DVR   (0x0fff << 4)

Definition at line 77 of file pluto2.c.

#define MISC_FRST   (0x0001 << 2)

Definition at line 79 of file pluto2.c.

#define MISC_LED0   (0x0001 << 0)

Definition at line 81 of file pluto2.c.

#define MISC_LED1   (0x0001 << 1)

Definition at line 80 of file pluto2.c.

#define NHWFILTERS   8

Definition at line 96 of file pluto2.c.

#define PCI_DEVICE_ID_PLUTO2   0x0001

Definition at line 777 of file pluto2.c.

#define PCI_VENDOR_ID_SCM   0x0432

Definition at line 774 of file pluto2.c.

#define PID0_AFIL   (0x0001 << 13)

Definition at line 61 of file pluto2.c.

#define PID0_END   (0x0001 << 14)

Definition at line 60 of file pluto2.c.

#define PID0_NOFIL   (0x0001 << 16)

Definition at line 58 of file pluto2.c.

#define PIDn_ENP   (0x0001 << 15)

Definition at line 59 of file pluto2.c.

#define PIDn_PID   (0x1fff << 0)

Definition at line 62 of file pluto2.c.

#define REG_IMAC   0x0030 /* ISB MAC address */

Definition at line 53 of file pluto2.c.

#define REG_LMAC   0x0034 /* LSB MAC address */

Definition at line 54 of file pluto2.c.

#define REG_MISC   0x0028 /* miscellaneous */

Definition at line 51 of file pluto2.c.

#define REG_MMAC   0x002c /* MSB MAC address */

Definition at line 52 of file pluto2.c.

#define REG_PCAR   0x0020 /* PC address register */

Definition at line 49 of file pluto2.c.

#define REG_PIDn (   n)    ((n) << 2) /* PID n pattern registers */

Definition at line 48 of file pluto2.c.

#define REG_SLCS   0x003c /* serial links ctrl/status */

Definition at line 56 of file pluto2.c.

#define REG_SPID   0x0038 /* SPI data */

Definition at line 55 of file pluto2.c.

#define REG_TSCR   0x0024 /* TS ctrl & status */

Definition at line 50 of file pluto2.c.

#define SLCS_CSN   (0x0001 << 2)

Definition at line 87 of file pluto2.c.

#define SLCS_OVR   (0x0001 << 1)

Definition at line 88 of file pluto2.c.

#define SLCS_SCL   (0x0001 << 7)

Definition at line 85 of file pluto2.c.

#define SLCS_SDA   (0x0001 << 6)

Definition at line 86 of file pluto2.c.

#define SLCS_SWC   (0x0001 << 0)

Definition at line 89 of file pluto2.c.

#define SPID_SPIDR   (0x00ff << 0)

Definition at line 83 of file pluto2.c.

#define TS_DMA_BYTES   (188 * TS_DMA_PACKETS)

Definition at line 92 of file pluto2.c.

#define TS_DMA_PACKETS   (8)

Definition at line 91 of file pluto2.c.

#define TSCR_ADEF   (0x007f << 0)

Definition at line 75 of file pluto2.c.

#define TSCR_AFUL   (0x0001 << 10)

Definition at line 72 of file pluto2.c.

#define TSCR_DE   (0x0001 << 16)

Definition at line 66 of file pluto2.c.

#define TSCR_DEM   (0x0001 << 17)

Definition at line 65 of file pluto2.c.

#define TSCR_IACK   (0x0001 << 8)

Definition at line 74 of file pluto2.c.

#define TSCR_LOCK   (0x0001 << 9)

Definition at line 73 of file pluto2.c.

#define TSCR_MSKA   (0x0001 << 13)

Definition at line 69 of file pluto2.c.

#define TSCR_MSKL   (0x0001 << 12)

Definition at line 70 of file pluto2.c.

#define TSCR_MSKO   (0x0001 << 14)

Definition at line 68 of file pluto2.c.

#define TSCR_NBPACKETS   (0x00ff << 24)

Definition at line 64 of file pluto2.c.

#define TSCR_OVR   (0x0001 << 11)

Definition at line 71 of file pluto2.c.

#define TSCR_RSTN   (0x0001 << 15)

Definition at line 67 of file pluto2.c.

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MODULE_AUTHOR ( "Andreas Oberritter <[email protected]>"  )
MODULE_DESCRIPTION ( "Pluto2 driver )
MODULE_DEVICE_TABLE ( pci  ,
pluto2_id_table   
)
module_exit ( pluto2_exit  )
module_init ( pluto2_init  )
MODULE_LICENSE ( "GPL"  )