XilinxProcessorIPLib/drivers/aiengine/src/global/xaiegbl_sinit.c
XAieGbl_Config *XAieGbl_LookupConfig(u16 DeviceId)
{
	XAieGbl_Config *CfgPtr = XAIE_NULL;
	u32 Index;

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

	return (XAieGbl_Config *)CfgPtr;
}
/*****************************************************************************/
/**
*
* Looks up the device configuration based on the unique device ID. A table
* contains the configuration info for each device in the system.
*
* @param	DeviceId is the unique identifier for a device.
*
* @return	A pointer to the XAieGbl configuration structure for the
*		specified device, or NULL if the device was not found.
*
* @note		None.
*
******************************************************************************/
Looks up the device configuration based on the unique device ID. A table
contains the configuration info for each device in the system.
Looks up the device configuration based on the unique device ID . A table contains the configuration info for each device in the system .
XAieGbl_Config *XAieGbl_LookupConfig(u16 DeviceId)
{
	XAieGbl_Config *CfgPtr = XAIE_NULL;
	u32 Index;
	for (Index=0U; Index < (u32)XPAR_AIE_NUM_INSTANCES; Index++) {
		if (XAieGbl_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XAieGbl_ConfigTable[Index];
			break;
		}
	}
	return (XAieGbl_Config *)CfgPtr;
}
XAieGbl_Config * XAieGbl_LookupConfig ( u16 DeviceId ) { XAieGbl_Config * CfgPtr = XAIE_NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_AIE_NUM_INSTANCES ; Index ++ ) { if ( XAieGbl_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XAieGbl_ConfigTable [ Index ] ; break ; } } return ( XAieGbl_Config * ) CfgPtr ; }
Looks up the device configuration based on the unique device ID.
Looks up the device configuration based on the unique device ID .