1 #ifndef __IT9510_TYPE_H__
2 #define __IT9510_TYPE_H__
4 #include "modulatorType.h"
6 #include <linux/kthread.h>
8 #define IT9510User_INTERNAL 1
11 #define IT9517Cmd_buildCommand(command, processor) (command + (Word) (processor << 12))
12 #define IT9510_MAX_BIT
23 * The type defination of Constellation.
26 DownSampleRate_21_OVER_1
= 0, /** Signal uses FEC coding ratio of 21/1 */
27 DownSampleRate_21_OVER_2
, /** Signal uses FEC coding ratio of 21/2 */
28 DownSampleRate_21_OVER_3
, /** Signal uses FEC coding ratio of 21/3 */
29 DownSampleRate_21_OVER_4
, /** Signal uses FEC coding ratio of 21/4 */
30 DownSampleRate_21_OVER_5
, /** Signal uses FEC coding ratio of 21/5 */
31 DownSampleRate_21_OVER_6
, /** Signal uses FEC coding ratio of 21/6 */
40 NullPacketModeDisable
= 0,
53 ARIB_STD_B31
= 0, /** System based on this specification */
54 ISDB_TSB
/** System for ISDB-TSB */
55 } SystemIdentification
;
59 Constellation constellation
; /** Constellation scheme (FFT mode) in use */
60 CodeRate codeRate
; /** FEC coding ratio of high-priority stream */
64 Dword frequency
; /** Channel frequency in KHz. */
66 TransmissionModes transmissionMode
; /** Number of carriers used for OFDM signal */
67 Interval interval
; /** Fraction of symbol length used as guard (Guard Interval) */
70 Bool isPartialReception
;
73 typedef struct _TMCCINFO
{
76 Bool isPartialReception
;
77 SystemIdentification systemIdentification
;
78 } TMCCINFO
, *pTMCCINFO
;
84 ChannelModulation channelModulation
;
85 ISDBTModulation isdbtModulation
;
86 OutputMode outputMode
; //0:un 1:DVB 2:isdbt;
87 Dword packetTimeJitter_ps
;
89 int positive
; //-1:- / 1:+
93 * The data structure of IT9510
96 /** Basic structure */
101 Segment
* firmwareSegments
;
102 Word
* firmwarePartitions
;
105 TsInterface tsInterfaceType
;
110 ChannelModulation channelModulation
;
111 CalibrationInfo calibrationInfo
;
113 #if IT9510User_INTERNAL
114 SystemConfig systemConfig
;
116 ISDBTModulation isdbtModulation
;
117 OutputMode outputMode
; //0:un 1:DVB 2:isdbt;
118 NullPacketMode nullPacketMode
;
121 #if IT9510User_INTERNAL
124 PCRCALINFO pcrCalInfo
;
125 RFGainInfo rfGainInfo
;
127 // Fix shared memery for DC table at multi-device issue. By JK.
129 DCtable ofs_table
[7];
130 RFGainTable rfGain_table
[50];
132 #ifdef __ADRF6755_H__
133 ADRF6755INFO ADRF6755
;
136 #ifdef __RFFC2072_H__
137 RFFC2072INFO RFFC2072
;
140 // for RFFC2072 board issue. Add by JK.
141 #if RF_RELOCK_MONITOR
142 struct task_struct
*relock_thread
; // for RFFC2072 board.
143 Byte start_detect_relock_status
;
145 // check whether device is disconnect. Add by JK.
150 extern const Byte IT9510_bitMask
[8];
151 #define IT9510_REG_MASK(pos, len) (IT9510_bitMask[len-1] << pos)
152 #define IT9510_REG_CLEAR(temp, pos, len) (temp & (~IT9510_REG_MASK(pos, len)))
153 #define IT9510_REG_CREATE(val, temp, pos, len) ((val << pos) | (IT9510_REG_CLEAR(temp, pos, len)))
154 #define IT9510_REG_GET(value, pos, len) ((value & IT9510_REG_MASK(pos, len)) >> pos)