XilinxProcessorIPLib/drivers/dp14txss/examples/src/zcu_pt_dp14_hdcp/rx.c
void DpRxSs_InfoPacketHandler(void *InstancePtr)
{
	u32 InfoFrame[9];
	int i=0;
	for(i = 0 ; i < 8 ; i++) {
		if (tx_pass) {
			//Start putting into FIFO. These will be programmed into TX
			infofifo[(endindex*8)+i] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
					XDP_RX_AUDIO_INFO_DATA(1));
		} else {
			// Read of Ignore until TX is up and running
			XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
								XDP_RX_AUDIO_INFO_DATA(1));
		}
	}
	if (tx_pass) {
		if(endindex < (AUXFIFOSIZE - 1)) {
			endindex++;
		} else {
			endindex = 0;
		}

		if (fifocount >= AUXFIFOSIZE) {
	//		xil_printf ("Aux fifo overflow\r\n");
			fifoOverflow++;
		}

		fifocount++;
	}
}
/*****************************************************************************/
/**
*
* This function is the callback function for Info Packet Handling.
*
* @param    InstancePtr is a pointer to the XDpRxSs instance.
*
* @return    None.
*
* @note        None.
*
******************************************************************************/
This function is the callback function for Info Packet Handling.
This function is the callback function for Info Packet Handling .
void DpRxSs_InfoPacketHandler(void *InstancePtr)
{
	u32 InfoFrame[9];
	int i=0;
	for(i = 0 ; i < 8 ; i++) {
		if (tx_pass) {
			infofifo[(endindex*8)+i] = XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
					XDP_RX_AUDIO_INFO_DATA(1));
		} else {
			XDp_ReadReg(DpRxSsInst.DpPtr->Config.BaseAddr,
								XDP_RX_AUDIO_INFO_DATA(1));
		}
	}
	if (tx_pass) {
		if(endindex < (AUXFIFOSIZE - 1)) {
			endindex++;
		} else {
			endindex = 0;
		}
		if (fifocount >= AUXFIFOSIZE) {
			fifoOverflow++;
		}
		fifocount++;
	}
}
void DpRxSs_InfoPacketHandler ( void * InstancePtr ) { u32 InfoFrame [ 9 ] ; int i = 0 ; for ( i = 0 ; i < 8 ; i ++ ) { if ( tx_pass ) { infofifo [ ( endindex * 8 ) + i ] = XDp_ReadReg ( DpRxSsInst . DpPtr -> Config . BaseAddr , XDP_RX_AUDIO_INFO_DATA ( 1 ) ) ; } else { XDp_ReadReg ( DpRxSsInst . DpPtr -> Config . BaseAddr , XDP_RX_AUDIO_INFO_DATA ( 1 ) ) ; } } if ( tx_pass ) { if ( endindex < ( AUXFIFOSIZE - 1 ) ) { endindex ++ ; } else { endindex = 0 ; } if ( fifocount >= AUXFIFOSIZE ) { fifoOverflow ++ ; } fifocount ++ ; } }
This function is the callback function for Info Packet Handling.
This function is the callback function for Info Packet Handling .
//Start putting into FIFO. These will be programmed into TX // Read of Ignore until TX is up and running //		xil_printf ("Aux fifo overflow\r\n");