XilinxProcessorIPLib/drivers/hdcp22_cipher_dp/src/xhdcp22_cipher_sinit.c
XHdcp22_Cipher_Config *XHdcp22Cipher_LookupConfig(u16 DeviceId)
{

	XHdcp22_Cipher_Config *CfgPtr = NULL;
	u32 Index;

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

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

	return (XHdcp22_Cipher_Config *)CfgPtr;
}
/*****************************************************************************/
/**
*
* This function returns a reference to an XHdcp22_Cipher_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 xhdcp22_cipher_g.c file.
*
* @param  DeviceId is the unique core ID of the XHDCP22 Cipher core for the
*         lookup operation.
*
* @return XHdcp22Cipher_LookupConfig returns a reference to a config record
*         in the configuration table (in xhdcp22_cipher_g.c) corresponding
*         to <i>DeviceId</i>, or NULL if no match is found.
*
* @note   None.
*
******************************************************************************/
This function returns a reference to an XHdcp22_Cipher_Config structure based
on the core id, DeviceId. The return value will refer to an entry in
the device configuration table defined in the xhdcp22_cipher_g.c file.
This function returns a reference to an XHdcp22_Cipher_Config structure based on the core id DeviceId . The return value will refer to an entry in the device configuration table defined in the xhdcp22_cipher_g . c file .
XHdcp22_Cipher_Config *XHdcp22Cipher_LookupConfig(u16 DeviceId)
{
	XHdcp22_Cipher_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = (u32)0x0; Index < (u32)(XPAR_XHDCP22_CIPHER_NUM_INSTANCES);
		Index++) {
		if (XHdcp22_Cipher_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XHdcp22_Cipher_ConfigTable[Index];
			break;
		}
	}
	return (XHdcp22_Cipher_Config *)CfgPtr;
}
XHdcp22_Cipher_Config * XHdcp22Cipher_LookupConfig ( u16 DeviceId ) { XHdcp22_Cipher_Config * CfgPtr = NULL ; u32 Index ; for ( Index = ( u32 ) 0x0 ; Index < ( u32 ) ( XPAR_XHDCP22_CIPHER_NUM_INSTANCES ) ; Index ++ ) { if ( XHdcp22_Cipher_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XHdcp22_Cipher_ConfigTable [ Index ] ; break ; } } return ( XHdcp22_Cipher_Config * ) CfgPtr ; }
This function returns a reference to an XHdcp22_Cipher_Config structure based
on the core id, <i>DeviceId</i>.
This function returns a reference to an XHdcp22_Cipher_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
		 */