XilinxProcessorIPLib/drivers/dp14txss/examples/src/pt_only/tx.c
void DpTxSs_VsyncHandler(void *InstancePtr)
{
	tx_pass = 1;
	u8 i = 0;
	u32 fifosts = 0;

	if(fifocount > AUXFIFOSIZE-1) {
		startindex = endindex;
	}

	while (startindex != endindex) {
		fifosts = XDp_ReadReg(DpTxSsInst.DpPtr->Config.BaseAddr,
						 0x6A0);
		fifosts &= 0x00000003;
		i = 0;
		if (fifosts == 0) {
			for (i = 0; i < 8; i++) {
				XDp_WriteReg(DpTxSsInst.DpPtr->Config.BaseAddr,
						XDP_TX_AUDIO_INFO_DATA(1), infofifo[(startindex*8+i)]);
			}
		} else {
//			xil_printf(ANSI_COLOR_RED"TX InfoFrame Fifo is full!!"ANSI_COLOR_RESET"\r\n");
		}
		if(startindex < (AUXFIFOSIZE - 1)) {
			startindex++;
		} else {
			startindex = 0;
		}

	}

	fifocount = 0;
	vsync_counter++;
}
/* This variable to keep track
				 * of the status of Tx link*/
This variable to keep track
of the status of Tx link
This variable to keep track of the status of Tx link
void DpTxSs_VsyncHandler(void *InstancePtr)
{
	tx_pass = 1;
	u8 i = 0;
	u32 fifosts = 0;
	if(fifocount > AUXFIFOSIZE-1) {
		startindex = endindex;
	}
	while (startindex != endindex) {
		fifosts = XDp_ReadReg(DpTxSsInst.DpPtr->Config.BaseAddr,
						 0x6A0);
		fifosts &= 0x00000003;
		i = 0;
		if (fifosts == 0) {
			for (i = 0; i < 8; i++) {
				XDp_WriteReg(DpTxSsInst.DpPtr->Config.BaseAddr,
						XDP_TX_AUDIO_INFO_DATA(1), infofifo[(startindex*8+i)]);
			}
		} else {
		}
		if(startindex < (AUXFIFOSIZE - 1)) {
			startindex++;
		} else {
			startindex = 0;
		}
	}
	fifocount = 0;
	vsync_counter++;
}
void DpTxSs_VsyncHandler ( void * InstancePtr ) { tx_pass = 1 ; u8 i = 0 ; u32 fifosts = 0 ; if ( fifocount > AUXFIFOSIZE - 1 ) { startindex = endindex ; } while ( startindex != endindex ) { fifosts = XDp_ReadReg ( DpTxSsInst . DpPtr -> Config . BaseAddr , 0x6A0 ) ; fifosts &= 0x00000003 ; i = 0 ; if ( fifosts == 0 ) { for ( i = 0 ; i < 8 ; i ++ ) { XDp_WriteReg ( DpTxSsInst . DpPtr -> Config . BaseAddr , XDP_TX_AUDIO_INFO_DATA ( 1 ) , infofifo [ ( startindex * 8 + i ) ] ) ; } } else { } if ( startindex < ( AUXFIFOSIZE - 1 ) ) { startindex ++ ; } else { startindex = 0 ; } } fifocount = 0 ; vsync_counter ++ ; }
This variable to keep track
 of the status of Tx link
This variable to keep track of the status of Tx link
//			xil_printf(ANSI_COLOR_RED"TX InfoFrame Fifo is full!!"ANSI_COLOR_RESET"\r\n");