XilinxProcessorIPLib/drivers/sysmonpsu/src/xsysmonpsu_sinit.c
XSysMonPsu_Config *XSysMonPsu_LookupConfig(u16 DeviceId)
{
	XSysMonPsu_Config *CfgPtr = NULL;
	u32 Index;

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

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* This function looks for the device configuration based on the unique device
* ID. The table XSysmonPsu_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 is found.
*
* @note		None.
*
******************************************************************************/
This function looks for the device configuration based on the unique device
ID. The table XSysmonPsu_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 XSysmonPsu_ConfigTable [] contains the configuration information for each device in the system .
XSysMonPsu_Config *XSysMonPsu_LookupConfig(u16 DeviceId)
{
	XSysMonPsu_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < (u32)XPAR_XSYSMONPSU_NUM_INSTANCES; Index++) {
		if (XSysMonPsu_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XSysMonPsu_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XSysMonPsu_Config * XSysMonPsu_LookupConfig ( u16 DeviceId ) { XSysMonPsu_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_XSYSMONPSU_NUM_INSTANCES ; Index ++ ) { if ( XSysMonPsu_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XSysMonPsu_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
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 .