XilinxProcessorIPLib/drivers/tmr_manager/src/xtmr_manager_sinit.c
XTMR_Manager_Config *XTMR_Manager_LookupConfig(u16 DeviceId)
{
	XTMR_Manager_Config *CfgPtr = NULL;
	u32 Index;

	for (Index=0; Index < XPAR_XTMR_MANAGER_NUM_INSTANCES; Index++) {
		if (XTMR_Manager_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XTMR_Manager_ConfigTable[Index];
			break;
		}
	}

	return CfgPtr;
}
/****************************************************************************
*
* Looks up the device configuration based on the unique device ID.  The table
* TMRManagerConfigTable contains the configuration info for each device in
* the system.
*
* @param	DeviceId is the unique device ID to match on.
*
* @return	A pointer to the configuration data for the device, or
*		NULL if no match was found.
*
* @note		None.
*
******************************************************************************/
Looks up the device configuration based on the unique device ID.  The table
TMRManagerConfigTable contains the configuration info for each device in
the system.
Looks up the device configuration based on the unique device ID . The table TMRManagerConfigTable contains the configuration info for each device in the system .
XTMR_Manager_Config *XTMR_Manager_LookupConfig(u16 DeviceId)
{
	XTMR_Manager_Config *CfgPtr = NULL;
	u32 Index;
	for (Index=0; Index < XPAR_XTMR_MANAGER_NUM_INSTANCES; Index++) {
		if (XTMR_Manager_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XTMR_Manager_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XTMR_Manager_Config * XTMR_Manager_LookupConfig ( u16 DeviceId ) { XTMR_Manager_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0 ; Index < XPAR_XTMR_MANAGER_NUM_INSTANCES ; Index ++ ) { if ( XTMR_Manager_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XTMR_Manager_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
Looks up the device configuration based on the unique device ID.
Looks up the device configuration based on the unique device ID .