XilinxProcessorIPLib/drivers/prc/src/xprc_sinit.c
XPrc_Config *XPrc_LookupConfig(u16 DeviceId)
{
	XPrc_Config *ConfigPtr = NULL;
	u32 Index;

	for (Index = 0; Index < (u32)XPAR_XPRC_NUM_INSTANCES; Index++) {
		if (XPrc_ConfigTable[Index].DeviceId == DeviceId) {
			ConfigPtr = &XPrc_ConfigTable[Index];
			break;
		}
	}

	return ConfigPtr;
}
/*****************************************************************************/
/**
*
* This function Looks for the device configuration based on the unique device
* ID. The table XPrc_ConfigTable[] contains the configuration information 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 was found.
*
* @note		None.
*
******************************************************************************/
This function Looks for the device configuration based on the unique device
ID. The table XPrc_ConfigTable[] contains the configuration information for
each device in the system.
This function Looks for the device configuration based on the unique device ID . The table XPrc_ConfigTable [] contains the configuration information for each device in the system .
XPrc_Config *XPrc_LookupConfig(u16 DeviceId)
{
	XPrc_Config *ConfigPtr = NULL;
	u32 Index;
	for (Index = 0; Index < (u32)XPAR_XPRC_NUM_INSTANCES; Index++) {
		if (XPrc_ConfigTable[Index].DeviceId == DeviceId) {
			ConfigPtr = &XPrc_ConfigTable[Index];
			break;
		}
	}
	return ConfigPtr;
}
XPrc_Config * XPrc_LookupConfig ( u16 DeviceId ) { XPrc_Config * ConfigPtr = NULL ; u32 Index ; for ( Index = 0 ; Index < ( u32 ) XPAR_XPRC_NUM_INSTANCES ; Index ++ ) { if ( XPrc_ConfigTable [ Index ] . DeviceId == DeviceId ) { ConfigPtr = & XPrc_ConfigTable [ Index ] ; break ; } } return ConfigPtr ; }
This function Looks for the device configuration based on the unique device
ID.
This function Looks for the device configuration based on the unique device ID .