Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Variables
flexcop-reg.h File Reference

Go to the source code of this file.

Macros

#define fc_data_Tag_ID_DVB   0x3e
 
#define fc_data_Tag_ID_ATSC   0x3f
 
#define fc_data_Tag_ID_IDSB   0x8b
 
#define fc_key_code_default   0x1
 
#define fc_key_code_even   0x2
 
#define fc_key_code_odd   0x3
 
#define flexcop_set_ibi_value(reg, attr, val)
 

Enumerations

enum  flexcop_revision_t { FLEXCOP_UNK = 0, FLEXCOP_II, FLEXCOP_IIB, FLEXCOP_III }
 
enum  flexcop_device_type_t {
  FC_UNK = 0, FC_CABLE, FC_AIR_DVBT, FC_AIR_ATSC1,
  FC_AIR_ATSC2, FC_AIR_ATSC3, FC_SKY_REV23, FC_SKY_REV26,
  FC_SKY_REV27, FC_SKY_REV28
}
 
enum  flexcop_bus_t { FC_USB = 0, FC_PCI }
 
enum  flexcop_i2c_port_t { FC_I2C_PORT_DEMOD = 1, FC_I2C_PORT_EEPROM = 2, FC_I2C_PORT_TUNER = 3 }
 
enum  flexcop_access_op_t { FC_WRITE = 0, FC_READ = 1 }
 
enum  flexcop_sram_dest_t { FC_SRAM_DEST_NET = 1, FC_SRAM_DEST_CAI = 2, FC_SRAM_DEST_CAO = 4, FC_SRAM_DEST_MEDIA = 8 }
 
enum  flexcop_sram_dest_target_t { FC_SRAM_DEST_TARGET_WAN_USB = 0, FC_SRAM_DEST_TARGET_DMA1 = 1, FC_SRAM_DEST_TARGET_DMA2 = 2, FC_SRAM_DEST_TARGET_FC3_CA = 3 }
 
enum  flexcop_sram_type_t { FC_SRAM_2_32KB = 0, FC_SRAM_1_32KB = 1, FC_SRAM_1_128KB = 2, FC_SRAM_1_48KB = 3 }
 
enum  flexcop_wan_speed_t { FC_WAN_SPEED_4MBITS = 0, FC_WAN_SPEED_8MBITS = 1, FC_WAN_SPEED_12MBITS = 2, FC_WAN_SPEED_16MBITS = 3 }
 
enum  flexcop_dma_index_t { FC_DMA_1 = 1, FC_DMA_2 = 2 }
 
enum  flexcop_dma_addr_index_t { FC_DMA_SUBADDR_0 = 1, FC_DMA_SUBADDR_1 = 2 }
 
enum  flexcop_ibi_register {
  dma1_000 = 0x000, dma1_004 = 0x004, dma1_008 = 0x008, dma1_00c = 0x00c,
  dma2_010 = 0x010, dma2_014 = 0x014, dma2_018 = 0x018, dma2_01c = 0x01c,
  tw_sm_c_100 = 0x100, tw_sm_c_104 = 0x104, tw_sm_c_108 = 0x108, tw_sm_c_10c = 0x10c,
  tw_sm_c_110 = 0x110, lnb_switch_freq_200 = 0x200, misc_204 = 0x204, ctrl_208 = 0x208,
  irq_20c = 0x20c, sw_reset_210 = 0x210, misc_214 = 0x214, mbox_v8_to_host_218 = 0x218,
  mbox_host_to_v8_21c = 0x21c, pid_filter_300 = 0x300, pid_filter_304 = 0x304, pid_filter_308 = 0x308,
  pid_filter_30c = 0x30c, index_reg_310 = 0x310, pid_n_reg_314 = 0x314, mac_low_reg_318 = 0x318,
  mac_high_reg_31c = 0x31c, data_tag_400 = 0x400, card_id_408 = 0x408, card_id_40c = 0x40c,
  mac_address_418 = 0x418, mac_address_41c = 0x41c, ci_600 = 0x600, pi_604 = 0x604,
  pi_608 = 0x608, dvb_reg_60c = 0x60c, sram_ctrl_reg_700 = 0x700, net_buf_reg_704 = 0x704,
  cai_buf_reg_708 = 0x708, cao_buf_reg_70c = 0x70c, media_buf_reg_710 = 0x710, sram_dest_reg_714 = 0x714,
  net_buf_reg_718 = 0x718, wan_ctrl_reg_71c = 0x71c
}
 

Variables

flexcop_ibi_value ibi_zero
 

