1*53ee8cc1Swenshuai.xi #include <linux/kernel.h>
2*53ee8cc1Swenshuai.xi #include <linux/string.h>
3*53ee8cc1Swenshuai.xi #include <linux/slab.h>
4*53ee8cc1Swenshuai.xi
5*53ee8cc1Swenshuai.xi #include "MsTypes.h"
6*53ee8cc1Swenshuai.xi #include "utopia.h"
7*53ee8cc1Swenshuai.xi #include "utopia_adp.h"
8*53ee8cc1Swenshuai.xi
9*53ee8cc1Swenshuai.xi #include "drvDMD_INTERN_DVBT_v2.h"
10*53ee8cc1Swenshuai.xi
11*53ee8cc1Swenshuai.xi //#include "MsOS.h"
12*53ee8cc1Swenshuai.xi
13*53ee8cc1Swenshuai.xi //#include <linux/kernel.h>
14*53ee8cc1Swenshuai.xi
15*53ee8cc1Swenshuai.xi //Top
16*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_BOOL_VAL[5];
17*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_U8_VAL[5];
18*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_U16_VAL[5];
19*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_U32_VAL[5];
20*53ee8cc1Swenshuai.xi //UADP_STRUCT_POINTER_TABLE spt_DVBT_FLOAT_VAL[5];
21*53ee8cc1Swenshuai.xi
22*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_DBG_LEVEL_PARAM[5];
23*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_EXIT_PARAM[5];
24*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DMD_DVBT_InitData[5];
25*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_INIT_PARAM[5];
26*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GETINFO_PARAM[5];
27*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DMD_DVBT_Info[5];
28*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GETINFO_RETURN_PARAM[5];
29*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GETREG_PARAM[5];
30*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SETREG_PARAM[5];
31*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetSerialControl_PARAM[5];
32*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetConfig_PARAM[5];
33*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetConfigHPLP_PARAM[5];
34*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetConfigHPLPSetIF_PARAM[5];
35*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetActive_PARAM[5];
36*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DMD_LOCK_STATUS[5];
37*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetLock_PARAM[5];
38*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetSignalStrength_PARAM[5];
39*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetSignalStrengthWithRFPower_PARAM[5];
40*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetSignalQuality_PARAM[5];
41*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetSignalQualityWithRFPower_PARAM[5];
42*53ee8cc1Swenshuai.xi
43*53ee8cc1Swenshuai.xi /******bryan add******/
44*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GETLIBVER_PARAM[5];
45*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_MSIF_Version[5];
46*53ee8cc1Swenshuai.xi
47*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GETFWVER_PARAM[5];
48*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_U16_Val[5];
49*53ee8cc1Swenshuai.xi
50*53ee8cc1Swenshuai.xi
51*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_PDVBT_GetFreqOffset_PARAM[5];
52*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DMD_DVBT_InitData_Transform[5];
53*53ee8cc1Swenshuai.xi /***** end of bryan add*****/
54*53ee8cc1Swenshuai.xi
55*53ee8cc1Swenshuai.xi //arthur
56*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetIFAGC_PARAM[5];
57*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetSNR_PARAM[5];
58*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetPostViterbiBer_PARAM[5];
59*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetPacketErr_PARAM[5];
60*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetTPSInfo_PARAM[5];
61*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_GetCellID_PARAM[5];
62*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_SetPowerState_PARAM[5];
63*53ee8cc1Swenshuai.xi
64*53ee8cc1Swenshuai.xi UADP_STRUCT_POINTER_TABLE spt_DVBT_8BYTE_PARAM[5];
65*53ee8cc1Swenshuai.xi //UADP_STRUCT_POINTER_TABLE spt_DVBC_8BYTE_PARAM[5];
66*53ee8cc1Swenshuai.xi
DVBT_adp_Ioctl(void * pInstanceTmp,MS_U32 u32Cmd,void * const pArgs)67*53ee8cc1Swenshuai.xi MS_U32 DVBT_adp_Ioctl(void* pInstanceTmp, MS_U32 u32Cmd, void* const pArgs)
68*53ee8cc1Swenshuai.xi {
69*53ee8cc1Swenshuai.xi MS_U32 u32Ret = 0;
70*53ee8cc1Swenshuai.xi char buffer_arg[2048];
71*53ee8cc1Swenshuai.xi
72*53ee8cc1Swenshuai.xi switch(u32Cmd)
73*53ee8cc1Swenshuai.xi {
74*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_Init:
75*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
76*53ee8cc1Swenshuai.xi printf("kernal mode DVBTIoctl - MDrv_DMD_DVBT_Init\n");
77*53ee8cc1Swenshuai.xi #endif
78*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_INIT_PARAM, spt_DVBT_INIT_PARAM, buffer_arg, sizeof(buffer_arg));
79*53ee8cc1Swenshuai.xi break;
80*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_Exit:
81*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
82*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_Exit\n");
83*53ee8cc1Swenshuai.xi #endif
84*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_EXIT_PARAM, spt_DVBT_EXIT_PARAM, buffer_arg, sizeof(buffer_arg));
85*53ee8cc1Swenshuai.xi break;
86*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetDbgLeve :
87*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
88*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetDbgLevel\n");
89*53ee8cc1Swenshuai.xi #endif
90*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_DBG_LEVEL_PARAM, spt_DVBT_DBG_LEVEL_PARAM, buffer_arg, sizeof(buffer_arg));
91*53ee8cc1Swenshuai.xi break;
92*53ee8cc1Swenshuai.xi
93*53ee8cc1Swenshuai.xi /*bryan temp mark*/
94*53ee8cc1Swenshuai.xi /*
95*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetInfo:
96*53ee8cc1Swenshuai.xi printk("bryan kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetInfo\n");
97*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GETREG_PARAM, spt_DVBT_GETREG_PARAM, buffer_arg, sizeof(buffer_arg));
98*53ee8cc1Swenshuai.xi break;
99*53ee8cc1Swenshuai.xi */
100*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetLibVer:
101*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
102*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetLibVer\n");
103*53ee8cc1Swenshuai.xi #endif
104*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GETLIBVER_PARAM, spt_DVBT_GETLIBVER_PARAM, buffer_arg, sizeof(buffer_arg));
105*53ee8cc1Swenshuai.xi break;
106*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetFWVer:
107*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
108*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetFWVer\n");
109*53ee8cc1Swenshuai.xi #endif
110*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GETFWVER_PARAM, spt_DVBT_GETFWVER_PARAM, buffer_arg, sizeof(buffer_arg));
111*53ee8cc1Swenshuai.xi break;
112*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetReg:
113*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
114*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetReg\n");
115*53ee8cc1Swenshuai.xi #endif
116*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GETREG_PARAM, spt_DVBT_GETREG_PARAM, buffer_arg, sizeof(buffer_arg));
117*53ee8cc1Swenshuai.xi break;
118*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetReg:
119*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
120*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetReg\n");
121*53ee8cc1Swenshuai.xi #endif
122*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_SETREG_PARAM, spt_DVBT_SETREG_PARAM, buffer_arg, sizeof(buffer_arg));
123*53ee8cc1Swenshuai.xi break;
124*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetSerialControl:
125*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
126*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetSerialControl\n");
127*53ee8cc1Swenshuai.xi #endif
128*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_SetSerialControl_PARAM, spt_DVBT_SetSerialControl_PARAM, buffer_arg, sizeof(buffer_arg));
129*53ee8cc1Swenshuai.xi break;
130*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetConfigHPLPSetIF:
131*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
132*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetConfigHPLPSetIF\n");
133*53ee8cc1Swenshuai.xi #endif
134*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_SetConfigHPLPSetIF_PARAM, spt_DVBT_SetConfigHPLPSetIF_PARAM, buffer_arg, sizeof(buffer_arg));
135*53ee8cc1Swenshuai.xi break;
136*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetActive:
137*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
138*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetSetActive\n");
139*53ee8cc1Swenshuai.xi #endif
140*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_SetActive_PARAM, spt_DVBT_SetActive_PARAM, buffer_arg, sizeof(buffer_arg));
141*53ee8cc1Swenshuai.xi break;
142*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetLock:
143*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
144*53ee8cc1Swenshuai.xi //printf("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetLock\n");
145*53ee8cc1Swenshuai.xi #endif
146*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetLock_PARAM, spt_DVBT_GetLock_PARAM, buffer_arg, sizeof(buffer_arg));
147*53ee8cc1Swenshuai.xi break;
148*53ee8cc1Swenshuai.xi
149*53ee8cc1Swenshuai.xi /*bryan temp mark*/
150*53ee8cc1Swenshuai.xi #if(0)
151*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetSignalStrengthWithRFPower:
152*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
153*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetSignalStrengthWithRFPower:\n");
154*53ee8cc1Swenshuai.xi #endif
155*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetSignalStrengthWithRFPower_PARAM, spt_DVBT_GetSignalStrengthWithRFPower_PARAM, buffer_arg, sizeof(buffer_arg));
156*53ee8cc1Swenshuai.xi break;
157*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetSignalQualityWithRFPower:
158*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
159*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetSignalQualityWithRFPower:\n");
160*53ee8cc1Swenshuai.xi #endif
161*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetSignalQualityWithRFPower_PARAM, spt_DVBT_GetSignalQualityWithRFPower_PARAM, buffer_arg, sizeof(buffer_arg));
162*53ee8cc1Swenshuai.xi break;
163*53ee8cc1Swenshuai.xi #endif
164*53ee8cc1Swenshuai.xi /* bryan temp mark */
165*53ee8cc1Swenshuai.xi #if(1)
166*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetSNR:
167*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
168*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetSNR:\n");
169*53ee8cc1Swenshuai.xi #endif
170*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetSNR_PARAM, spt_DVBT_GetSNR_PARAM, buffer_arg, sizeof(buffer_arg));
171*53ee8cc1Swenshuai.xi break;
172*53ee8cc1Swenshuai.xi #endif
173*53ee8cc1Swenshuai.xi
174*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetPacketErr:
175*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
176*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetSignalQualityWithRFPower:\n");
177*53ee8cc1Swenshuai.xi #endif
178*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_U16_VAL, spt_DVBT_U16_VAL, buffer_arg, sizeof(buffer_arg));
179*53ee8cc1Swenshuai.xi break;
180*53ee8cc1Swenshuai.xi
181*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetTPSInfo:
182*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
183*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetSignalQualityWithRFPower:\n");
184*53ee8cc1Swenshuai.xi #endif
185*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetTPSInfo_PARAM, spt_DVBT_GetTPSInfo_PARAM, buffer_arg, sizeof(buffer_arg));
186*53ee8cc1Swenshuai.xi break;
187*53ee8cc1Swenshuai.xi
188*53ee8cc1Swenshuai.xi
189*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetCellID:
190*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
191*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetCellID:\n");
192*53ee8cc1Swenshuai.xi #endif
193*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_GetCellID_PARAM, spt_DVBT_GetCellID_PARAM, buffer_arg, sizeof(buffer_arg));
194*53ee8cc1Swenshuai.xi break;
195*53ee8cc1Swenshuai.xi
196*53ee8cc1Swenshuai.xi
197*53ee8cc1Swenshuai.xi /*bryan temp mark*/
198*53ee8cc1Swenshuai.xi #if(0)
199*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetFreqOffset:
200*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
201*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_GetCellID:\n");
202*53ee8cc1Swenshuai.xi #endif
203*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_PDVBT_GetFreqOffset_PARAM, spt_PDVBT_GetFreqOffset_PARAM, buffer_arg, sizeof(buffer_arg));
204*53ee8cc1Swenshuai.xi break;
205*53ee8cc1Swenshuai.xi #endif
206*53ee8cc1Swenshuai.xi
207*53ee8cc1Swenshuai.xi #if(0)
208*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_NORDIGSSITableWrite:
209*53ee8cc1Swenshuai.xi
210*53ee8cc1Swenshuai.xi break;
211*53ee8cc1Swenshuai.xi
212*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_NORDIGSSITableRead:
213*53ee8cc1Swenshuai.xi
214*53ee8cc1Swenshuai.xi break;
215*53ee8cc1Swenshuai.xi #endif
216*53ee8cc1Swenshuai.xi
217*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_SetPowerState:
218*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
219*53ee8cc1Swenshuai.xi printk("kernal mode DVBTIoctl - MDrv_DMD_DVBT_SetPowerState:\n");
220*53ee8cc1Swenshuai.xi #endif
221*53ee8cc1Swenshuai.xi u32Ret =UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs, spt_DVBT_SetPowerState_PARAM, spt_DVBT_SetPowerState_PARAM, buffer_arg, sizeof(buffer_arg));
222*53ee8cc1Swenshuai.xi break;
223*53ee8cc1Swenshuai.xi
224*53ee8cc1Swenshuai.xi //arthur
225*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetPostViterbiBer:
226*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
227*53ee8cc1Swenshuai.xi printf("kernal mode DVBTIoctl - DMD_DVBT_DRV_CMD_GetPostViterbiBer\n");
228*53ee8cc1Swenshuai.xi #endif
229*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs,spt_DVBT_GetPostViterbiBer_PARAM,spt_DVBT_GetPostViterbiBer_PARAM, buffer_arg, sizeof(buffer_arg));
230*53ee8cc1Swenshuai.xi break;
231*53ee8cc1Swenshuai.xi
232*53ee8cc1Swenshuai.xi case DMD_DVBT_DRV_CMD_GetIFAGC:
233*53ee8cc1Swenshuai.xi #ifdef MS_DEBUG
234*53ee8cc1Swenshuai.xi printf("kernal mode DVBTIoctl - DMD_DVBT_DRV_CMD_GetIFAGC\n");
235*53ee8cc1Swenshuai.xi #endif
236*53ee8cc1Swenshuai.xi u32Ret = UADPBypassIoctl(pInstanceTmp, u32Cmd, pArgs,spt_DVBT_GetIFAGC_PARAM,spt_DVBT_GetIFAGC_PARAM, buffer_arg, sizeof(buffer_arg));
237*53ee8cc1Swenshuai.xi break;
238*53ee8cc1Swenshuai.xi
239*53ee8cc1Swenshuai.xi default:
240*53ee8cc1Swenshuai.xi break;
241*53ee8cc1Swenshuai.xi
242*53ee8cc1Swenshuai.xi }
243*53ee8cc1Swenshuai.xi
244*53ee8cc1Swenshuai.xi return u32Ret;
245*53ee8cc1Swenshuai.xi // return UtopiaIoctl(pModuleDDI->pInstant,u32Cmd,arg);
246*53ee8cc1Swenshuai.xi }
247*53ee8cc1Swenshuai.xi
DVBT_adp_Init(FUtopiaIOctl * pIoctl)248*53ee8cc1Swenshuai.xi MS_U32 DVBT_adp_Init(FUtopiaIOctl* pIoctl)
249*53ee8cc1Swenshuai.xi {
250*53ee8cc1Swenshuai.xi
251*53ee8cc1Swenshuai.xi //set table
252*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_DBG_LEVEL_PARAM[0], sizeof(DVBT_SETDBG_LEVEL_PARAM));
253*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_DBG_LEVEL_PARAM[1]);
254*53ee8cc1Swenshuai.xi
255*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_EXIT_PARAM[0],sizeof(DVBT_EXIT_PARAM));
256*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_EXIT_PARAM[1]);
257*53ee8cc1Swenshuai.xi
258*53ee8cc1Swenshuai.xi // UADP_SPT_BGN(&spt_DMD_DVBT_InitData[0], sizeof(DMD_DVBT_InitData_Transform));
259*53ee8cc1Swenshuai.xi // UADP_SPT_FIN(&spt_DMD_DVBT_InitData[1]);
260*53ee8cc1Swenshuai.xi
261*53ee8cc1Swenshuai.xi
262*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_8BYTE_PARAM[0],8);
263*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_8BYTE_PARAM[1]);
264*53ee8cc1Swenshuai.xi
265*53ee8cc1Swenshuai.xi //bryan test
266*53ee8cc1Swenshuai.xi #if(0)
267*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_INIT_PARAM[0], sizeof(DVBT_INIT_PARAM));
268*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_INIT_PARAM[1]); //UADP_SPT_NXT(&spt_DVBT_INIT_PARAM[1], DVBT_INIT_PARAM, pDMD_DVBT_InitData, spt_DMD_DVBT_InitData);
269*53ee8cc1Swenshuai.xi #else
270*53ee8cc1Swenshuai.xi
271*53ee8cc1Swenshuai.xi #if(0)
272*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_INIT_PARAM[0], sizeof(DVBT_INIT_PARAM));
273*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_INIT_PARAM[1], DVBT_INIT_PARAM, DMD_DVBT_InitData, spt_DMD_DVBT_InitData);
274*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_INIT_PARAM[2]); //UADP_SPT_NXT(&spt_DVBT_INIT_PARAM[1], DVBT_INIT_PARAM, pDMD_DVBT_InitData, spt_DMD_DVBT_InitData);
275*53ee8cc1Swenshuai.xi #else
276*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DMD_DVBT_InitData_Transform[0], sizeof(DMD_DVBT_InitData_Transform));
277*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DMD_DVBT_InitData_Transform[1], DMD_DVBT_InitData_Transform, UADP_SDT_P2N, u8DMD_DVBT_DSPRegInitExt, spt_DVBT_8BYTE_PARAM);
278*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DMD_DVBT_InitData_Transform[2], DMD_DVBT_InitData_Transform, UADP_SDT_P2N, u8DMD_DVBT_InitExt, spt_DVBT_8BYTE_PARAM);
279*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DMD_DVBT_InitData_Transform[3]);
280*53ee8cc1Swenshuai.xi
281*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_INIT_PARAM[0], sizeof(DVBT_INIT_PARAM));
282*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_INIT_PARAM[1], DVBT_INIT_PARAM, UADP_SDT_P2N,DMD_DVBT_InitData, spt_DMD_DVBT_InitData_Transform);
283*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_INIT_PARAM[2]); //UADP_SPT_NXT(&spt_DVBT_INIT_PARAM[1], DVBT_INIT_PARAM, pDMD_DVBT_InitData, spt_DMD_DVBT_InitData);
284*53ee8cc1Swenshuai.xi
285*53ee8cc1Swenshuai.xi #endif
286*53ee8cc1Swenshuai.xi
287*53ee8cc1Swenshuai.xi #endif
288*53ee8cc1Swenshuai.xi /*
289*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GETINFO_PARAM[0], sizeof(DVBT_GETINFO_PARAM));
290*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GETINFO_PARAM[1]);
291*53ee8cc1Swenshuai.xi */
292*53ee8cc1Swenshuai.xi
293*53ee8cc1Swenshuai.xi //bryan add
294*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GETLIBVER_PARAM[0], sizeof(DVBT_GETLIBVER_PARAM));
295*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GETLIBVER_PARAM[1], DVBT_GETLIBVER_PARAM, ppVersion, spt_DVBT_MSIF_Version);
296*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GETLIBVER_PARAM[2]);
297*53ee8cc1Swenshuai.xi
298*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GETFWVER_PARAM[0],sizeof(DVBT_GETFWVER_PARAM));
299*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GETFWVER_PARAM[1], DVBT_GETFWVER_PARAM, ver, spt_U16_Val);
300*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GETFWVER_PARAM[2]);
301*53ee8cc1Swenshuai.xi
302*53ee8cc1Swenshuai.xi /*bryam temp mark*/
303*53ee8cc1Swenshuai.xi #if(0)
304*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_PDVBT_GetFreqOffset_PARAM[0], sizeof(DVBT_GetFreqOffset_PARAM));
305*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_PDVBT_GetFreqOffset_PARAM[1], DVBT_GetFreqOffset_PARAM,pFreqOff,spt_DVBT_U16_VAL);
306*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_PDVBT_GetFreqOffset_PARAM[2]);
307*53ee8cc1Swenshuai.xi #endif
308*53ee8cc1Swenshuai.xi
309*53ee8cc1Swenshuai.xi //end of bryan add
310*53ee8cc1Swenshuai.xi
311*53ee8cc1Swenshuai.xi /*bryan temp mark*/
312*53ee8cc1Swenshuai.xi #if(0)
313*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DMD_DVBT_Info[0], sizeof(DMD_DVBT_Info));
314*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DMD_DVBT_Info[1]);
315*53ee8cc1Swenshuai.xi #endif
316*53ee8cc1Swenshuai.xi /*UADP_SPT_BGN(&spt_DVBT_GETINFO_RETURN_PARAM[0], sizeof(DVBT_GETINFO_RETURN_PARAM));
317*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GETINFO_RETURN_PARAM[1], DVBT_GETINFO_RETURN_PARAM, pInfo, spt_DMD_DVBT_Info);
318*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GETINFO_RETURN_PARAM[2]);
319*53ee8cc1Swenshuai.xi */
320*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U8_VAL[0], sizeof(MS_U8));
321*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U8_VAL[1]);
322*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GETREG_PARAM[0], sizeof(DVBT_GETREG_PARAM));
323*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GETREG_PARAM[1], DVBT_GETREG_PARAM, pu8Data, spt_DVBT_U8_VAL);
324*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GETREG_PARAM[2]);
325*53ee8cc1Swenshuai.xi
326*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SETREG_PARAM[0], sizeof(DVBT_SETREG_PARAM));
327*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SETREG_PARAM[1]);
328*53ee8cc1Swenshuai.xi
329*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetSerialControl_PARAM[0], sizeof(DVBT_SetSerialControl_PARAM));
330*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetSerialControl_PARAM[1]);
331*53ee8cc1Swenshuai.xi
332*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetConfig_PARAM[0], sizeof(DVBT_SetConfig_PARAM));
333*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetConfig_PARAM[1]);
334*53ee8cc1Swenshuai.xi
335*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetConfigHPLP_PARAM[0], sizeof(DVBT_SetConfigHPLP_PARAM));
336*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetConfigHPLP_PARAM[1]);
337*53ee8cc1Swenshuai.xi
338*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetConfigHPLPSetIF_PARAM[0], sizeof(DVBT_SetConfigHPLPSetIF_PARAM));
339*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetConfigHPLPSetIF_PARAM[1]);
340*53ee8cc1Swenshuai.xi
341*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetActive_PARAM[0], sizeof(DVBT_SetActive_PARAM));
342*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetActive_PARAM[1]);
343*53ee8cc1Swenshuai.xi
344*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DMD_LOCK_STATUS[0], sizeof(DMD_LOCK_STATUS));
345*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DMD_LOCK_STATUS[1]);
346*53ee8cc1Swenshuai.xi
347*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetLock_PARAM[0], sizeof(DVBT_GetLock_PARAM));
348*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetLock_PARAM[1], DVBT_GetLock_PARAM, eLockStatus, spt_DMD_LOCK_STATUS);
349*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetLock_PARAM[2]);
350*53ee8cc1Swenshuai.xi
351*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
352*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
353*53ee8cc1Swenshuai.xi
354*53ee8cc1Swenshuai.xi /*bryan temp mark*/
355*53ee8cc1Swenshuai.xi #if(0)
356*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetSignalStrength_PARAM[0], sizeof(DVBT_GetSignalStrength_PARAM));
357*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetSignalStrength_PARAM[1], DVBT_GetSignalStrength_PARAM, u16Strength, spt_DVBT_U16_VAL);
358*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetSignalStrength_PARAM[2]);
359*53ee8cc1Swenshuai.xi #endif
360*53ee8cc1Swenshuai.xi
361*53ee8cc1Swenshuai.xi
362*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
363*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
364*53ee8cc1Swenshuai.xi
365*53ee8cc1Swenshuai.xi /*bryan temp mark*/
366*53ee8cc1Swenshuai.xi #if(0)
367*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetSignalStrengthWithRFPower_PARAM[0], sizeof(DVBT_GetSignalStrengthWithRFPower_PARAM));
368*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetSignalStrengthWithRFPower_PARAM[1], DVBT_GetSignalStrengthWithRFPower_PARAM, u16Strength, spt_DVBT_U16_VAL);
369*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetSignalStrengthWithRFPower_PARAM[2]);
370*53ee8cc1Swenshuai.xi #endif
371*53ee8cc1Swenshuai.xi
372*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
373*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
374*53ee8cc1Swenshuai.xi
375*53ee8cc1Swenshuai.xi /*bryan temp mark*/
376*53ee8cc1Swenshuai.xi #if(0)
377*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetSignalQuality_PARAM[0], sizeof(DVBT_GetSignalQuality_PARAM));
378*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetSignalQuality_PARAM[1], DVBT_GetSignalQuality_PARAM, u16Quality, spt_DVBT_U16_VAL);
379*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetSignalQuality_PARAM[2]);
380*53ee8cc1Swenshuai.xi #endif
381*53ee8cc1Swenshuai.xi
382*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
383*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
384*53ee8cc1Swenshuai.xi
385*53ee8cc1Swenshuai.xi /*bryan temp mark*/
386*53ee8cc1Swenshuai.xi #if(0)
387*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetSignalQualityWithRFPower_PARAM[0], sizeof(DVBT_GetSignalQualityWithRFPower_PARAM));
388*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetSignalQualityWithRFPower_PARAM[1], DVBT_GetSignalQualityWithRFPower_PARAM, u16Quality, spt_DVBT_U16_VAL);
389*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetSignalQualityWithRFPower_PARAM[2]);
390*53ee8cc1Swenshuai.xi #endif
391*53ee8cc1Swenshuai.xi
392*53ee8cc1Swenshuai.xi #if 0
393*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_FLOAT_VAL[0], sizeof(float));
394*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_FLOAT_VAL[1]);
395*53ee8cc1Swenshuai.xi #endif
396*53ee8cc1Swenshuai.xi //arthur
397*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetSNR_PARAM[0], sizeof(DVBT_GetSNR_PARAM));
398*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetSNR_PARAM[1], DVBT_GetSNR_PARAM, noise_power_reg, spt_DVBT_U32_VAL);
399*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetSNR_PARAM[2]);
400*53ee8cc1Swenshuai.xi
401*53ee8cc1Swenshuai.xi
402*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
403*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
404*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetPacketErr_PARAM[0], sizeof(DVBT_GetPacketErr_PARAM));
405*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetPacketErr_PARAM[1], DVBT_GetPacketErr_PARAM, pktErr, spt_DVBT_U16_VAL);
406*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetPacketErr_PARAM[2]);
407*53ee8cc1Swenshuai.xi
408*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
409*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
410*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetTPSInfo_PARAM[0], sizeof(DVBT_GetTPSInfo_PARAM));
411*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetTPSInfo_PARAM[1], DVBT_GetTPSInfo_PARAM, u16Info, spt_DVBT_U16_VAL);
412*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetTPSInfo_PARAM[2]);
413*53ee8cc1Swenshuai.xi
414*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_U16_VAL[0], sizeof(MS_U16));
415*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_U16_VAL[1]);
416*53ee8cc1Swenshuai.xi
417*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetCellID_PARAM[0], sizeof(DVBT_GetCellID_PARAM));
418*53ee8cc1Swenshuai.xi UADP_SPT_NXT(&spt_DVBT_GetCellID_PARAM[1], DVBT_GetCellID_PARAM, u16CellID, spt_DVBT_U16_VAL);
419*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetCellID_PARAM[2]);
420*53ee8cc1Swenshuai.xi
421*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_SetPowerState_PARAM[0], sizeof(DVBT_SetPowerState_PARAM));
422*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_SetPowerState_PARAM[1]);
423*53ee8cc1Swenshuai.xi
424*53ee8cc1Swenshuai.xi //arthur
425*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetPostViterbiBer_PARAM[0],sizeof(DVBT_GetPostViterbiBer_PARAM));
426*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetPostViterbiBer_PARAM[1],DVBT_GetPostViterbiBer_PARAM,UADP_SDT_P2N,BitErr_reg,spt_DVBT_U32_VAL);
427*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetPostViterbiBer_PARAM[2],DVBT_GetPostViterbiBer_PARAM,UADP_SDT_P2N,BitErrPeriod_reg,spt_DVBT_U16_VAL);
428*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetPostViterbiBer_PARAM[3],DVBT_GetPostViterbiBer_PARAM,UADP_SDT_P2N,PktErr_reg,spt_DVBT_U16_VAL);
429*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetPostViterbiBer_PARAM[4]);
430*53ee8cc1Swenshuai.xi
431*53ee8cc1Swenshuai.xi UADP_SPT_BGN(&spt_DVBT_GetIFAGC_PARAM[0],sizeof(DVBT_GetIFAGC_PARAM));
432*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetIFAGC_PARAM[1],DVBT_GetIFAGC_PARAM,UADP_SDT_P2N,ifagc_reg,spt_DVBT_U16_VAL);
433*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetIFAGC_PARAM[2],DVBT_GetIFAGC_PARAM,UADP_SDT_P2N,ifagc_reg_lsb,spt_DVBT_U16_VAL);
434*53ee8cc1Swenshuai.xi UADP_SDT_KIND(&spt_DVBT_GetIFAGC_PARAM[3],DVBT_GetIFAGC_PARAM,UADP_SDT_P2N,ifagc_err_reg,spt_DVBT_U16_VAL);
435*53ee8cc1Swenshuai.xi UADP_SPT_FIN(&spt_DVBT_GetIFAGC_PARAM[4]);
436*53ee8cc1Swenshuai.xi
437*53ee8cc1Swenshuai.xi *pIoctl= (FUtopiaIOctl)DVBT_adp_Ioctl;
438*53ee8cc1Swenshuai.xi
439*53ee8cc1Swenshuai.xi return TRUE;
440*53ee8cc1Swenshuai.xi }
441*53ee8cc1Swenshuai.xi
442*53ee8cc1Swenshuai.xi
443*53ee8cc1Swenshuai.xi
444*53ee8cc1Swenshuai.xi
445*53ee8cc1Swenshuai.xi
446*53ee8cc1Swenshuai.xi
447