XilinxProcessorIPLib/drivers/mbox/src/xmbox_sinit.c
XMbox_Config *XMbox_LookupConfig(u16 DeviceId)
{
	XMbox_Config *CfgPtr = NULL;
	u32 Index;

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

	return CfgPtr;
}
/*****************************************************************************
*
* Looks up the device configuration based on the unique device ID. The config
* table contains the configuration info for each device in the system.
*
* @param	DeviceId is the unique device ID to search for in the config
*		table.
*
* @return	A pointer to the configuration that matches the given device ID,
*		or NULL if no match is found.
*
* @note		None.
*
******************************************************************************/
Looks up the device configuration based on the unique device ID. The config
table contains the configuration info for each device in the system.
Looks up the device configuration based on the unique device ID . The config table contains the configuration info for each device in the system .
XMbox_Config *XMbox_LookupConfig(u16 DeviceId)
{
	XMbox_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < XPAR_XMBOX_NUM_INSTANCES; Index++) {
		if (XMbox_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XMbox_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XMbox_Config * XMbox_LookupConfig ( u16 DeviceId ) { XMbox_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < XPAR_XMBOX_NUM_INSTANCES ; Index ++ ) { if ( XMbox_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XMbox_ConfigTable [ Index ] ; break ; } } return CfgPtr ; }
Looks up the device configuration based on the unique device ID.
Looks up the device configuration based on the unique device ID .