XilinxProcessorIPLib/drivers/v_hdmitx/src/xv_hdmitx_sinit.c
XV_HdmiTx_Config *XV_HdmiTx_LookupConfig(u16 DeviceId)
{
    extern XV_HdmiTx_Config
            XV_HdmiTx_ConfigTable[XPAR_XV_HDMITX_NUM_INSTANCES];
    XV_HdmiTx_Config *CfgPtr = NULL;
    u32 Index;

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

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

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