Macro Definition Documentation

#define fc_data_Tag_ID_ATSC   0x3f

Definition at line 46 of file flexcop-reg.h.

#define fc_data_Tag_ID_DVB   0x3e

Definition at line 45 of file flexcop-reg.h.

#define fc_data_Tag_ID_IDSB   0x8b

Definition at line 47 of file flexcop-reg.h.

#define fc_key_code_default   0x1

Definition at line 49 of file flexcop-reg.h.

#define fc_key_code_even   0x2

Definition at line 50 of file flexcop-reg.h.

#define fc_key_code_odd   0x3

Definition at line 51 of file flexcop-reg.h.

#define flexcop_set_ibi_value (   reg,
  attr,
  val 
)
Value:
{ \
flexcop_ibi_value v = fc->read_ibi_reg(fc,reg); \
v.reg.attr = val; \
fc->write_ibi_reg(fc,reg,v); \
}

Definition at line 160 of file flexcop-reg.h.

Enumeration Type Documentation

Enumerator:
FC_WRITE 
FC_READ 

Definition at line 61 of file flexcop-reg.h.

Enumerator:
FC_USB 
FC_PCI 

Definition at line 29 of file flexcop-reg.h.

Enumerator:
FC_UNK 
FC_CABLE 
FC_AIR_DVBT 
FC_AIR_ATSC1 
FC_AIR_ATSC2 
FC_AIR_ATSC3 
FC_SKY_REV23 
FC_SKY_REV26 
FC_SKY_REV27 
FC_SKY_REV28 

Definition at line 16 of file flexcop-reg.h.

Enumerator:
FC_DMA_SUBADDR_0 
FC_DMA_SUBADDR_1 

Definition at line 99 of file flexcop-reg.h.

Enumerator:
FC_DMA_1 
FC_DMA_2 

Definition at line 94 of file flexcop-reg.h.

Enumerator:
FC_I2C_PORT_DEMOD 
FC_I2C_PORT_EEPROM 
FC_I2C_PORT_TUNER 

Definition at line 55 of file flexcop-reg.h.

Enumerator:
dma1_000 
dma1_004 
dma1_008 
dma1_00c 
dma2_010 
dma2_014 
dma2_018 
dma2_01c 
tw_sm_c_100 
tw_sm_c_104 
tw_sm_c_108 
tw_sm_c_10c 
tw_sm_c_110 
lnb_switch_freq_200 
misc_204 
ctrl_208 
irq_20c 
sw_reset_210 
misc_214 
mbox_v8_to_host_218 
mbox_host_to_v8_21c 
pid_filter_300 
pid_filter_304 
pid_filter_308 
pid_filter_30c 
index_reg_310 
pid_n_reg_314 
mac_low_reg_318 
mac_high_reg_31c 
data_tag_400 
card_id_408 
card_id_40c 
mac_address_418 
mac_address_41c 
ci_600 
pi_604 
pi_608 
dvb_reg_60c 
sram_ctrl_reg_700 
net_buf_reg_704 
cai_buf_reg_708 
cao_buf_reg_70c 
media_buf_reg_710 
sram_dest_reg_714 
net_buf_reg_718 
wan_ctrl_reg_71c 

Definition at line 105 of file flexcop-reg.h.

Enumerator:
FLEXCOP_UNK 
FLEXCOP_II 
FLEXCOP_IIB 
FLEXCOP_III 

Definition at line 9 of file flexcop-reg.h.

Enumerator:
FC_SRAM_DEST_NET 
FC_SRAM_DEST_CAI 
FC_SRAM_DEST_CAO 
FC_SRAM_DEST_MEDIA 

Definition at line 66 of file flexcop-reg.h.

Enumerator:
FC_SRAM_DEST_TARGET_WAN_USB 
FC_SRAM_DEST_TARGET_DMA1 
FC_SRAM_DEST_TARGET_DMA2 
FC_SRAM_DEST_TARGET_FC3_CA 

Definition at line 73 of file flexcop-reg.h.

Enumerator:
FC_SRAM_2_32KB 
FC_SRAM_1_32KB 
FC_SRAM_1_128KB 
FC_SRAM_1_48KB 

Definition at line 80 of file flexcop-reg.h.

Enumerator:
FC_WAN_SPEED_4MBITS 
FC_WAN_SPEED_8MBITS 
FC_WAN_SPEED_12MBITS 
FC_WAN_SPEED_16MBITS 

Definition at line 87 of file flexcop-reg.h.

Variable Documentation

Definition at line 57 of file flexcop.c.