XilinxProcessorIPLib/drivers/v_hdmitx1/src/xv_hdmitx1_sinit.c
XV_HdmiTx1_Config *XV_HdmiTx1_LookupConfig(u16 DeviceId)
{
	extern XV_HdmiTx1_Config
	XV_HdmiTx1_ConfigTable[XPAR_XV_HDMITX1_NUM_INSTANCES];
	XV_HdmiTx1_Config *CfgPtr = NULL;
	u32 Index;

	/* Checking for device id for which instance it is matching */
	for (Index = (u32)0x0; Index < (u32)(XPAR_XV_HDMITX1_NUM_INSTANCES);
	     Index++) {

		/* Assigning address of config table if both device ids
		 * are matched
		 */
		if (XV_HdmiTx1_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XV_HdmiTx1_ConfigTable[Index];
			break;
		}
	}

	return (XV_HdmiTx1_Config *)CfgPtr;
}
/*****************************************************************************/
/**
*
* This function returns a reference to an XV_HdmiTx1_Config structure based
* on the core id, <i>DeviceId</i>. The return value will refer to an entry in
* the device configuration table defined in the xv_hdmitx1_g.c file.
*
* @param    DeviceId is the unique core ID of the HDMI TX core for the
*       lookup operation.
*
* @return   XV_HdmiTx1_LookupConfig returns a reference to a config record
*       in the configuration table (in xv_hdmitx1_g.c) corresponding
*       to <i>DeviceId</i>, or NULL if no match is found.
*
* @note     None.
*
******************************************************************************/
This function returns a reference to an XV_HdmiTx1_Config structure based
on the core id, DeviceId. The return value will refer to an entry in
the device configuration table defined in the xv_hdmitx1_g.c file.
This function returns a reference to an XV_HdmiTx1_Config structure based on the core id DeviceId . The return value will refer to an entry in the device configuration table defined in the xv_hdmitx1_g . c file .
XV_HdmiTx1_Config *XV_HdmiTx1_LookupConfig(u16 DeviceId)
{
	extern XV_HdmiTx1_Config
	XV_HdmiTx1_ConfigTable[XPAR_XV_HDMITX1_NUM_INSTANCES];
	XV_HdmiTx1_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = (u32)0x0; Index < (u32)(XPAR_XV_HDMITX1_NUM_INSTANCES);
	     Index++) {
		if (XV_HdmiTx1_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XV_HdmiTx1_ConfigTable[Index];
			break;
		}
	}
	return (XV_HdmiTx1_Config *)CfgPtr;
}
XV_HdmiTx1_Config * XV_HdmiTx1_LookupConfig ( u16 DeviceId ) { extern XV_HdmiTx1_Config XV_HdmiTx1_ConfigTable [ XPAR_XV_HDMITX1_NUM_INSTANCES ] ; XV_HdmiTx1_Config * CfgPtr = NULL ; u32 Index ; for ( Index = ( u32 ) 0x0 ; Index < ( u32 ) ( XPAR_XV_HDMITX1_NUM_INSTANCES ) ; Index ++ ) { if ( XV_HdmiTx1_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XV_HdmiTx1_ConfigTable [ Index ] ; break ; } } return ( XV_HdmiTx1_Config * ) CfgPtr ; }
This function returns a reference to an XV_HdmiTx1_Config structure based
on the core id, <i>DeviceId</i>.
This function returns a reference to an XV_HdmiTx1_Config structure based on the core id <i > DeviceId< / i > .
/* Checking for device id for which instance it is matching */ /* Assigning address of config table if both device ids
		 * are matched
		 */