Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
cx231xx-pcb-cfg.h File Reference
#include <linux/init.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  INTERFACE_INFO
 
struct  CONFIG_INFO
 
struct  pcb_config
 

Macros

#define CLASS_DEFAULT   0xFF
 
#define SPEED_MASK   0x1
 
#define TS_MASK   0x6
 
#define EAVP_MASK   0x8
 
#define ATM_MASK   0x30
 
#define PWR_SEL_MASK   0x40
 
#define BO_0_MASK   0x80
 
#define BO_1_MASK   0x100
 
#define BUSPOWER_MASK   0xC4 /* for Polaris spec 0.8 */
 
#define SELFPOWER_MASK   0x86
 
#define NOT_DECIDE_YET   0xFE
 
#define NOT_SUPPORTED   0xFF
 
#define MOD_DIGITAL   0x1
 
#define MOD_ANALOG   0x2
 
#define MOD_DIF   0x4
 
#define MOD_EXTERNAL   0x8
 
#define CAP_ALL_MOD   0x0f
 
#define SOURCE_DIGITAL   0x1
 
#define SOURCE_ANALOG   0x2
 
#define SOURCE_DIF   0x4
 
#define SOURCE_EXTERNAL   0x8
 
#define SOURCE_TS_BDA   0x10
 
#define SOURCE_TS_ENCODE   0x20
 
#define SOURCE_TS_EXTERNAL   0x40
 

Enumerations

enum  VENDOR_REQUEST_TYPE {
  VRT_SET_I2C0 = 0x0, VRT_SET_I2C1 = 0x1, VRT_SET_I2C2 = 0x2, VRT_GET_I2C0 = 0x4,
  VRT_GET_I2C1 = 0x5, VRT_GET_I2C2 = 0x6, VRT_SET_GPIO = 0x8, VRT_GET_GPIO = 0x9,
  VRT_SET_GPIE = 0xA, VRT_GET_GPIE = 0xB, VRT_SET_REGISTER = 0xC, VRT_GET_REGISTER = 0xD,
  VRT_GET_EXTCID_DESC = 0xFF
}
 
enum  BYTE_ENABLE_MASK { ENABLE_ONE_BYTE = 0x1, ENABLE_TWE_BYTE = 0x3, ENABLE_THREE_BYTE = 0x7, ENABLE_FOUR_BYTE = 0xF }
 
enum  USB_SPEED { FULL_SPEED = 0x0, HIGH_SPEED = 0x1 }
 
enum  _true_false { FALSE = 0, TRUE = 1 }
 
enum  TS_PORT {
  NO_TS_PORT = 0x0, TS1_PORT = 0x4, TS1_TS2_PORT = 0x6, TS1_EXT_CLOCK = 0x6,
  TS1VIP_TS2_PORT = 0x2
}
 
enum  EAV_PRESENT { NO_EXTERNAL_AV = 0x0, EXTERNAL_AV = 0x8 }
 
enum  AT_MODE { DIF_TUNER = 0x30, BASEBAND_SOUND = 0x20, NO_TUNER = 0x10 }
 
enum  POWE_TYPE { SELF_POWER = 0x0, BUS_POWER = 0x40 }
 
enum  USB_POWE_TYPE { USB_SELF_POWER = 0, USB_BUS_POWER }
 
enum  AVDEC_STATUS { AVDEC_DISABLE = 0x0, AVDEC_ENABLE = 0x80 }
 
enum  INDEX_INTERFACE_INFO {
  INDEX_INTERRUPT = 0x0, INDEX_TS1, INDEX_TS2, INDEX_AUDIO,
  INDEX_VIDEO, INDEX_VANC, INDEX_HANC, INDEX_IR
}
 
enum  INDEX_PCB_CONFIG {
  INDEX_SELFPOWER_DIGITAL_ONLY = 0x0, INDEX_SELFPOWER_DUAL_DIGITAL, INDEX_SELFPOWER_ANALOG_ONLY, INDEX_SELFPOWER_DUAL,
  INDEX_SELFPOWER_TRIPLE, INDEX_SELFPOWER_COMPRESSOR, INDEX_BUSPOWER_DIGITAL_ONLY, INDEX_BUSPOWER_ANALOG_ONLY,
  INDEX_BUSPOWER_DIF_ONLY, INDEX_BUSPOWER_EXTERNAL_ONLY, INDEX_BUSPOWER_EXTERNAL_ANALOG, INDEX_BUSPOWER_EXTERNAL_DIF,
  INDEX_BUSPOWER_EXTERNAL_DIGITAL, INDEX_BUSPOWER_DIGITAL_ANALOG, INDEX_BUSPOWER_DIGITAL_DIF, INDEX_BUSPOWER_DIGITAL_ANALOG_EXTERNAL,
  INDEX_BUSPOWER_DIGITAL_DIF_EXTERNAL
}
 

Functions

u32 initialize_cx231xx (struct cx231xx *p_dev)
 

Macro Definition Documentation

#define ATM_MASK   0x30

Definition at line 100 of file cx231xx-pcb-cfg.h.

#define BO_0_MASK   0x80

Definition at line 119 of file cx231xx-pcb-cfg.h.

#define BO_1_MASK   0x100

Definition at line 125 of file cx231xx-pcb-cfg.h.

#define BUSPOWER_MASK   0xC4 /* for Polaris spec 0.8 */

Definition at line 127 of file cx231xx-pcb-cfg.h.

#define CAP_ALL_MOD   0x0f

Definition at line 141 of file cx231xx-pcb-cfg.h.

#define CLASS_DEFAULT   0xFF

Definition at line 31 of file cx231xx-pcb-cfg.h.

#define EAVP_MASK   0x8

Definition at line 91 of file cx231xx-pcb-cfg.h.

