www.pudn.com > drivers.rar > dma_test_misc.c


/** 
 * @file	dma_test_misc.c 
 * 
 * Generic file holding xxx_test_misc function. Makes it possible 
 * to create more than one misc test for 3rd parties. 
 * 
 * @author	    Texas Instruments Incorporated 
 * @version 	0.1 
 */ 
 
/* 
 * History: 
 * 
 *	Date       	Author					Modification 
 *	------------------------------------------------------------------- 
 *	5/30/2003						Create. 
 * 
 * (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved 
 */ 
 
#include "dma/tests/dma_test_misc.h" 
 
#include "dma/tests/dma_test_misc0.h" 
#include "dma/tests/dma_test_misc1.h" 
#include "dma/tests/dma_test_misc2.h" 
 
/** 
 * Main function multiplexing the different misc tests to process. 
 * Function is being called from rv_test_misc.c file inside Riviera. 
 * 
 * Function description 
 * 
 * @param	Test_number					Number of the test to process. 
 * @return	Result of the test. 
 */ 
T_RV_MISC_RET dma_test_misc(T_RV_MISC_TEST_NBR test_number) 
{  
	T_RV_TEST_RET test_verdict; 
 
	if (test_number < TEST_NUMBER_LIMIT0)  
	{  
  	/* Tests developped by TI */  
    test_verdict = dma_test_misc0(test_number);  
	}  
 
	else if (test_number < TEST_NUMBER_LIMIT1)  
	{  
  	/* Tests developped by Silicomp */  
    test_verdict = dma_test_misc1(test_number);  
	}  
 
	else if (test_number >= TEST_NUMBER_LIMIT1)  
	{  
  	/* Tests developped by ICT */  
    test_verdict = dma_test_misc2(test_number); 
	}  
 
  /* return test_verdict to rtest SWE */ 
	return test_verdict; 
 
}