XilinxProcessorIPLib/drivers/pmonpsv/src/xpmonpsv_sint.c
XPmonPsv_Config *XPmonPsv_LookupConfig(u16 DeviceId)
{
	XPmonPsv_Config *CfgPtr = NULL;
	u32 Index;

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

	return (XPmonPsv_Config *)CfgPtr;
}
/*****************************************************************************/
/**
*
* This function looks up the device configuration based on the unique device ID.
* The table XPmonPsv_ConfigTable contains the configuration info for each device
* in the system.
*
* @param	DeviceId contains the ID of the device for which the
*		device configuration pointer is to be returned.
*
* @return
*		- A pointer to the configuration found.
*		- NULL if the specified device ID was not found.
*
* @note		None.
*
******************************************************************************/
This function looks up the device configuration based on the unique device ID.
The table XPmonPsv_ConfigTable contains the configuration info for each device
in the system.
This function looks up the device configuration based on the unique device ID . The table XPmonPsv_ConfigTable contains the configuration info for each device in the system .
XPmonPsv_Config *XPmonPsv_LookupConfig(u16 DeviceId)
{
	XPmonPsv_Config *CfgPtr = NULL;
	u32 Index;
	for (Index=0U; Index < (u32)XPAR_XPMONPSV_NUM_INSTANCES; Index++) {
		if (XPmonPsv_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XPmonPsv_ConfigTable[Index];
			break;
		}
	}
	return (XPmonPsv_Config *)CfgPtr;
}
XPmonPsv_Config * XPmonPsv_LookupConfig ( u16 DeviceId ) { XPmonPsv_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_XPMONPSV_NUM_INSTANCES ; Index ++ ) { if ( XPmonPsv_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XPmonPsv_ConfigTable [ Index ] ; break ; } } return ( XPmonPsv_Config * ) CfgPtr ; }
This function looks up the device configuration based on the unique device ID.
This function looks up the device configuration based on the unique device ID .