#define MOD_ANALOG   0x2

Definition at line 138 of file cx231xx-pcb-cfg.h.

#define MOD_DIF   0x4

Definition at line 139 of file cx231xx-pcb-cfg.h.

#define MOD_DIGITAL   0x1

Definition at line 137 of file cx231xx-pcb-cfg.h.

#define MOD_EXTERNAL   0x8

Definition at line 140 of file cx231xx-pcb-cfg.h.

#define NOT_DECIDE_YET   0xFE

Definition at line 131 of file cx231xx-pcb-cfg.h.

#define NOT_SUPPORTED   0xFF

Definition at line 132 of file cx231xx-pcb-cfg.h.

#define PWR_SEL_MASK   0x40

Definition at line 108 of file cx231xx-pcb-cfg.h.

#define SELFPOWER_MASK   0x86

Definition at line 128 of file cx231xx-pcb-cfg.h.

#define SOURCE_ANALOG   0x2

Definition at line 147 of file cx231xx-pcb-cfg.h.

#define SOURCE_DIF   0x4

Definition at line 148 of file cx231xx-pcb-cfg.h.

#define SOURCE_DIGITAL   0x1

Definition at line 146 of file cx231xx-pcb-cfg.h.

#define SOURCE_EXTERNAL   0x8

Definition at line 149 of file cx231xx-pcb-cfg.h.

#define SOURCE_TS_BDA   0x10

Definition at line 150 of file cx231xx-pcb-cfg.h.

#define SOURCE_TS_ENCODE   0x20

Definition at line 151 of file cx231xx-pcb-cfg.h.

#define SOURCE_TS_EXTERNAL   0x40

Definition at line 152 of file cx231xx-pcb-cfg.h.

#define SPEED_MASK   0x1

Definition at line 65 of file cx231xx-pcb-cfg.h.

#define TS_MASK   0x6

Definition at line 76 of file cx231xx-pcb-cfg.h.

Enumeration Type Documentation

Enumerator:
FALSE 
TRUE 

Definition at line 71 of file cx231xx-pcb-cfg.h.

enum AT_MODE
Enumerator:
DIF_TUNER 
BASEBAND_SOUND 
NO_TUNER 

Definition at line 101 of file cx231xx-pcb-cfg.h.

Enumerator:
AVDEC_DISABLE 
AVDEC_ENABLE 

Definition at line 120 of file cx231xx-pcb-cfg.h.

Enumerator:
ENABLE_ONE_BYTE 
ENABLE_TWE_BYTE 
ENABLE_THREE_BYTE 
ENABLE_FOUR_BYTE 

Definition at line 58 of file cx231xx-pcb-cfg.h.

Enumerator:
NO_EXTERNAL_AV 
EXTERNAL_AV 

Definition at line 92 of file cx231xx-pcb-cfg.h.

Enumerator:
INDEX_INTERRUPT 
INDEX_TS1 
INDEX_TS2 
INDEX_AUDIO 
INDEX_VIDEO 
INDEX_VANC 
INDEX_HANC 
INDEX_IR 

Definition at line 168 of file cx231xx-pcb-cfg.h.

Enumerator:
INDEX_SELFPOWER_DIGITAL_ONLY 
INDEX_SELFPOWER_DUAL_DIGITAL 
INDEX_SELFPOWER_ANALOG_ONLY 
INDEX_SELFPOWER_DUAL 
INDEX_SELFPOWER_TRIPLE 
INDEX_SELFPOWER_COMPRESSOR 
INDEX_BUSPOWER_DIGITAL_ONLY 
INDEX_BUSPOWER_ANALOG_ONLY 
INDEX_BUSPOWER_DIF_ONLY 
INDEX_BUSPOWER_EXTERNAL_ONLY 
INDEX_BUSPOWER_EXTERNAL_ANALOG 
INDEX_BUSPOWER_EXTERNAL_DIF 
INDEX_BUSPOWER_EXTERNAL_DIGITAL 
INDEX_BUSPOWER_DIGITAL_ANALOG 
INDEX_BUSPOWER_DIGITAL_DIF 
INDEX_BUSPOWER_DIGITAL_ANALOG_EXTERNAL 
INDEX_BUSPOWER_DIGITAL_DIF_EXTERNAL 

Definition at line 206 of file cx231xx-pcb-cfg.h.

enum POWE_TYPE
Enumerator:
SELF_POWER 
BUS_POWER 

Definition at line 109 of file cx231xx-pcb-cfg.h.

enum TS_PORT
Enumerator:
NO_TS_PORT 
TS1_PORT 
TS1_TS2_PORT 
TS1_EXT_CLOCK 
TS1VIP_TS2_PORT 

Definition at line 77 of file cx231xx-pcb-cfg.h.

Enumerator:
USB_SELF_POWER 
USB_BUS_POWER 

Definition at line 114 of file cx231xx-pcb-cfg.h.

enum USB_SPEED
Enumerator:
FULL_SPEED 
HIGH_SPEED 

Definition at line 66 of file cx231xx-pcb-cfg.h.

Enumerator:
VRT_SET_I2C0 
VRT_SET_I2C1 
VRT_SET_I2C2 
VRT_GET_I2C0 
VRT_GET_I2C1 
VRT_GET_I2C2 
VRT_SET_GPIO 
VRT_GET_GPIO 
VRT_SET_GPIE 
VRT_GET_GPIE 
VRT_SET_REGISTER 
VRT_GET_REGISTER 
VRT_GET_EXTCID_DESC 

Definition at line 33 of file cx231xx-pcb-cfg.h.

Function Documentation

u32 initialize_cx231xx ( struct cx231xx p_dev)

Definition at line 657 of file cx231xx-pcb-cfg.c.