XilinxProcessorIPLib/drivers/intc/src/xintc_l.c
static XIntc_Config *LookupConfigByBaseAddress(UINTPTR BaseAddress)
{
	XIntc_Config *CfgPtr = NULL;
	int Index;

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

	return CfgPtr;
}
/*****************************************************************************/
/**
*
* Looks up the device configuration based on the base address of the device.
* A table contains the configuration info for each device in the system.
*
* @param	BaseAddress is the unique identifier for a device.
*
* @return
*
* A pointer to the configuration structure for the specified device, or
* NULL if the device was not found.
*
* @note		None.
*
******************************************************************************/
Looks up the device configuration based on the base address of the device.
A table contains the configuration info for each device in the system.
Looks up the device configuration based on the base address of the device . A table contains the configuration info for each device in the system .
static XIntc_Config *LookupConfigByBaseAddress(UINTPTR BaseAddress)
{
	XIntc_Config *CfgPtr = NULL;
	int Index;
	for (Index = 0; Index < XPAR_XINTC_NUM_INSTANCES; Index++) {
		if (XIntc_ConfigTable[Index].BaseAddress == BaseAddress) {
			CfgPtr = &XIntc_ConfigTable[Index];
			if (CfgPtr == NULL) {
				return NULL;
			}
			break;
		}
	}
	return CfgPtr;
}
static XIntc_Config * LookupConfigByBaseAddress ( UINTPTR BaseAddress ) { XIntc_Config * CfgPtr = NULL ; int Index ; for ( Index = 0 ; Index < XPAR_XINTC_NUM_INSTANCES ; Index ++ ) { if ( XIntc_ConfigTable [ Index ] . BaseAddress == BaseAddress ) { CfgPtr = & XIntc_ConfigTable [ Index ] ; if ( CfgPtr == NULL ) { return NULL ; } break ; } } return CfgPtr ; }
Looks up the device configuration based on the base address of the device.
Looks up the device configuration based on the base address of the device .