亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? le1vedebug.c

?? Zalink50114----TDMoIP芯片驅動源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* le1veIsr.c - LE1VE (TDMoIP) debug routine  file
*
* Copyright     2004-2007 ZTE, Inc.
* author:       ZhengQishan
* date:         2004.03
*
* modification history
*------------------------------
*
*/
#include "le1veLib.h"
#include "zl5011x.h"
#include "zl5011xApi.h"
#include "zl5011xPkcMap.h"
#include "zl5011xPkiMap.h"
#include "zl5011xTfqMap.h"
#include "zl5011xTmMap.h"
#include "zl5011xTdm.h"
#include "zl5011xGmMap.h"
#include "zl5011xTfq.h"
#include "zl5011xRdWr.h"
#include "zl5011xLan.h"
#include "zl5011xCet.h"
#include "zl5011xPrintError.h"

#ifdef DEBUG_DRV_RCV_SND

#ifdef printf
#undef printf
#endif
extern zl5011xParamsS *le1ve_Zl5011xParams[];

extern void ZL5011X_REG_READ(int slot, UINT32 reg, volatile UINT32 *value);
extern zlStatusE zl5011xAdmGetDeviceId(zl5011xParamsS *zl5011xParams, Uint32T *chipId, Uint32T *version);
extern zlStatusE zl5011xPkiReadCounters(zl5011xParamsS *zl5011xParams,Uint8T  portNum);
extern zlStatusE zl5011xDebugContextRx(zl5011xParamsS *zl5011xParams, Uint32T start, Uint32T end);
extern zlStatusE zl5011xDebugContextRxChans(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugContextTx(zl5011xParamsS *zl5011xParams, Uint32T start, Uint32T end);
extern zlStatusE zl5011xDebugContextTxChans(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugContextTxRates(zl5011xParamsS *zl5011xParams, Uint32T start, Uint32T end);
extern zlStatusE zl5011xDebugContextTxQueue(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugTxClockSource(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugDpllStatus(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugPkcStats(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugResetPkcStats(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugPkiStats(zl5011xParamsS *zl5011xParams, Uint32T portNum);
extern zlStatusE zl5011xDebugResetPkiStats(zl5011xParamsS *zl5011xParams, Uint32T portNum);
extern zlStatusE zl5011xDebugPkcRates(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugPkiRates(zl5011xParamsS *zl5011xParams, Uint32T portNum);
extern zlStatusE zl5011xDebugRtpStats(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugPwStats(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugPkcConfig(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugPacketSniffCapture(zl5011xParamsS *zl5011xParams, Uint32T context, Uint32T *buf, Uint32T *length);
extern zlStatusE zl5011xDebugPacketSniff(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugPacketTxHeader(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugScanTmMsg(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugGranuleInfo(zl5011xParamsS *zl5011xParams);
extern zlStatusE zl5011xDebugDisplayContextStats(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugResetContextStats(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE zl5011xDebugDisplayGlobalStats(zl5011xParamsS *zl5011xParams, Uint32T portNum);
extern zlStatusE zl5011xDebugResetGlobalStats(zl5011xParamsS *zl5011xParams, Uint32T portNum);
extern zlStatusE zl5011xDebugDisplayClockInfo(zl5011xParamsS *zl5011xParams, Uint32T context);
extern zlStatusE le1veDignoseClockInfo(UINT32 slot, char * buff);
#define ZL50114_DEVICE_ID        (Uint32T)0x61e10a5


LOCAL STATUS checkCardType(int slot)
{
    UINT32 deviceId,revisionId;

    if ((slot < 1) || (slot > 8))
        return ERROR;
    
    if (le1ve_Zl5011xParams[slot - 1] != NULL)
    {
        zl5011xAdmGetDeviceId(le1ve_Zl5011xParams[slot - 1],
              (Uint32T *)&deviceId, (Uint32T *)&revisionId);
        if (deviceId == ZL50114_DEVICE_ID)
            return (OK);
        else
            return (ERROR);
    }
    else
       return (ERROR);
}

UINT32 debug_zl5011xRegRead(int slot, int reg)
{
	UINT32 value;

	ZL5011X_REG_READ(slot, reg, &value);
	return(value);
}

void showPkcStt(int slot)
{
 	if (ERROR == checkCardType(slot))
		return ;

    printf("         Temp1    Temp2    Temp3    Temp4    Temp5    Temp6    Temp7    Temp8   \n");
    printf("Eth Type:%-8d %-8d %-8d %-8d %-8d %-8d %-8d %-8d\n",
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x4),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x8),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x0c),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x10),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x14),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x18),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_ETHERTYPE_COUNT + 0x1c));
    printf("MAC Matc:%-8d %-8d %-8d %-8d %-8d %-8d %-8d %-8d\n",
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x4),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x8),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x0c),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x10),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x14),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x18),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_FILTER_MAC_ADDRESS_COUNT + 0x1c));
    printf("Pre_clas:%-8d %-8d %-8d %-8d %-8d %-8d %-8d %-8d\n\n",
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x4),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x8),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x0c),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x10),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x14),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x18),
    	  debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_COUNT + 0x1c));
    printf("Pre_classifier No-match Counter:  %-8d\n",debug_zl5011xRegRead(slot, ZL5011X_PKC_PROTOCOL_NO_MATCH_COUNT));
    printf("IP Checksum Failure Counter:      %-8d\n",debug_zl5011xRegRead(slot, ZL5011X_PKC_IPV4_CHECKSUM_COUNT));
    printf("UDP Checksum Failure Counter:     %-8d\n",debug_zl5011xRegRead(slot, ZL5011X_PKC_UDP_CHECKSUM_COUNT));
    printf("Classify No-Match Counter:        %-8d\n",debug_zl5011xRegRead(slot, ZL5011X_PKC_CLASSIFY_NO_MATCH_COUNT));
    printf("Post Verifier Failure Counter:    %-8d\n",debug_zl5011xRegRead(slot, ZL5011X_PKC_VERIFY_FAIL_COUNT));
}



