XilinxProcessorIPLib/drivers/dsitxss/src/xdsitxss_sinit.c
XDsiTxSs_Config* XDsiTxSs_LookupConfig(u32 DeviceId)
{
	XDsiTxSs_Config *CfgPtr = NULL;
	u32 Index;

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

	return (CfgPtr);
}
/*****************************************************************************/
/**
* This function looks for the device configuration based on the unique device
* ID. The table XDsiTxSs_ConfigTable[] contains the configuration information
* for each instance of the 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 XDsiTxSs_ConfigTable[] contains the configuration information
for each instance of the device in the system.
This function looks for the device configuration based on the unique device ID . The table XDsiTxSs_ConfigTable [] contains the configuration information for each instance of the device in the system .
XDsiTxSs_Config* XDsiTxSs_LookupConfig(u32 DeviceId)
{
	XDsiTxSs_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < (u32)XPAR_XDSITXSS_NUM_INSTANCES; Index++) {
		if (XDsiTxSs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XDsiTxSs_ConfigTable[Index];
			break;
		}
	}
	return (CfgPtr);
}
XDsiTxSs_Config * XDsiTxSs_LookupConfig ( u32 DeviceId ) { XDsiTxSs_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0U ; Index < ( u32 ) XPAR_XDSITXSS_NUM_INSTANCES ; Index ++ ) { if ( XDsiTxSs_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XDsiTxSs_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 .