XilinxProcessorIPLib/drivers/uartns550/src/xuartns550_sinit.c
XUartNs550_Config *XUartNs550_LookupConfig(u16 DeviceId)
{
	XUartNs550_Config *CfgPtr = NULL;
	u32 Index;

	for (Index=0; Index < XPAR_XUARTNS550_NUM_INSTANCES; Index++) {
		if (XUartNs550_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XUartNs550_ConfigTable[Index];
			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 contains the ID of the device to look up the
*		configuration for.
*
* @return	A pointer to the configuration found or NULL if the specified
*		device ID 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 .
XUartNs550_Config *XUartNs550_LookupConfig(u16 DeviceId)
{
	XUartNs550_Config *CfgPtr = NULL;
	u32 Index;
	for (Index=0; Index < XPAR_XUARTNS550_NUM_INSTANCES; Index++) {
		if (XUartNs550_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XUartNs550_ConfigTable[Index];
			break;
		}
	}
	return CfgPtr;
}
XUartNs550_Config * XUartNs550_LookupConfig ( u16 DeviceId ) { XUartNs550_Config * CfgPtr = NULL ; u32 Index ; for ( Index = 0 ; Index < XPAR_XUARTNS550_NUM_INSTANCES ; Index ++ ) { if ( XUartNs550_ConfigTable [ Index ] . DeviceId == DeviceId ) { CfgPtr = & XUartNs550_ConfigTable [ Index ] ; 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 .