void showLanStt(int slot, int port, int mode)
{
    UINT32 pkiAddress, regValue;
    zl5011xParamsS *pZl5011xParam;
    zl5011xMacStatsS *pMacStats;        /* pointers to avoid typing */

 	if (ERROR == checkCardType(slot))
		return;
    if (port < 1 || port > 2)
    {
        printf("Error argument!\n");
        return;
    }
    pZl5011xParam = le1ve_Zl5011xParams[slot - 1];
    zl5011xPkiReadCounters(pZl5011xParam, port - 1);
    pMacStats=  &(pZl5011xParam->pki.lanPort[port - 1].macStats);

    printf("Early Collisions frames:            %-ld\n", pMacStats->collision.lo   );
    printf("Late  Collisions frames:            %-ld\n",  pMacStats->lateCollision.lo);
    printf("Number of packets filtered:         %-ld\n", pMacStats->filter.lo);
    printf("Dropped frames:                     %-ld\n", pMacStats->dropEvent.lo);
    printf("Number of frames Short Event:       %-ld\n", pMacStats->shortEvent.lo);
    printf("Number of frames with CRC errors:   %-ld\n", pMacStats->crc.lo);
    printf("Number of frames with bad alignment:%-ld\n", pMacStats->alignmentError.lo);
    printf("Number of TW3:                      %-ld\n", pMacStats->jabber.lo);
    printf("Number of frames with bad FCS:      %-ld\n", pMacStats->fragment.lo);
    printf("Undersize frames:                   %-ld\n", pMacStats->undersize.lo);
    printf("Over size frames:                   %-ld\n", pMacStats->oversize.lo);
    printf("Frame with length of 64 bytes:      %-ld\n", pMacStats->pkts64Octets.lo);
    printf("Frame with length in range 65-127 bytes:  %-ld\n", pMacStats->pkts65To127Octets.lo);
    printf("Frame with length in range 128-255 bytes:  %-ld\n", pMacStats->pkts128To255Octets.lo);
    printf("Frame with length in range 256-511 bytes:  %-ld\n", pMacStats->pkts256To511Octets.lo);
    printf("Frame with length in range 512-1023 bytes:  %-ld\n", pMacStats->pkts512To1023Octets.lo);
    printf("Frame with length in range 1024-1518 bytes:  %-ld\n", pMacStats->pkts1024To1518Octets.lo);
    printf("Broadcast frames received:          %-ld\n", pMacStats->broadcastPktsReceived.lo);
    printf("Multicast frames received:          %-ld\n", pMacStats->multicastPktsReceived.lo);
    printf("Good frames received:               %-ld\n", pMacStats->goodPktsReceived.lo);
    printf("Good bytes received:                %-ld\n", pMacStats->goodOctetsReceived.lo);
    printf("Total frames received:              %-ld\n", pMacStats->totalPktsReceived.lo);
    printf("Total bytes received:               %-ld\n", pMacStats->totalOctetsReceived.lo);
    printf("Total non-Unicast frames sent:      %-ld\n", pMacStats->nUcastPktsSent.lo);
    printf("Total Unicast frames sent:          %-ld\n", pMacStats->ucastPktsSent.lo);
    printf("Flow control frames sent:           %-ld\n", pMacStats->flowControlSent.lo);
    printf("Number of sent packets that failed: %-ld\n", pMacStats->pktSentFail.lo);
    printf("Total bytes sent:                   %-ld\n", pMacStats->totalOctetsSent.lo);

    if (mode == 1)  /*read and clear to zero*/
    {
          pkiAddress = ZL5011X_PKI0_CTRL+ ((port - 1) * sizeof( Uint32T));

          zl5011xRead(pZl5011xParam, pkiAddress, (Uint32T *)&regValue);
          zl5011xWrite(pZl5011xParam, pkiAddress, regValue | (ZL5011X_1BIT_MASK << ZL5011X_PKI_CTRL_REG_STA_RESET));
          zl5011xWrite(pZl5011xParam, pkiAddress, regValue &( ~(ZL5011X_1BIT_MASK << ZL5011X_PKI_CTRL_REG_STA_RESET)));
    }
    
}

