/* SPDX-License-Identifier: GPL-2.0 */
/*
* Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III
* flexcop-reg.h - register abstraction for FlexCopII, FlexCopIIb and FlexCopIII
* see flexcop.c for copyright information
*/
#ifndef __FLEXCOP_REG_H__
#define __FLEXCOP_REG_H__
typedef enum {
FLEXCOP_UNK = 0 ,
FLEXCOP_II,
FLEXCOP_IIB,
FLEXCOP_III,
} flexcop_revision_t;
typedef enum {
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,
FC_SKYS2_REV33,
} flexcop_device_type_t;
typedef enum {
FC_USB = 0 ,
FC_PCI,
} flexcop_bus_t;
/* FlexCop IBI Registers */
#if defined (__LITTLE_ENDIAN)
#include "flexcop_ibi_value_le.h"
#else
#if defined (__BIG_ENDIAN)
#include "flexcop_ibi_value_be.h"
#else
#error no endian defined
#endif
#endif
#define fc_data_Tag_ID_DVB 0 x3e
#define fc_data_Tag_ID_ATSC 0 x3f
#define fc_data_Tag_ID_IDSB 0 x8b
#define fc_key_code_default 0 x1
#define fc_key_code_even 0 x2
#define fc_key_code_odd 0 x3
extern flexcop_ibi_value ibi_zero;
typedef enum {
FC_I2C_PORT_DEMOD = 1 ,
FC_I2C_PORT_EEPROM = 2 ,
FC_I2C_PORT_TUNER = 3 ,
} flexcop_i2c_port_t;
typedef enum {
FC_WRITE = 0 ,
FC_READ = 1 ,
} flexcop_access_op_t;
typedef enum {
FC_SRAM_DEST_NET = 1 ,
FC_SRAM_DEST_CAI = 2 ,
FC_SRAM_DEST_CAO = 4 ,
FC_SRAM_DEST_MEDIA = 8
} flexcop_sram_dest_t;
typedef enum {
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
} flexcop_sram_dest_target_t;
typedef enum {
FC_SRAM_2_32KB = 0 , /* 64KB */
FC_SRAM_1_32KB = 1 , /* 32KB - default fow FCII */
FC_SRAM_1_128KB = 2 , /* 128KB */
FC_SRAM_1_48KB = 3 , /* 48KB - default for FCIII */
} flexcop_sram_type_t;
typedef enum {
FC_WAN_SPEED_4MBITS = 0 ,
FC_WAN_SPEED_8MBITS = 1 ,
FC_WAN_SPEED_12MBITS = 2 ,
FC_WAN_SPEED_16MBITS = 3 ,
} flexcop_wan_speed_t;
typedef enum {
FC_DMA_1 = 1 ,
FC_DMA_2 = 2 ,
} flexcop_dma_index_t;
typedef enum {
FC_DMA_SUBADDR_0 = 1 ,
FC_DMA_SUBADDR_1 = 2 ,
} flexcop_dma_addr_index_t;
/* names of the particular registers */
typedef enum {
dma1_000 = 0 x000,
dma1_004 = 0 x004,
dma1_008 = 0 x008,
dma1_00c = 0 x00c,
dma2_010 = 0 x010,
dma2_014 = 0 x014,
dma2_018 = 0 x018,
dma2_01c = 0 x01c,
tw_sm_c_100 = 0 x100,
tw_sm_c_104 = 0 x104,
tw_sm_c_108 = 0 x108,
tw_sm_c_10c = 0 x10c,
tw_sm_c_110 = 0 x110,
lnb_switch_freq_200 = 0 x200,
misc_204 = 0 x204,
ctrl_208 = 0 x208,
irq_20c = 0 x20c,
sw_reset_210 = 0 x210,
misc_214 = 0 x214,
mbox_v8_to_host_218 = 0 x218,
mbox_host_to_v8_21c = 0 x21c,
pid_filter_300 = 0 x300,
pid_filter_304 = 0 x304,
pid_filter_308 = 0 x308,
pid_filter_30c = 0 x30c,
index_reg_310 = 0 x310,
pid_n_reg_314 = 0 x314,
mac_low_reg_318 = 0 x318,
mac_high_reg_31c = 0 x31c,
data_tag_400 = 0 x400,
card_id_408 = 0 x408,
card_id_40c = 0 x40c,
mac_address_418 = 0 x418,
mac_address_41c = 0 x41c,
ci_600 = 0 x600,
pi_604 = 0 x604,
pi_608 = 0 x608,
dvb_reg_60c = 0 x60c,
sram_ctrl_reg_700 = 0 x700,
net_buf_reg_704 = 0 x704,
cai_buf_reg_708 = 0 x708,
cao_buf_reg_70c = 0 x70c,
media_buf_reg_710 = 0 x710,
sram_dest_reg_714 = 0 x714,
net_buf_reg_718 = 0 x718,
wan_ctrl_reg_71c = 0 x71c,
} flexcop_ibi_register;
#define flexcop_set_ibi_value(reg,attr,val) { \
flexcop_ibi_value v = fc->read_ibi_reg(fc,reg); \
v.reg.attr = val; \
fc->write_ibi_reg(fc,reg,v); \
}
#endif
Messung V0.5 in Prozent C=95 H=92 G=93
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-08)
¤
*© Formatika GbR, Deutschland