XilinxProcessorIPLib/drivers/scuwdt/src/xscuwdt_sinit.c
XScuWdt_Config *XScuWdt_LookupConfig(u16 DeviceId)
{
	XScuWdt_Config *CfgPtr = NULL;
	u32 Index;

	for (Index = 0U; Index < (u32)XPAR_XSCUWDT_NUM_INSTANCES; Index++) {
		if (XScuWdt_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XScuWdt_ConfigTable[Index];
			break;
		}
	}

	return (XScuWdt_Config *)CfgPtr;
}
/*****************************************************************************/
/**
* Lookup the device configuration based on the unique device ID. The table
* contains the configuration info for each device in the system.
*
* @param	DeviceId is the unique device ID of the device being looked up.
*
* @return	A pointer to the configuration table entry corresponding to the
*		given device ID, or NULL if no match is found.
*
* @note		None.
*
******************************************************************************/
Lookup the device configuration based on the unique device ID. The table
contains the configuration info for each device in the system.
Lookup the device configuration based on the unique device ID . The table contains the configuration info for each device in the system .
XScuWdt_Config *XScuWdt_LookupConfig(u16 DeviceId)
{
	XScuWdt_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < (u32)XPAR_XSCUWDT_NUM_INSTANCES; Index++) {
		if (XScuWdt_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XScuWdt_ConfigTable[Index];
			break;
		}
	}
	return (XScuWdt_Config *)CfgPtr;
}
XScuWdt_Config * XScuWdt_LookupConfig ( u16 DeviceId ) { XScuWdt_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_XSCUWDT_NUM_INSTANCES ; Index ++ ) { if ( XScuWdt_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XScuWdt_ConfigTable [ Index ] ; break ; } } return ( XScuWdt_Config * ) CfgPtr ; }
Lookup the device configuration based on the unique device ID.
Lookup the device configuration based on the unique device ID .