readme.txt

来自「国内还比较新的network processor的微代码开发」· 文本 代码 · 共 66 行

TXT
66
字号
//------------------------------------------------------------------------------------
//                                                                      
//                   I N T E L   P R O P R I E T A R Y                   
//                                                                       
//      COPYRIGHT (c)  1998-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                  
//                                                                       
//------------------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////////////////
//
//
//      File Name: readme.txt
//
//      Description: This simple microcode example illustrates the sample usage for 
//		CAM Sharing APIs.
//
//      History:
//
//
//      Date            Comment                         By
//      ---------------------------------------------------------------------
//
//      11/05/2003      Created                         Minal Patel
//
//
//////////////////////////////////////////////////////////////////////////////////////

DIRECTORY STRUCTURE
-------------------
	main.uc 	- main file explaining the CAM sharing API usage.
	dl_system.h	- application specific header file.

 
INTRODUCTION
------------
	This simple microcode example code illustrates the usage of CAM sharing APIs.
	This APIs can be used for both original LRU implementation (when CAM is not 
	shared) and when the CAM is shared. Refer the actual APIs to get more details.

HOW TO RUN THE CODE AND VERIFY THE RESULT
-----------------------------------------
	Open the 'cam_sharing_xxxx.dwp' project using the workbench. 

	Build and start debugging.

	Verify the following
	0) set a break point where cam lookup is done (in ixp_cam_lookup() )
	1) set a break point where cam entry is freed (in ixp_cam_exit_using_entry() )
	2) the ref_cnt (of cam entry 8, ie first 4 bits) in @ixp_cam_ref_cnt2 is 
	   incrementing for every cam_lookup.
	3) the ixp_cam_bit_vector shows 0xfeff when cam entry is being used
	4) the ixp_cam_bit_vector shows 0xffff when cam is free (ie ref_cnt is zero)

---
End of readme.txt

⌨️ 快捷键说明

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