⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bdwtests.h

📁 开发Inetl IXP2400平台所必须的硬件诊断和测试程序。该软件包支持的功能包括CPU基本功能检测
💻 H
字号:
/*
*---------------------------------------------------------------------------
*                                                                      
*                  I N T E L   P R O P R I E T A R Y                   
*                                                                      
*     COPYRIGHT (c)  2001 BY  INTEL  CORPORATION.  ALL RIGHTS          
*     RESERVED.   NO  PART  OF THIS PROGRAM  OR  PUBLICATION  MAY      
*     BE  REPRODUCED,   TRANSMITTED,   TRANSCRIBED,   STORED  IN  A    
*     RETRIEVAL SYSTEM, OR TRANSLATED INTO ANY LANGUAGE OR COMPUTER    
*     LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC, MECHANICAL,    
*     MAGNETIC,  OPTICAL,  CHEMICAL, MANUAL, OR OTHERWISE,  WITHOUT    
*     THE PRIOR WRITTEN PERMISSION OF :                                
*                                                                      
*                        INTEL  CORPORATION                            
*                                                                     
*                     2200 MISSION COLLEGE BLVD                        
*                                                                      
*               SANTA  CLARA,  CALIFORNIA  95052-8119                  
*                                                                      
*---------------------------------------------------------------------------
*/ 

#ifndef __BDWTESTS_H_ 
#define __BDWTESTS_H_

/******************************************************************
* Function : BdwLoopbackTest
*-----------------------------------------------------------------
* Description  : This routine performs the media plus NPU loopback
*                test.
*-----------------------------------------------------------------
* Inputs  : pChipData : Valid chip handle pointer.
*           loopBackMode : Specifies either INTERNAL or EXTERNAL
*           payLoadType : Specifies the SONET payload type.
*           cfg : Specifies the Utopia configuration.
*           chanNum : Specifies the channel number
*           loops : Specifices the number of loops to iterate thru.
* Outputs : None.
*-----------------------------------------------------------------
* Returns : Status
*-----------------------------------------------------------------
* Access Globals : eduCommon structure
*-----------------------------------------------------------------
* Comments : None.
******************************************************************/
extern BDW_Status_t
BdwLoopbackTest(bb_ChipData_t *pChipData, LoopBackMode_t loopbackmode,
                PayloadTypes_t payloadtype, Utopia_Cnfg_t cfg,
                int chanNum, int loops);

/******************************************************************
* Function : BdwPRBSLoopbackTest
*-----------------------------------------------------------------
* Description  : This routine performs a media loopback test by
*                generating a PRBS test pattern and then analyzing
*                the pattern.
*-----------------------------------------------------------------
* Inputs  : pChipData : Valid chip handle pointer.
*           chanNum : Specifies the channel number.
*           mode : Specifies INTERNAL or EXTERNAL loopback
*           timeOut : Time in seconds to perform the test.
* Outputs : None.
*-----------------------------------------------------------------
* Returns : Status
*-----------------------------------------------------------------
* Access Globals : eduCommon structure
*-----------------------------------------------------------------
* Comments : None.
******************************************************************/
extern BDW_Status_t 
BdwPRBSLoopbackTest(bb_ChipData_t *pChipData, int chanNum,
                    LoopBackMode_t mode, int timeOut);

/******************************************************************
* Function : BdwRegisterAccessTest
*-----------------------------------------------------------------
* Description  : This routine performs a read and write test on
*                device to make sure the basics are working.
*-----------------------------------------------------------------
* Inputs  : pChipData : Valid chip handle pointer.
* Outputs : None.
*-----------------------------------------------------------------
* Returns : Status
*-----------------------------------------------------------------
* Access Globals : eduCommon structure
*-----------------------------------------------------------------
* Comments : None.
******************************************************************/
extern BDW_Status_t 
BdwRegisterAccessTest(bb_ChipData_t *pChipData);

/******************************************************************
* Function : BdwUnit_Test
*-----------------------------------------------------------------
* Description  : This routine calls the specific unit test given
*                the parsed command line instruction
*-----------------------------------------------------------------
* Inputs  : None.
* Outputs : None.
*-----------------------------------------------------------------
* Returns : None.
*-----------------------------------------------------------------
* Access Globals : eduCommon structure.
*-----------------------------------------------------------------
* Comments : None.
******************************************************************/
extern void 
BdwUnit_Test(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -