XilinxProcessorIPLib/drivers/dp14rxss/src/xdprxss.c
int XDpRxSs_GetVtotal(XDpRxSs *InstancePtr, u8 Stream)
{
	u32 VTotal;

	/* Verify arguments.*/
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((Stream == XDP_TX_STREAM_ID1) ||
			(Stream == XDP_TX_STREAM_ID2) ||
			(Stream == XDP_TX_STREAM_ID3) ||
			(Stream == XDP_TX_STREAM_ID4));

	u32 StreamOffset[4] = {XDP_RX_STREAM1_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM2_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM3_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM4_ADAPTIVE_VBLANK_VTOTAL};

	/* Get stream map of the stream(s) */
	VTotal = XDpRxSs_ReadReg(InstancePtr->DpPtr->Config.BaseAddr,
				 StreamOffset[Stream - XDP_TX_STREAM_ID1]);
	VTotal = VTotal >> XDP_RX_ADAPTIVE_VTOTAL_SHIFT;

	return VTotal;
}
/*****************************************************************************/
/**
*
* This function retrieves the current VTotal value of
* the incoming video stream.
*
* @param	InstancePtr is a pointer to the XDpRxSs core instance.
* @Stream	Stream is the stream number to get the vtotal.
*
* Note: This function has to be called after
* assertion Bit-30 of XDP_RX_INTERRUPT_CAUSE_2 register
*
* @return
*		- The current VTotal value
*
* @note		This function has to be called after
		assertion of Bit-30 of XDP_RX_INTERRUPT_CAUSE_2
		register
*
******************************************************************************/
This function retrieves the current VTotal value of
the incoming video stream.
This function retrieves the current VTotal value of the incoming video stream .
int XDpRxSs_GetVtotal(XDpRxSs *InstancePtr, u8 Stream)
{
	u32 VTotal;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid((Stream == XDP_TX_STREAM_ID1) ||
			(Stream == XDP_TX_STREAM_ID2) ||
			(Stream == XDP_TX_STREAM_ID3) ||
			(Stream == XDP_TX_STREAM_ID4));
	u32 StreamOffset[4] = {XDP_RX_STREAM1_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM2_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM3_ADAPTIVE_VBLANK_VTOTAL,
			XDP_RX_STREAM4_ADAPTIVE_VBLANK_VTOTAL};
	VTotal = XDpRxSs_ReadReg(InstancePtr->DpPtr->Config.BaseAddr,
				 StreamOffset[Stream - XDP_TX_STREAM_ID1]);
	VTotal = VTotal >> XDP_RX_ADAPTIVE_VTOTAL_SHIFT;
	return VTotal;
}
int XDpRxSs_GetVtotal ( XDpRxSs * InstancePtr , u8 Stream ) { u32 VTotal ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( ( Stream == XDP_TX_STREAM_ID1 ) || ( Stream == XDP_TX_STREAM_ID2 ) || ( Stream == XDP_TX_STREAM_ID3 ) || ( Stream == XDP_TX_STREAM_ID4 ) ) ; u32 StreamOffset [ 4 ] = { XDP_RX_STREAM1_ADAPTIVE_VBLANK_VTOTAL , XDP_RX_STREAM2_ADAPTIVE_VBLANK_VTOTAL , XDP_RX_STREAM3_ADAPTIVE_VBLANK_VTOTAL , XDP_RX_STREAM4_ADAPTIVE_VBLANK_VTOTAL } ; VTotal = XDpRxSs_ReadReg ( InstancePtr -> DpPtr -> Config . BaseAddr , StreamOffset [ Stream - XDP_TX_STREAM_ID1 ] ) ; VTotal = VTotal >> XDP_RX_ADAPTIVE_VTOTAL_SHIFT ; return VTotal ; }
This function retrieves the current VTotal value of
the incoming video stream.
This function retrieves the current VTotal value of the incoming video stream .
/* Verify arguments.*/ /* Get stream map of the stream(s) */