Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
pctv452e.c File Reference
#include "dvb-usb.h"
#include "stb0899_drv.h"
#include "stb0899_reg.h"
#include "stb0899_cfg.h"
#include "stb6100.h"
#include "stb6100_cfg.h"
#include "lnbp22.h"
#include "dvb_ca_en50221.h"
#include "ttpci-eeprom.h"

Go to the source code of this file.

Data Structures

struct  pctv452e_state
 

Macros

#define DVB_USB_LOG_PREFIX   "pctv452e"
 
#define ISOC_INTERFACE_ALTERNATIVE   3
 
#define SYNC_BYTE_OUT   0xaa
 
#define SYNC_BYTE_IN   0x55
 
#define PCTV_CMD_RESET   0x15
 
#define PCTV_CMD_IR   0x1b
 
#define PCTV_CMD_I2C   0x31
 
#define I2C_ADDR_STB0899   (0xd0 >> 1)
 
#define I2C_ADDR_STB6100   (0xc0 >> 1)
 
#define I2C_ADDR_LNBP22   (0x10 >> 1)
 
#define I2C_ADDR_24C16   (0xa0 >> 1)
 
#define I2C_ADDR_24C64   (0xa2 >> 1)
 
#define PCTV_ANSWER_LEN   64
 
#define PCTV_TIMEOUT   1000
 
#define PCTV_LED_GPIO   STB0899_GPIO01
 
#define PCTV_LED_GREEN   0x82
 
#define PCTV_LED_ORANGE   0x02
 
#define ci_dbg(format, arg...)
 
#define CMD_BUFFER_SIZE   0x28
 

Enumerations

enum  {
  TT3650_CMD_CI_TEST = 0x40, TT3650_CMD_CI_RD_CTRL, TT3650_CMD_CI_WR_CTRL, TT3650_CMD_CI_RD_ATTR,
  TT3650_CMD_CI_WR_ATTR, TT3650_CMD_CI_RESET, TT3650_CMD_CI_SET_VIDEO_PORT
}
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Turn on/off debugging (default:off).")
 
 DVB_DEFINE_MOD_OPT_ADAPTER_NR (adapter_nr)
 
 MODULE_DEVICE_TABLE (usb, pctv452e_usb_table)
 
 module_usb_driver (pctv452e_usb_driver)
 
 MODULE_AUTHOR ("Dominik Kuhlen <[email protected]>")
 
 MODULE_AUTHOR ("Andre Weidemann <[email protected]>")
 
 MODULE_AUTHOR ("Michael H. Schimek <mschimek@gmx.at>")
 
 MODULE_DESCRIPTION ("Pinnacle PCTV HDTV USB DVB / TT connect S2-3600 Driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ci_dbg (   format,
  arg... 
)
Value:
do { \
if (0) \
": " format "\n" , ## arg); \
} while (0)

Definition at line 67 of file pctv452e.c.

#define CMD_BUFFER_SIZE   0x28

Definition at line 402 of file pctv452e.c.

#define DVB_USB_LOG_PREFIX   "pctv452e"

Definition at line 16 of file pctv452e.c.

#define I2C_ADDR_24C16   (0xa0 >> 1)

Definition at line 53 of file pctv452e.c.

#define I2C_ADDR_24C64   (0xa2 >> 1)

Definition at line 54 of file pctv452e.c.

#define I2C_ADDR_LNBP22   (0x10 >> 1)

Definition at line 52 of file pctv452e.c.

#define I2C_ADDR_STB0899   (0xd0 >> 1)

Definition at line 50 of file pctv452e.c.

#define I2C_ADDR_STB6100   (0xc0 >> 1)

Definition at line 51 of file pctv452e.c.

#define ISOC_INTERFACE_ALTERNATIVE   3

Definition at line 38 of file pctv452e.c.

#define PCTV_ANSWER_LEN   64

Definition at line 58 of file pctv452e.c.

#define PCTV_CMD_I2C   0x31

Definition at line 48 of file pctv452e.c.

#define PCTV_CMD_IR   0x1b

Definition at line 46 of file pctv452e.c.

#define PCTV_CMD_RESET   0x15

Definition at line 44 of file pctv452e.c.

#define PCTV_LED_GPIO   STB0899_GPIO01

Definition at line 63 of file pctv452e.c.

#define PCTV_LED_GREEN   0x82

Definition at line 64 of file pctv452e.c.

#define PCTV_LED_ORANGE   0x02

Definition at line 65 of file pctv452e.c.

#define PCTV_TIMEOUT   1000

Definition at line 60 of file pctv452e.c.

#define SYNC_BYTE_IN   0x55

Definition at line 41 of file pctv452e.c.

#define SYNC_BYTE_OUT   0xaa

Definition at line 40 of file pctv452e.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
TT3650_CMD_CI_TEST 
TT3650_CMD_CI_RD_CTRL 
TT3650_CMD_CI_WR_CTRL 
TT3650_CMD_CI_RD_ATTR 
TT3650_CMD_CI_WR_ATTR 
TT3650_CMD_CI_RESET 
TT3650_CMD_CI_SET_VIDEO_PORT 

Definition at line 74 of file pctv452e.c.

Function Documentation

DVB_DEFINE_MOD_OPT_ADAPTER_NR ( adapter_nr  )
MODULE_AUTHOR ( "Dominik Kuhlen <[email protected]>"  )
MODULE_AUTHOR ( "Andre Weidemann <[email protected]>"  )
MODULE_AUTHOR ( "Michael H. Schimek <mschimek@gmx.at>"  )
MODULE_DESCRIPTION ( "Pinnacle PCTV HDTV USB DVB / TT connect S2-3600 Driver"  )
MODULE_DEVICE_TABLE ( usb  ,
pctv452e_usb_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
MODULE_PARM_DESC ( debug  ,
"Turn on/off debugging (default:off)."   
)
module_usb_driver ( pctv452e_usb_driver  )