XilinxProcessorIPLib/drivers/dp12txss/src/xdptxss_dbg.c
void XDpTxSs_ReportLinkInfo(XDpTxSs *InstancePtr)
{
	u8 Data[8];

	/* Verify argument. */
	Xil_AssertVoid(InstancePtr != NULL);

	/* Read Link rate over through channel */
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_LINK_BW_SET, 1, &Data);
	xil_printf("\n\rLINK_BW_SET (0x00100) status in DPCD = %x\n\r",
			(Data[0] & 0xFF));

	/* Read Lane count through AUX channel */
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_LANE_COUNT_SET, 1,
			&Data);
	xil_printf("LANE_COUNT_SET (0x00101) status in DPCD = %x\n\r",
			(Data[0] & XDP_DPCD_LANE_COUNT_SET_MASK));

	/* Read Lane status through AUX channel */
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_STATUS_LANE_0_1, 2,
			&Data);
	xil_printf("LANE0_1_STATUS (0x00202) in DPCD = %x\n\r",
			(Data[0] & 0xFF));
	xil_printf("LANE2_3_STATUS (0x00203) in DPCD = %x\n\r",
			(Data[1] & 0xFF));

	/* Read symbol error through AUX channel */
	XDp_TxAuxRead(InstancePtr->DpPtr,
			XDP_DPCD_SYMBOL_ERROR_COUNT_LANE_0, 8, &Data);
	xil_printf("\n\rSYMBOL_ERROR_COUNT_LANE_0 (0x00210 and 0x00211) "
		"Status = %x%x\n\r",(Data[1] & 0xFF00),(Data[0] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_1 (0x00212 and 0x00213) "
		"Status = %x%x\n\r",(Data[3] & 0xFF00),(Data[2] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_2 (0x00214 and 0x00215) "
		"Status = %x%x\n\r",(Data[5] & 0xFF00),(Data[4] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_3 (0x00216 and 0x00217) "
		"Status = %x%x\n\r",(Data[7] & 0xFF00),(Data[6] & 0xFF));

	xil_printf("\n\rSelected Resolution = %s\n\r",
		XVidC_GetVideoModeStr(InstancePtr->UsrOpt.VmId));
	xil_printf("Selected BPC = %d\n\r",InstancePtr->UsrOpt.Bpc);

	xil_printf("\n\r");
}
/*****************************************************************************/
/**
*
* This function prints the link status, selected resolution, bits per color and
* link/lane count symbol error.
*
* @param	InstancePtr is a pointer to the XDpTxSs core instance.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function prints the link status, selected resolution, bits per color and
link/lane count symbol error.
This function prints the link status selected resolution bits per color and link / lane count symbol error .
void XDpTxSs_ReportLinkInfo(XDpTxSs *InstancePtr)
{
	u8 Data[8];
	Xil_AssertVoid(InstancePtr != NULL);
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_LINK_BW_SET, 1, &Data);
	xil_printf("\n\rLINK_BW_SET (0x00100) status in DPCD = %x\n\r",
			(Data[0] & 0xFF));
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_LANE_COUNT_SET, 1,
			&Data);
	xil_printf("LANE_COUNT_SET (0x00101) status in DPCD = %x\n\r",
			(Data[0] & XDP_DPCD_LANE_COUNT_SET_MASK));
	XDp_TxAuxRead(InstancePtr->DpPtr, XDP_DPCD_STATUS_LANE_0_1, 2,
			&Data);
	xil_printf("LANE0_1_STATUS (0x00202) in DPCD = %x\n\r",
			(Data[0] & 0xFF));
	xil_printf("LANE2_3_STATUS (0x00203) in DPCD = %x\n\r",
			(Data[1] & 0xFF));
	XDp_TxAuxRead(InstancePtr->DpPtr,
			XDP_DPCD_SYMBOL_ERROR_COUNT_LANE_0, 8, &Data);
	xil_printf("\n\rSYMBOL_ERROR_COUNT_LANE_0 (0x00210 and 0x00211) "
		"Status = %x%x\n\r",(Data[1] & 0xFF00),(Data[0] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_1 (0x00212 and 0x00213) "
		"Status = %x%x\n\r",(Data[3] & 0xFF00),(Data[2] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_2 (0x00214 and 0x00215) "
		"Status = %x%x\n\r",(Data[5] & 0xFF00),(Data[4] & 0xFF));
	xil_printf("SYMBOL_ERROR_COUNT_LANE_3 (0x00216 and 0x00217) "
		"Status = %x%x\n\r",(Data[7] & 0xFF00),(Data[6] & 0xFF));
	xil_printf("\n\rSelected Resolution = %s\n\r",
		XVidC_GetVideoModeStr(InstancePtr->UsrOpt.VmId));
	xil_printf("Selected BPC = %d\n\r",InstancePtr->UsrOpt.Bpc);
	xil_printf("\n\r");
}
void XDpTxSs_ReportLinkInfo ( XDpTxSs * InstancePtr ) { u8 Data [ 8 ] ; Xil_AssertVoid ( InstancePtr != NULL ) ; XDp_TxAuxRead ( InstancePtr -> DpPtr , XDP_DPCD_LINK_BW_SET , 1 , & Data ) ; xil_printf ( " \n \r \n \r " , ( Data [ 0 ] & 0xFF ) ) ; XDp_TxAuxRead ( InstancePtr -> DpPtr , XDP_DPCD_LANE_COUNT_SET , 1 , & Data ) ; xil_printf ( " \n \r " , ( Data [ 0 ] & XDP_DPCD_LANE_COUNT_SET_MASK ) ) ; XDp_TxAuxRead ( InstancePtr -> DpPtr , XDP_DPCD_STATUS_LANE_0_1 , 2 , & Data ) ; xil_printf ( " \n \r " , ( Data [ 0 ] & 0xFF ) ) ; xil_printf ( " \n \r " , ( Data [ 1 ] & 0xFF ) ) ; XDp_TxAuxRead ( InstancePtr -> DpPtr , XDP_DPCD_SYMBOL_ERROR_COUNT_LANE_0 , 8 , & Data ) ; xil_printf ( " \n \r " " \n \r " , ( Data [ 1 ] & 0xFF00 ) , ( Data [ 0 ] & 0xFF ) ) ; xil_printf ( " " " \n \r " , ( Data [ 3 ] & 0xFF00 ) , ( Data [ 2 ] & 0xFF ) ) ; xil_printf ( " " " \n \r " , ( Data [ 5 ] & 0xFF00 ) , ( Data [ 4 ] & 0xFF ) ) ; xil_printf ( " " " \n \r " , ( Data [ 7 ] & 0xFF00 ) , ( Data [ 6 ] & 0xFF ) ) ; xil_printf ( " \n \r \n \r " , XVidC_GetVideoModeStr ( InstancePtr -> UsrOpt . VmId ) ) ; xil_printf ( " \n \r " , InstancePtr -> UsrOpt . Bpc ) ; xil_printf ( " \n \r " ) ; }
This function prints the link status, selected resolution, bits per color and
link/lane count symbol error.
This function prints the link status selected resolution bits per color and link / lane count symbol error .
/* Verify argument. */ /* Read Link rate over through channel */ /* Read Lane count through AUX channel */ /* Read Lane status through AUX channel */ /* Read symbol error through AUX channel */