XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/tx.c
void hpd_con(XDpTxSs *InstancePtr, u8 Edid_org[128],
		u8 Edid1_org[128], u16 res_update)
{
	u8 rData;
	u32 Status;

	/* This is a PassThrough System to display the Video received on RX
	 * onto TX. There is nothing special done in the hpd_connect handler.
	 * On a HPD the application simply tries to retrain the monitor
	 */
#if ADAPTIVE
	XDp_TxAuxRead(DpTxSsInst.DpPtr, XDP_DPCD_DOWNSP_COUNT_MSA_OUI, 1, &rData);
	if(rData & 0x40){
//		xil_printf ("Supports MSA less !!!!!\r\n");
		supports_adaptive = 1;
	}
	else {
		supports_adaptive = 0;
	}
#endif
    Status = XDpTxSs_CheckVscColorimetrySupport(&DpTxSsInst);
    if (Status == XST_SUCCESS) {
//		xil_printf ("Monitor Supports Colorimetry over VSC Ext packet !!!!!\r\n");
		supports_vsc = 1;
    } else {
	supports_vsc = 0;
    }
}
/*****************************************************************************/
/**
*
* This function is called when a Hot-Plug-Detect (HPD) event is received by
* the DisplayPort TX Subsystem core.
*
* @param	InstancePtr is a pointer to the XDpTxSs instance.
*
* @return	None.
*
* @note		Use the XDpTxSs_SetCallback driver function to set this
*		function as the handler for HPD event.
*
******************************************************************************/
This function is called when a Hot-Plug-Detect (HPD) event is received by
the DisplayPort TX Subsystem core.
This function is called when a Hot - Plug - Detect ( HPD ) event is received by the DisplayPort TX Subsystem core .
void hpd_con(XDpTxSs *InstancePtr, u8 Edid_org[128],
		u8 Edid1_org[128], u16 res_update)
{
	u8 rData;
	u32 Status;
#if ADAPTIVE
	XDp_TxAuxRead(DpTxSsInst.DpPtr, XDP_DPCD_DOWNSP_COUNT_MSA_OUI, 1, &rData);
	if(rData & 0x40){
		supports_adaptive = 1;
	}
	else {
		supports_adaptive = 0;
	}
#endif
    Status = XDpTxSs_CheckVscColorimetrySupport(&DpTxSsInst);
    if (Status == XST_SUCCESS) {
		supports_vsc = 1;
    } else {
	supports_vsc = 0;
    }
}
void hpd_con ( XDpTxSs * InstancePtr , u8 Edid_org [ 128 ] , u8 Edid1_org [ 128 ] , u16 res_update ) { u8 rData ; u32 Status ; #if ADAPTIVE XDp_TxAuxRead ( DpTxSsInst . DpPtr , XDP_DPCD_DOWNSP_COUNT_MSA_OUI , 1 , & rData ) ; if ( rData & 0x40 ) { supports_adaptive = 1 ; } else { supports_adaptive = 0 ; } #endif Status = XDpTxSs_CheckVscColorimetrySupport ( & DpTxSsInst ) ; if ( Status == XST_SUCCESS ) { supports_vsc = 1 ; } else { supports_vsc = 0 ; } }
This function is called when a Hot-Plug-Detect (HPD) event is received by
the DisplayPort TX Subsystem core.
This function is called when a Hot - Plug - Detect ( HPD ) event is received by the DisplayPort TX Subsystem core .
/* This is a PassThrough System to display the Video received on RX
	 * onto TX. There is nothing special done in the hpd_connect handler.
	 * On a HPD the application simply tries to retrain the monitor
	 */ //		xil_printf ("Supports MSA less !!!!!\r\n"); //		xil_printf ("Monitor Supports Colorimetry over VSC Ext packet !!!!!\r\n");