blob: 275809f36676e2e2383b2854e62bf0e0ed811de4 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/********************************************************************
2* °æÈ¨ËùÓÐ (C)2013, ÉîÛÚÊÐÖÐÐËͨѶ¹É·ÝÓÐÏÞ¹«Ë¾¡£
3*
4* ÎļþÃû³Æ£º phy_w_log_if.h
5* Îļþ±êʶ£º
6* ÄÚÈÝÕªÒª£ºÎïÀí²ã±ê×¼LOGÊä³öµÄ½Ó¿ÚÎļþ
7* ÆäËü˵Ã÷£º
8* µ±Ç°°æ±¾£º
9* ×÷ Õߣº
10* Íê³ÉÈÕÆÚ£º
11*
12* ÐÞ¸ÄÈÕÆÚ °æ±¾ºÅ ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
13* -----------------------------------------------
14* 2015/8/07 V1.0 L1w н¨
15************************************************************************/
16#ifndef PHY_W_LOG_IF_H
17#define PHY_W_LOG_IF_H
18
19/************************************************************************
20 1.Í·Îļþ --Ô­ÔòÉϲ»ÔÊÐíÍ·ÎļþǶÌ×
21*************************************************************************/
22
23
24/************************************************************************
25 2.ºê¶¨Òå
26*************************************************************************/
27/* W phy outlog msg id */
28#define L1W_MAIN_INFO_ID 0x01// --no use
29#define L1W_ACTIVE_CELL_INFO_ID 0x02// --no use
30#define L1W_TPC_PACKET_INFO_ID 0x03 //Add by 20150423 --no use
31#define L1W_UL_POWER_INFO_ID 0x04 //Add by 20150423 --no use
32#define L1W_PC_STATIC_INFO_ID 0x5//0x03//0x5
33#define L1W_RFC_GAP_INFO_ID 0x6//0x04//0x6
34#define L1W_DL_TRCH_INFO_ID 0x8//0x05//0x8
35#define L1W_UL_TRCH_INFO_ID 0x9//0x06//0x9
36#define L1W_DL_CPCH_INFO_ID 0xA//0x07//0xA
37#define L1W_DL_DPCH_INFO_ID 0xB//0x08//0xB
38#define L1W_UL_DPCH_INFO_ID 0xD//0x09//0xD
39#define L1W_PRACH_INFO_ID 0xE//0x0A//0xE
40#define L1W_SYNC_INFO_ID 0xF//0x0B//0xF --no use
41#define L1W_FS_PROC_INFO_ID 0x10//0x0C//0x10 --no use
42#define L1W_CS_STATISTIC_INFO_ID 0x11//0x0D//0x11 --no use
43#define L1W_PAGE_STATISTIC_INFO_ID 0x12//0x0E//0x12 --no use
44#define L1W_SERVE_CELL_RESULT_ID 0x13//0x0F//0x13 --no use
45#define L1W_INTRA_CELL_RESULT_ID 0x14//0x10//0x14 --no use
46#define L1W_INTER_CELL_RESULT_ID 0x15//0x11//0x15 --no use
47#define L1W_BTT_STATISTIC_INFO_ID 0x34//???
48#define L1W_STATISTIC_INFO_ID 0x16//Add by 20150423
49#define L1W_HSDPA_PACKET_INFO_ID 0x17//0x13//0x17
50#define L1W_HSUPA_PACKET_INFO_ID 0x19//0x14//0x19
51#define L1W_HSUPA_STATISTIC_INFO_ID 0x1A//0x15//0x1A
52#define L1W_SLEEP_MIX_INFO_ID 0x1B//0x16//0x1B --no use
53#define L1W_HSDPA_CODING_INFO_ID 0x33//0x17//????
54#define L1W_HSDPA_STATISTIC_INFO 0x18
55
56/************************************************************************
57 3.ÀàÐͶ¨Òå
58*************************************************************************/
59//WÎïÀí²ãÏûÏ¢ÀàÐÍ
60typedef enum
61{
62 E_STANDARD_MSG = 0,
63 E_PRINT_MSG,
64 E_HCI_MSG,
65 E_HOOK_MSG,
66 E_DATA_DUMP,
67 E_OTHER,
68 ENG_TYPE_MAX_NUM,
69}E_EngLogType; /* µ÷ÊÔÐÅÏ¢Êä³öÀàÐÍ */ //ZCat-- WCDMA_MSG_TYPE
70
71
72/* W phy info and statistic info header */
73
74typedef struct
75{
76 WORD16 wHeader; /* µ÷ÊÔÐÅÏ¢Êý¾Ý°üָʾͷ£¬¹Ì¶¨Îª0x69E8 */
77 WORD16 wSfn; /* µ±Ç°SFNºÅ */
78 WORD16 wCfn; /* µ±Ç°CFNºÅ */
79 WORD16 wChip; /* µ±Ç°CHIPºÅ */
80 WORD16 wLogType:8; /* Êä³öLOGÀàÐÍ£¬¼ûEngLogType¶¨Òå*/
81 WORD16 wProcId:8; /* µ±Ç°½ø³ÌID */
82 WORD16 wLen; /* Êä³öµ÷ÊÔÐÅÏ¢µÄ³¤¶È£¬²»°üÀ¨EngLogHeader£¬µ¥Î»×Ö½Ú */
83 WORD16 wSsfnH; /* SSFN¸ß16λ */
84 WORD16 wSsfnL; /* SSFNµÍ16λ */
85}T_EngLogHeader;
86
87typedef enum
88{
89 E_L1W_SWAP_HOOK = 0,
90 E_L1W_SEND_HOOK,
91 E_L1W_TRACE_HOOK,
92}E_L1wHookEventId;
93
94typedef struct
95{
96 WORD16 wHookEventId;
97 WORD16 wCurrentPid;
98 WORD16 wToPid;
99 WORD16 wSenderPid;
100 WORD16 wReceiverPid;
101 WORD16 wSigNo;
102 WORD16 wSfn;
103 WORD16 wChip;
104}T_HookLog;/* HOOK_LOG¼Ç¼ */
105
106typedef struct
107{
108 WORD16 wSigid;
109 WORD16 wPsType:8;
110 WORD16 wPadding:8;
111 WORD32 dGsmSFN;
112 WORD32 dTdSFN;
113 WORD32 dLteSFN;
114 WORD32 dWcdmaSFN;
115 WORD16 wLen;
116 WORD16 wReserved;
117}T_StandardLogHeader;/* ±ê×¼LOGÍ·¶¨Òå */
118
119typedef struct
120{
121 WORD16 wMsgId; /* ±ê×¼LOGµÄÏûÏ¢ID£¬¾ßÌå´ýºóÐø¶¨Òå */
122 WORD16 wMsgLen; /* ±ê×¼LOGµÄ³¤¶È */
123}T_EngStandardMsg; /* ±ê×¼LOGÊä³öµÄÐÅϢͷ *///ZCat--WPHY_EngStandardMsg
124
125typedef struct
126{
127 WORD16 wMsgId; /* ×Ô¶¨Òå´òÓ¡µÄÏûÏ¢ID */
128 WORD16 wPri:8; /* ×Ô¶¨Òå´òÓ¡µÄÓÅÏȼ¶ */
129 WORD16 wParaNum:8; /* ×Ô¶¨Òå´òÓ¡µÄ²ÎÊý¸öÊý */
130}T_EngPrintMsg; /* ×Ô¶¨Òå´òÓ¡µÄÐÅϢͷ *///ZCat--WPHY_EngPrintMsg
131
132typedef struct
133{
134 WORD16 wMsgId; /* W_PHYÓëЭÒéÕ»½Ó¿ÚÏûÏ¢µÄID */
135 WORD16 wMsgLen; /* Êä³ö½Ó¿ÚÏûÏ¢ÄÚÈݵij¤¶È */
136}T_EngHciMsg; /* ÓëЭÒéÕ»½Ó¿ÚÏûÏ¢Êä³öµÄÐÅϢͷ *///ZCat--WPHY_EngHciMsg
137
138typedef struct
139{
140 WORD16 wEventId; /* HOOKÐÅÏ¢µÄʼþID */
141 WORD16 wPara; /* ¶ÔÓÚSWAP_HOOK£¬wParaΪĿ±ê½ø³ÌID£»
142 ¶ÔÓÚSEND_HOOK£¬wParaΪ·¢ËÍÏûÏ¢ID£»
143 ¶ÔÓÚTRACE_HOOK£¬wParaΪµ÷ÊÔ¸ú×ÙÊý¾Ý */
144}T_EngHookMsg; /* HOOKÊä³öµÄÐÅϢͷ *///ZCat--WPHY_EngHookMsg
145
146typedef struct
147{
148 WORD16 wDataType; /* ץȡÊý¾ÝµÄÀàÐÍ£¬¾ßÌå´ýºóÐø¶¨Òå */
149 WORD16 wDataLen; /* ץȡÊý¾ÝµÄ³¤¶È */
150}T_EngDataDump; /* Êý¾ÝץȡLOGµÄÐÅϢͷ *///ZCat--WPHY_EngDataDump
151
152
153//ÒÔÉϼ¸¸ö½á¹¹ÌåÊǹ¤¾ßÐÞ¸ÄÁËÃû³ÆµÄ,Ò²ÐÞ¸ÄÁËÄÚÈÝ£¬ÐèÒª±È¶ÔÒ»ÏÂ
154
155//group1 l1w main info
156typedef struct
157{
158 WORD32 wFirstVerNum:8;
159 WORD32 wSecondVerNum:8;
160 WORD32 wThirdVerNum:8;
161 WORD32 wPathFirstVerNum:4;
162 WORD32 wPathSecondVerNum:4;
163}T_L1wSoftVersion;
164
165typedef struct
166{
167 WORD16 wPeriod; /*500ms*/
168 WORD16 wPadding;
169 WORD32 wResetTimes;
170 WORD32 wIcsTimes;
171 WORD32 wFachTimes;
172 WORD32 wPageTimes;
173 WORD32 wDchTimes;
174 WORD32 wDpaTimes;
175 WORD32 wUpaTimes;
176 WORD32 wSlaveTimes;
177 WORD16 wReserved[8];
178}T_L1wStateCnt;//////LOG_TOOL_WCDMA_STATE_CNT
179
180typedef struct
181{
182 WORD16 wPeriod; /*500ms*/
183 //T_L1wSoftVersion tL1wSoftVersion;
184 WORD32 wStateCount;
185 WORD32 wMeasTimes;
186 WORD32 wDpchConfigTimes;
187 WORD32 wDpchHoTimes;
188 WORD32 wFsTimes;
189 WORD32 wBchTimes;
190 WORD32 wCsTimes;
191 SWORD16 swAfc;
192 WORD16 wPathLoss;
193 WORD16 wUlTadv;
194 WORD32 dDlSync;
195 WORD16 wReserved[8];
196}T_L1MainMixInfo;///////LOG_TOOL_WCDMA_MAIN_INFO
197
198//group2 £ºbasic cell info
199typedef struct
200{
201 WORD32 dEng;
202 WORD32 dPos;
203 WORD32 dFing;
204}T_PathInfo;
205
206typedef struct
207{
208 WORD16 wPeriod; /*500ms*/
209 WORD16 wPadding;
210 WORD32 wRefCell:1;
211 WORD32 wPrimScCode:9;
212 WORD32 wCellTpc:3;
213 WORD32 wCpichDiv:2;
214 WORD32 wScpich:1;
215 WORD32 wSecScCode:4;
216 WORD32 wChanCodeInx:8;
217 WORD32 dAcellPos;
218 WORD16 wReserved[8];
219}T_ActiveCellPara;
220
221typedef struct
222{
223 WORD16 wPeriod; /*500ms*/
224 WORD16 wDlFreq;
225 WORD16 wRlNum;
226 WORD16 wNumPaths;
227 T_ActiveCellPara atSaCellInfo[6];
228 T_PathInfo tPathInfo[8];
229 WORD16 wReserved[8];
230}T_ActiveCellInfo;///////LOG_TOOL_WCDMA_ACTIVE_CELL_INFO
231
232
233//group3 pc info
234typedef struct
235{
236 WORD16 wUlTpcTotal;
237 WORD16 awUlTpcCombiner[6];
238}T_UlTpcInfo;
239
240typedef struct
241{
242 WORD16 wDlTpcTotal;
243 WORD16 awDlTpcCombiner[6];
244}T_DlTpcInfo;
245
246typedef struct
247{
248 WORD16 wPeriod; /*10ms*/
249 WORD16 wNumOfSample;
250 T_UlTpcInfo tUlTpcInfo;
251 T_DlTpcInfo tDlTpcInfo;
252 WORD16 wStartCfn;
253 WORD16 wReserved[15];
254}T_TpcPacketInfo;/////LOG_TOOL_WCDMA_TPC_PACKET_INFO
255
256typedef struct
257{
258 WORD16 wPeriod; /*10ms*/
259 WORD16 wPwr[15];
260 WORD16 wReserved[8];
261}T_UlPwrInfo;/////LOG_TOOL_WCDMA_UL_POWER_INFO
262
263typedef struct
264{
265 WORD16 wPeriod; /*500ms*/
266 WORD16 wReserved[19];
267}T_PcStaticInfo;///////LOG_TOOL_WCDMA_PC_STATIC_INFO
268
269
270//group4 agc info
271typedef struct
272{
273 WORD16 wPeriod; /*10ms*/
274 WORD16 wPhyState;
275 WORD32 dGapRptCnt;
276 WORD16 wRptGapValid;
277 WORD16 wRptGapInfo;
278 WORD32 dGapRecCnt;
279 WORD16 wRecGapValid;
280 WORD16 wRecGapInfo;
281 WORD16 wTxPattern;
282 WORD16 wRxPattern;
283 WORD16 wTxApc;
284 WORD16 wMaxTxPower;
285 WORD16 wPaOn;
286 WORD16 wAgcInfo[15];
287 WORD16 wLnaState;
288 WORD16 wReserved[7];
289}T_RfcGapMixInfo;//////LOG_TOOL_WCDMA_RFC_GAP_INFO
290
291extern T_RfcGapMixInfo g_tRfcGapMixLog; /* RFCºÍGAPµÄ±ê×¼logÐÅÏ¢ */
292
293typedef struct
294{
295 WORD16 wPeriod; /*500ms*/
296 WORD16 wReserved[19];
297}T_RfcStateInfo; //////LOG_TOOL_WCDMA_RFC_STATE_INFO
298
299
300//group5 dl trch info
301typedef struct
302{
303 WORD16 wTrBkSize;
304 WORD16 wNumTrBk;
305 WORD16 wCrc; //modify by 20150423
306 WORD16 wPadding;
307}T_DlTfInfo;
308typedef struct
309{
310 WORD16 wTrchId;
311 WORD16 wTrchType;
312 WORD16 wTti;
313 WORD16 wRmAttr;
314 WORD16 wNumTrFmts;
315 WORD16 wTfInfoBase;
316 T_DlTfInfo atDlTfInfo[8];//modify by 20150423
317 //T_DlTfInfo atDlTfInfo[32];
318 WORD16 wReserved[8];
319}T_DlTrchPara;
320typedef struct
321{
322 WORD16 wCctrchId;
323 WORD16 wNumCctrch;
324 WORD16 wNumTrch;
325 WORD16 wReserved[7];
326 T_DlTrchPara atTrchPara[8];
327}T_DlDpchTrchInfo;///////LOG_TOOL_WCDMA_DL_TRCH_INFO
328
329
330//group6 ul trch info
331typedef struct
332{
333 WORD16 wTrchId;
334 WORD16 wTrchType;
335 WORD16 wCodingTypeOfChannel;
336 WORD16 wTti;
337 WORD16 wCrcLength;
338 WORD16 wBetaC;/*0~15*/
339 WORD16 wBetaD;
340 WORD16 wReserved[7];
341}T_UlTrchPara;
342
343typedef struct
344{
345 WORD16 wNumOfTrch;
346 WORD16 wNumOfTfc;
347 WORD16 wTfci;
348 WORD16 wSpreadingFactor;
349 T_UlTrchPara atTrchPara[8];
350}T_UlDpchTrchInfo;///////////////LOG_TOOL_WCDMA_UL_TRCH_INFO
351
352
353//group7 DL pch
354typedef struct
355{
356 WORD16 wChState;
357 WORD16 wDlChanType;
358 WORD16 wSltFmtSccpch;
359 WORD16 wScCodeIdx;
360 WORD16 wDivMode;
361 WORD16 wCctrchId;
362 WORD16 wTOff;
363 WORD16 wChanCode;
364}T_DlCpchPara;
365typedef struct
366{
367
368 WORD16 wNumPhyCh;
369 //WORD16 wSir; //add by 20150423
370 WORD16 wPadding;
371 //WORD16 wSir;
372 T_DlCpchPara tChPara[8];//modify by 20150423
373 //T_DlCpchPara tChPara;
374 WORD16 wReserved[8];
375}T_DlCpchInfo; ////////////LOG_TOOL_WCDMA_DL_CPCH_INFO
376
377//group8 dl dpch
378typedef struct{
379 WORD16 wChanCode;
380 WORD16 wSecScrambCodeFlg;
381 WORD16 wSecScrambCode;
382 WORD16 wPadding;
383} T_ChannelCode;
384
385typedef struct
386{
387 WORD16 TxDivMode;
388 //WORD16 wChanState; //add by 20150423
389 WORD16 wDpchFrameOffset;
390 WORD16 wPrimSrc;
391 WORD16 wSecCpScrCodeFlg;
392 WORD16 wSecCpichScrambCode;
393 WORD16 wTpcCombIndex;
394 WORD16 wNumOfDpchs;
395 WORD16 wPadding;
396 T_ChannelCode atDlDpchChannelCode[8];
397}T_DlRlPara;
398
399typedef struct
400{
401 //WORD16 wChState; //delete by 20150423
402 WORD16 wNumOfRl;
403 WORD16 wSlotForm;
404 T_DlRlPara atRlParams[6];
405 WORD16 wReserved[8];
406}T_DlDpchInfo;////////////LOG_TOOL_WCDMA_DL_DPCH_INFO
407
408
409//group9 ul dpch
410typedef struct
411{
412 WORD16 wMaxTxPower;
413 WORD16 wDpcchPowerOff;
414 WORD16 wPowerControlAlgorithm;
415 WORD16 wTpcStepSize;
416 WORD16 wInitTxPower;
417 WORD16 wPadding;
418}T_UlDpchPcInfo;///////////////LOG_TOOL_WCDMA_UL_DPCH_PC_INFO
419
420typedef struct
421{
422 WORD16 wPowerPreambleLen;
423 WORD16 wNumOfFbiBits;
424 WORD16 wSlotForm;
425 WORD16 wScrambCodeType;
426 WORD32 dUlScrambCode;
427 WORD16 wSpreadingFactor;//Add by 20150423
428 WORD16 wPunctLimit;
429 WORD16 wTfciFlg;
430 WORD16 wReserved[7];
431}T_UlDpchInfo;////////////LOG_TOOL_WCDMA_UL_DPCH_INFO
432
433//group10 prach
434typedef struct
435{
436 WORD16 wPowMaxTxPower;
437 WORD16 wSignatureBitmap;
438 WORD16 wSubchannelBitmap;
439 WORD16 wMinSpreadingFactor;
440 WORD32 wPrachScrambCode;
441 WORD16 wPunctLimit;
442 WORD16 wTrchId;
443 WORD16 wInitialPowerOff;
444 WORD16 wMsgTti;
445 WORD16 wNumPreamble;
446 WORD16 wAichState;
447 WORD16 wSignPreamble;
448 WORD16 wAccessSlotNo;
449 WORD16 wSfn;
450 WORD16 wAichTransTiming;
451 WORD16 wRFTxPower;
452 WORD16 wAichMissCnt;
453 WORD16 wPrachFailCause;
454 WORD16 wReserved[7];
455}T_PrachInfo;///////////////LOG_TOOL_WCDMA_PRACH_INFO
456
457
458//group11 sync info-tpu\psr\afc
459typedef struct
460{
461 WORD16 reserved[20];
462
463}T_SyncInfo;//////////////////LOG_TOOL_WCDMA_SYNC_INFO
464
465
466
467//group12 fs proc info
468typedef struct
469{
470 WORD16 wFrequency;
471 WORD16 wRssi;
472}T_FsInfo;
473
474typedef struct
475{
476 WORD16 wFsNum;
477 WORD16 wPadding;
478 T_FsInfo atScanResult[32];
479 WORD16 wReserved[6];
480}T_FsResult;//////////////////////////LOG_TOOL_WCDMA_FS_PROC_INFO
481
482
483//group13 csr and bch info
484typedef struct
485{
486 WORD32 wPscFail:1;
487 WORD32 wSscFail:1;
488 WORD32 wMidFail:1;
489 WORD32 wMeasFail:1;
490 WORD32 wBchFail:1;
491 WORD32 wFullScanFail:1;
492 WORD32 wRevered:26;
493}T_CsFailInfo;
494typedef struct
495{
496 WORD16 wPrimSrc;
497 WORD16 wCpichRscp;
498 WORD16 wCpichEcNo;
499}T_CellParams;
500
501typedef struct
502{
503 T_CsFailInfo tCsFailInfo;
504 WORD16 wFrequency;
505 WORD16 wNumOfFoundCells;
506 T_CellParams atCell[8];
507 WORD16 wReserved[8];
508}T_CsStatisticInfo;//////////////LOG_TOOL_WCDMA_CS_STATISTIC_INFO
509
510//group14 pi info
511typedef struct
512{
513 WORD16 wPiValue;
514 WORD16 wPchCrc;
515 WORD16 wPchVlaue;
516 WORD16 wReserved[7];
517}T_PageStatisticInfo;//////////////////LOG_TOOL_WCDMA_PAGE_STATISTIC_INFO
518
519//group15 meas info
520typedef struct
521{
522 WORD16 wPrimSrc;
523 WORD16 wRscp;
524 WORD16 wEcIo;
525 WORD16 wPadding;
526 WORD32 dMaxFingerPos;
527}T_L1wLogCellInfo;
528
529typedef struct
530{
531 WORD16 wFreq;
532 WORD16 wRssi;
533 WORD16 wCellNum;
534 WORD16 wPadding;
535 T_L1wLogCellInfo tCellInfo[32];
536}T_FreqCellInfo;
537
538typedef struct
539{
540 WORD16 wFreq;
541 WORD16 wRssi;
542 WORD16 wCellNum;
543 WORD16 wPadding;
544 T_L1wLogCellInfo tCellInfo[3];
545}T_BlindFreqCellInfo;
546
547typedef struct
548{
549 WORD16 wFreq;
550 WORD16 wPadding;
551 T_L1wLogCellInfo tCellInfo;
552 WORD16 wReserved[8];
553
554}T_SrvCellResult;//////////////////LOG_TOOL_WCDMA_SERVE_CELL_RESULT
555
556typedef struct
557{
558 WORD16 wFreq;
559 WORD16 wRssi;
560 WORD16 wCellNum;
561 WORD16 wPadding;
562 T_L1wLogCellInfo tCellInfo[32];
563 WORD16 wReserved[8];
564}T_IntraCellResult;/////////////////////////////LOG_TOOL_WCDMA_INTRA_CELL_RESULT
565
566typedef struct
567{
568 WORD16 wPeriod; /* 10ms or tti*/
569 WORD16 wPadding;
570 WORD16 wFreqNum;
571 WORD16 wBlindFreqNum;
572 T_FreqCellInfo atInterFreqCellInfo[8];
573 T_BlindFreqCellInfo atBlindFreqCellInfo[16];
574 WORD16 wReserved[8];
575}T_InterCellResult;//////////////////LOG_TOOL_WCDMA_INTER_CELL_RESULT
576
577//group16 fach and dpch crc info
578#if 0
579typedef struct
580{
581 WORD16 wPeriod; /* 10ms or tti*/
582 WORD32 wFachCrcOkCnt;
583 WORD32 wFachErrCnt;
584 WORD16 wFachBler;
585 WORD16 wFachBps;
586 WORD16 wReserved[8];
587}T_DlFachCrcInfo; //////////////LOG_TOOL_WCDMA_DL_FACH_CRC_INFO
588typedef struct
589{
590 WORD16 wPeriod; /* 10ms or tti*/
591 WORD32 wDpchErrCnt;
592 WORD32 wDpchCrcOkCnt;
593 WORD16 wDpchBler;
594 WORD16 wDpchBps;
595 WORD16 wDpchTfci;
596 WORD16 wReserved[8];
597}T_DlDchCrcInfo; /////////////////////LOG_TOOL_WCDMA_DL_DCH_CRC_INFO
598#endif
599
600#define DL_TRCH_NUM_MAX 8
601typedef struct
602{
603 WORD16 wPeriod; /* 10ms or tti*/
604 WORD16 wPadding;
605 WORD32 wTrchErrCnt; /* ´íÎó¿é×ÜÊý */
606 WORD32 wTrchCrcOkCnt; /* ÕýÈ·¿é×ÜÊý */
607 WORD16 wTrchBler; /* µ¥Î»°Ù·ÖÖ®Ò» */
608 WORD16 wTrchBits; //modify by 20150423
609 WORD16 wTrchTfci; /* µ±Ç°TFCI */
610 //WORD32 dTrchBits; /* µ¥Î»K */
611 WORD16 wReserved[7];
612}T_DlTrchInfo;
613
614typedef enum
615{
616 E_NULL = 0,
617 E_PCH,
618 E_FACH,
619 E_DPCH
620}E_DlTrchType;
621
622typedef struct
623{
624 WORD16 wDlTrchType;
625 WORD16 wTrchNum;
626 T_DlTrchInfo tDlTrchInfo[DL_TRCH_NUM_MAX];
627}T_DlRxCodingInfo;
628
629
630typedef struct
631{
632 WORD16 wPeriod; /* 500ms */
633 WORD16 wPadding;
634 WORD32 dHsdschBits; /* HSDSCH Á÷Á¿ */
635 WORD32 dHsscchCrcFalseCnt; /* HSSCCH ´íÎóÊý*/
636 WORD32 dHsscchCrcTrueCnt; /* HSSCCH ÕýÈ·Êý*/
637 WORD32 dHsscchTotalCnt; /* HSSCCH ½ÓÊÕ×ÜÊý*/
638 WORD32 dHsdschQpskCnt; /* HSDSCH QPSK¼ÆÊý */
639 WORD32 dHsdsch16QamCnt; /* HSDSCH 16QAM¼ÆÊý */
640 WORD32 dHsdsch64QamCnt; /* HSDSCH 64QAM¼ÆÊý */
641 WORD32 dHsdschCrcFalseCnt; /* HSDSCH ´íÎóÊý */
642 WORD32 dHsdschCrcTrueCnt; /* HSDSCH ÕýÈ·Êý */
643 WORD32 dHsdschRetransCnt; /* HSDSCH ÖØ´«Êý */
644 WORD32 dHsdschTotalCnt; /* HSDSCH ½ÓÊÕ×ÜÊý */
645 WORD32 dHsdpcchRetransCnt; /* HSDPCCH ÖØ´«Êý */
646 WORD32 dHsdpcchTotalCnt; /* HSDPCCH ·¢ËÍ×ÜÊý */
647 WORD32 dHsdpaRunSsfnCnt; /* ×ÜÔËÐÐÖ¡Êý */
648 //ºóÃæËĸözcatûÓÃ20150423
649 WORD32 dHsscchType1Cnt; /* HSSCCH TYPE1¼ÆÊý, °üÀ¨BCCH HRNTI */
650 WORD32 dHsscchType2Cnt; /* HSSCCH TYPE2¼ÆÊý */
651 WORD32 dHsscchLessCnt; /* HSSCCH LESS¼ÆÊý */
652 WORD32 dHsscchOrderCnt; /* HSSCCH ORDER¼ÆÊý */
653}T_HsdpaCodingInfo;
654
655typedef struct
656{
657 WORD16 bIsDlRxFlg;
658 WORD16 bIsHsdpaFlg;
659 T_DlRxCodingInfo tDlRxCodingInfo;
660 T_HsdpaCodingInfo tHsdpaCodingInfo;
661 WORD16 wReserved[8];
662}T_L1wStatisticInfo; //LOG_TOOL_WCDMA_STATISTIC_INFO
663
664
665//group17 dpa info
666
667typedef struct
668{
669 WORD16 wSir; /* SIR */
670 WORD16 wPow; /* ¹¦ÂÊ */
671 WORD16 wCode; /* ÂëµÀºÅ */
672 WORD16 wPattern; /* ´ò¿ªÊ±Ï¶Í¼Ñù */
673}T_HsdpaDlChInfo;
674
675typedef struct
676{
677 WORD16 wSir; /* SIR */
678 WORD16 wPow; /* ¹¦ÂÊ */
679 WORD16 wCode; /* ÂëµÀºÅ */
680 WORD16 wPattern; /* ´ò¿ªÊ±Ï¶Í¼Ñù */
681 WORD16 wTiming; /* ¶¨Ê± */
682 WORD16 wPadding;
683}T_HsdpaUlChInfo;
684
685
686typedef struct
687{
688 WORD16 wPeriod; /* 10ms */
689 //WORD16 wPadding;
690 WORD16 wHsscchTBSzie[5]; /* HSSCCH Я´øµÄ´«Êä¿é´óС */
691 WORD16 wHsscchParam[5]; /* HSSCCH Я´øµÄ²ÎÊý: harq:4¡¢tbs:6¡¢ms:2¡¢ch num:4 */
692 WORD16 wHsdschParam[5]; /* HSDSCH Я´ø²ÎÊý: tsn */
693 WORD16 wHsdpcchAckCqi[5]; /* HSDPCCH Я´øµÄ²ÎÊý:ack:3¡¢cqi:5¡¢Reserved:8 */
694 WORD16 wHsscchMissCnt; /* HSSCCH MISS¼ÆÊý */
695 WORD16 wHsscchScheCnt; /* HSSCCH µ÷¶È¼ÆÊý */
696 WORD16 wHsdschCrcPassCnt; /* HSDSCH ÕûÌåÊý¾ÝÕýÈ·¼ÆÊý */
697 WORD16 wHsdschCrcFailCnt; /* HSDSCH ÕûÌåÊý¾Ý´íÎó¼ÆÊý */
698 WORD16 wHsdschNdCrcPassCnt; /* HSDSCH ÐÂÊý¾ÝÕýÈ·¼ÆÊý */
699 WORD16 wHsdschNdCrcFailCnt; /* HSDSCH ÐÂÊý¾Ý´íÎó¼ÆÊý */
700 WORD16 wHsdpcchRetransCnt; /* HSDPCCH ÖØ´«¼ÆÊý */
701 WORD32 dHsdschBits; /* HSDSCH Á÷Á¿ */
702 T_HsdpaDlChInfo atHsscchChInfo[4]; /* HSSCCH ÐÅÏ¢ */
703 T_HsdpaDlChInfo atHsdschChInfo[15]; /* HSDSCH ÐÅÏ¢ */
704 T_HsdpaUlChInfo tHsdpcchChInfo; /* HSDPCCH ÐÅÏ¢ */
705 WORD16 wReserved[8];
706}T_HsdpaPacketInfo; //////////////////LOG_TOOL_WCDMA_HSDPA_PACKET_INFO
707
708#if 0 //zcatÔÚʹÓà 20150423
709typedef struct
710{
711 WORD16 wPeriod; /* 500ms*/
712 WORD16 wHsscchSchedRate; /* Hsscch µ÷¶ÈÂÊ */
713 WORD16 wHsscchMissRate; /* Hsscch missÂÊ */
714 WORD16 wHsdschErrRate; /* Hsdsch ´íÎóÂÊ */
715 WORD16 wHsdschRetransRate; /* Hsdsch ÖØ´«ÂÊ */
716 WORD16 wHsdpcchRetransRate; /* Hsdpcch ÖØ´«ÂÊ */
717 WORD32 wHsdschBps; /* Hsdsch Á÷Á¿ */
718 WORD16 wReserved[8];
719}T_DevHsdpaStatisticInfo; //////////////LOG_TOOL_WCDMA_HSDPA_STATISTIC_INFO
720#endif
721
722//group 18 upa info
723
724typedef struct
725{
726 WORD16 wValue;
727 WORD16 wScope;
728 WORD16 wPrimRnti;
729 WORD16 wPadding;
730}T_AgResult;
731
732typedef struct
733{
734 WORD16 wRgOffsetSlot;
735 WORD16 wHiOffsetSlot;
736 WORD16 wChanCode;
737 WORD16 wPadding;
738}T_HsupaRgHiChan;
739typedef struct
740{
741 WORD16 wEagchChanCode;
742 WORD16 wPadding;
743 T_HsupaRgHiChan atRgHiChanInfo[4];
744}T_HsupaDlChan;
745
746typedef struct
747{
748 WORD16 wEdchTti;
749 WORD16 wSf;
750 WORD16 wL;
751 WORD16 wBetaEc;
752 WORD16 wBetaEd[4];
753}T_HsupaUlChan;
754
755typedef struct
756{
757 WORD16 wPeriod;/* 10ms*/
758 WORD16 wPadding;
759 WORD16 wNumOfEdchRl;
760 WORD16 wEdchServRlIdx;
761 WORD16 awEdchCellPrimSrc[4];
762 T_AgResult tAgResult;
763 WORD32 dAgCrcOkNum;
764 WORD32 dRgResult;
765 WORD32 dEdchSentNum;
766 WORD32 dHiAckNum;
767 WORD32 dHiNackNum;
768 T_HsupaDlChan tDlChanInfo;
769 T_HsupaUlChan tEdchInfo;
770 WORD16 wReserved[8];
771}T_HsupaPacketInfo;////////////////////////LOG_TOOL_WCDMA_HSUPA_PACKET_INFO
772
773typedef struct
774{
775 WORD16 wPeriod; /* 500ms*/
776 WORD16 wPadding;
777 WORD16 wAgchSchedRate;
778 WORD16 wAgchMissRate;
779 WORD16 wEdchNewDateBps;
780 WORD16 wEdchDataBps;
781 WORD16 wReserved[8];
782}T_HsupaStatisitcInfo;////////////////LOG_TOOL_WCDMA_HSUPA_STATISTIC_INFO
783
784//group19 sleep info
785typedef struct
786{
787 WORD16 wPeriod; /* 5s*/
788 WORD16 wPadding;
789 WORD16 wPhyState;
790 WORD16 wSleepRatio;
791 WORD32 dSleepStartSsfn;
792 WORD32 dSleepWakeSsfn;
793 WORD32 dSleepCnt;
794}T_SleepMixInfo;/////////////////////LOG_TOOL_WCDMA_SLEEP_MIX_INFO
795
796
797/************************************************************************
798 4.º¯Êý¼°±äÁ¿ÉùÃ÷
799*************************************************************************/
800
801
802#endif /* PHY_W_LOG_IF_H */
803
804