XilinxProcessorIPLib/drivers/spdif/src/xspdif_sinit.c
XSpdif_Config *XSpdif_LookupConfig(u16 DeviceId)
{
	XSpdif_Config *CfgPtr = NULL;
	u32 Index;

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

		/* Assigning address of config table if both device ids
		 * are matched
		 */
		if (XSpdif_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XSpdif_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
/*****************************************************************************/
/**
 *
 * This function returns a reference to an XSpdif_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 xspdif_g.c file.
 *
 * @param  DeviceId is the unique core ID of the XSpdif core for the
 *         lookup operation.
 *
 * @return returns a reference to a config record in the configuration table
 *         corresponding to <i>DeviceId</i>, or NULL if no match is found.
 *
 * @note   None.
 *
 ******************************************************************************/
This function returns a reference to an XSpdif_Config structure
based on the core id, DeviceId. The return value will refer to an
entry in the device configuration table defined in the xspdif_g.c file.

@param  DeviceId is the unique core ID of the XSpdif core for the
lookup operation.

@return returns a reference to a config record in the configuration table
corresponding to DeviceId, or NULL if no match is found.

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