XilinxProcessorIPLib/drivers/intc/src/xintc.c
XIntc_Config *XIntc_LookupConfig(u16 DeviceId)
{
	XIntc_Config *CfgPtr = NULL;
	int Index;

	for (Index = 0; Index < XPAR_XINTC_NUM_INSTANCES; Index++) {
		if (XIntc_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XIntc_ConfigTable[Index];
			if (CfgPtr == NULL) {
				return NULL;
			}
			break;
		}
	}

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* Looks up the device configuration based on the unique device ID. A table
* contains the configuration info for each device in the system.
*
* @param	DeviceId is the unique identifier for a device.
*
* @return	A pointer to the XIntc configuration structure for the specified
*		device, or NULL if the device was not found.
*
* @note		None.
*
******************************************************************************/
Looks up the device configuration based on the unique device ID. A table
contains the configuration info for each device in the system.
Looks up the device configuration based on the unique device ID . A table contains the configuration info for each device in the system .
XIntc_Config *XIntc_LookupConfig(u16 DeviceId)
{
	XIntc_Config *CfgPtr = NULL;
	int Index;
	for (Index = 0; Index < XPAR_XINTC_NUM_INSTANCES; Index++) {
		if (XIntc_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XIntc_ConfigTable[Index];
			if (CfgPtr == NULL) {
				return NULL;
			}
			break;
		}
	}
	return CfgPtr;
}
XIntc_Config * XIntc_LookupConfig ( u16 DeviceId ) { XIntc_Config * CfgPtr = NULL ; int Index ; for ( Index = 0 ; Index < XPAR_XINTC_NUM_INSTANCES ; Index ++ ) { if ( XIntc_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XIntc_ConfigTable [ Index ] ; if ( CfgPtr == NULL ) { return NULL ; } 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 .