void showGmStt(int slot)
{
 	if (ERROR == checkCardType(slot))
		return;

    printf("starting address of the first(head) granule: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_GRANULE_HEAD));
    printf("starting address of the last(tail) granule:  %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_GRANULE_TAIL));
    printf("number of free granules:                     %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_GRANULE_COUNT));
    printf("threshold for free granule counter:          %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_GRANULE_THRESHOLD));

    printf("Total granules granted by GM:     %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x1c));
    printf("Total granules released to GM:    %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x20));
    printf("Granules granted to PLA by GM:    %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x100));
    printf("granules granted to PRX by GM:    %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x104));
    printf("granules granted to CPU by GM:    %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x108));
    printf("granules granted to PE  by GM:    %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x10c));
    printf("granules released from PLA to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x110));
    printf("granules released from TFM to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x114));
    printf("granules released from TFQ to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x118));
    printf("granules released from PTX to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x11c));
    printf("granules released from PKQ to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x120));
    printf("granules released from PKC to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x124));
    printf("granules released from CPU to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x128));
    printf("granules released from PE  to GM: %d\n", debug_zl5011xRegRead(slot,ZL5011X_GM_BASE + 0x12c));
}

void showTfqStt (int slot, int context)
{
    zl5011xParamsS *pZl5011xParam;
    zl5011xTfqStatsS TfqStats;        /* pointers to avoid typing */

 	if (ERROR == checkCardType(slot))
		return;
    pZl5011xParam = le1ve_Zl5011xParams[slot - 1];

    zl5011xTfqGetStats(pZl5011xParam, context,&TfqStats);
    printf("minLen   maxLen   avgLen   latePack earlyPack underruns\n");
    printf("%-8ld %-8ld %-8ld %-8ld %-8ld  %-8ld\n", TfqStats.minLength,
        TfqStats.maxLength, TfqStats.avgLength, TfqStats.latePackets,
        TfqStats.earlyPackets, TfqStats.underruns);
}
zlStatusE le1veDebugContextRx(UINT32 slot, Uint32T start, Uint32T end)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色在线| 国产亚洲精品bt天堂精选| 久久99久久精品| 亚洲猫色日本管| www国产亚洲精品久久麻豆| 91成人网在线| 成人国产一区二区三区精品| 亚洲成人一区在线| 中文字幕亚洲综合久久菠萝蜜| 91 com成人网| 色综合久久中文字幕| 懂色av一区二区在线播放| 日本不卡视频一二三区| 亚洲精品videosex极品| 国产精品久久777777| 久久夜色精品国产欧美乱极品| 91精品视频网| 欧美性生活大片视频| 色域天天综合网| 成人ar影院免费观看视频| 九九在线精品视频| 肉色丝袜一区二区| 无码av中文一区二区三区桃花岛| 亚洲欧洲av色图| 国产精品午夜电影| 欧美激情一区二区| 国产片一区二区三区| 久久综合色婷婷| 精品久久久网站| 日韩欧美在线综合网| 欧美一级高清片在线观看| 欧美日韩视频在线一区二区| 日本高清无吗v一区| 99免费精品在线观看| bt欧美亚洲午夜电影天堂| 成人一区在线观看| 成人少妇影院yyyy| 成人app在线| 色天天综合久久久久综合片| 一本一道波多野结衣一区二区| 成人av免费观看| 99re在线精品| 色哟哟精品一区| 欧美伊人精品成人久久综合97 | 中文子幕无线码一区tr| www一区二区| wwwwxxxxx欧美| 国产欧美一区二区精品性色超碰| 日本一区二区视频在线| 国产欧美日产一区| 国产精品久久二区二区| 亚洲女同一区二区| 一区二区三区电影在线播| 一区二区激情小说| 首页国产欧美久久| 麻豆高清免费国产一区| 狠狠色综合日日| 成人精品免费视频| 色婷婷久久一区二区三区麻豆| 色综合久久九月婷婷色综合| 欧美在线不卡视频| 欧美日韩激情一区二区三区| 欧美三级视频在线播放| 欧美成人一区二区三区片免费| 久久久精品tv| 亚洲伦理在线免费看| 午夜久久久久久久久| 蜜桃一区二区三区在线| 夫妻av一区二区| 欧美日韩国产另类不卡| 26uuu色噜噜精品一区二区| 国产精品美女久久久久久久久久久 | 欧美日韩免费视频| 精品国产乱码久久久久久图片| 中文一区二区完整视频在线观看| 亚洲人成人一区二区在线观看| 五月激情综合网| 成熟亚洲日本毛茸茸凸凹| 色哟哟日韩精品| 精品蜜桃在线看| 国产精品蜜臀在线观看| 日韩福利视频网| 白白色 亚洲乱淫| 制服.丝袜.亚洲.中文.综合| 2023国产精华国产精品| 最近中文字幕一区二区三区| 水蜜桃久久夜色精品一区的特点| 国产一区二区三区精品视频| 日本乱人伦aⅴ精品| 日韩欧美国产综合在线一区二区三区| 日本一区二区三区视频视频| 亚洲国产毛片aaaaa无费看| 韩国女主播一区二区三区| 色婷婷综合久久久中文字幕| 欧美xxxxxxxx| 亚洲一卡二卡三卡四卡| 高清国产一区二区三区| 欧美福利一区二区| 最新成人av在线| 国产精品一区二区不卡| 欧美精品一二三四| 亚洲天堂中文字幕| 国产专区综合网| 欧美一区二区三区在线观看视频| 国产精品国产三级国产专播品爱网| 日韩福利视频网| 欧美三级三级三级| 亚洲视频香蕉人妖| 国产成人在线视频播放| 日韩精品一区二区三区视频在线观看| 一区二区三区在线视频免费 | 91超碰这里只有精品国产| 国产精品久久影院| 国产一区日韩二区欧美三区| 欧美日韩亚洲不卡| 亚洲一区影音先锋| 91丨porny丨国产入口| 国产偷v国产偷v亚洲高清| 美国毛片一区二区| 91精品国产一区二区三区香蕉 | 国产精品久久久久久久午夜片| 精东粉嫩av免费一区二区三区| 欧美群妇大交群中文字幕| 亚洲精品中文字幕乱码三区| av激情综合网| 亚洲欧美一区二区三区国产精品| 懂色中文一区二区在线播放| 久久综合一区二区| 国产制服丝袜一区| 2022国产精品视频| 国产综合色产在线精品| 精品久久免费看| 国产美女在线精品| 国产日产欧产精品推荐色| 国内精品不卡在线| 国产婷婷色一区二区三区在线| 韩国v欧美v亚洲v日本v| 久久久久国产免费免费| 国产盗摄一区二区| 国产精品女上位| 9久草视频在线视频精品| 17c精品麻豆一区二区免费| 成人免费高清视频在线观看| 国产精品视频第一区| 99热99精品| 亚洲图片一区二区| 欧美久久高跟鞋激| 奇米亚洲午夜久久精品| 欧美一区二区网站| 国内精品在线播放| 国产精品久久久久精k8| 色婷婷激情综合| 亚洲18女电影在线观看| 欧美一区二区三区免费视频 | 日本一区二区三区久久久久久久久不 | 日日噜噜夜夜狠狠视频欧美人| 欧美精品丝袜中出| 蜜臀av性久久久久蜜臀av麻豆 | 精品久久人人做人人爰| 国产精品一区二区在线播放| 国产精品毛片a∨一区二区三区| 99视频在线观看一区三区| 亚洲影院在线观看| 日韩免费看网站| 岛国av在线一区| 亚洲国产一区二区三区| 精品少妇一区二区三区免费观看| 久久99久久久久| 中文字幕av在线一区二区三区| 色综合天天在线| 日韩精品1区2区3区| 久久久久久久久岛国免费| av激情综合网| 久久国产剧场电影| 亚洲欧洲在线观看av| 538在线一区二区精品国产| 国产乱子伦一区二区三区国色天香| 国产精品嫩草99a| 在线91免费看| 不卡一区二区在线| 日韩精品成人一区二区在线| 国产日韩av一区二区| 欧美三级在线播放| 成人一级视频在线观看| 日韩成人精品在线| 中文字幕一区二区5566日韩| 日韩一区二区三区av| av网站免费线看精品| 蜜臂av日日欢夜夜爽一区| 国产精品欧美一区喷水| 欧美福利电影网| 99久久国产免费看| 免费在线成人网| 亚洲精品自拍动漫在线| 久久久一区二区| 91精品国产福利| 91黄色激情网站| 成人激情av网| 国产一区二区伦理| 亚洲电影在线免费观看|