XilinxProcessorIPLib/drivers/dp14rxss/src/xdprxss.c
u32 XDpRxSs_SetLane(XDpRxSs *InstancePtr, u32 Lane)
{
	u32 Status = XST_SUCCESS;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr);
#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	Xil_AssertNonvoid(InstancePtr->Config.HdcpEnable);
#endif
#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	Xil_AssertNonvoid(InstancePtr->Config.Hdcp22Enable);
#endif
	Xil_AssertNonvoid((Lane == XDPRXSS_LANE_COUNT_SET_1) ||
			(Lane == XDPRXSS_LANE_COUNT_SET_2) ||
			(Lane == XDPRXSS_LANE_COUNT_SET_4));

#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	if (InstancePtr->Hdcp1xPtr) {
		/* Set lanes into the HDCP interface */
		Status = XHdcp1x_SetLaneCount(InstancePtr->Hdcp1xPtr, Lane);

		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
					"Set lane count is failed\n\r");
			return XST_FAILURE;
		}
	}
#endif

#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	if (InstancePtr->Hdcp22Ptr)
		XHdcp22_RxSetLaneCount(InstancePtr->Hdcp22Ptr, Lane);
#endif

	return Status;
}
/*****************************************************************************/
/**
*
* This function sets lane(s) of the HDCP interface.
*
* @param	InstancePtr is a pointer to the XDpRxSs core instance.
* @param	Lane is the number of lanes to be used.
*		- 1 = XDPRXSS_LANE_COUNT_SET_1
*		- 2 = XDPRXSS_LANE_COUNT_SET_2
*		- 4 = XDPRXSS_LANE_COUNT_SET_4
*
* @return
*		- XST_SUCCESS, if lane(s) into the HDCP i/f set successfully.
*		- XST_FAILURE, if failed to set lane(s) into the HDCP i/f.
*
* @note		None.
*
******************************************************************************/
This function sets lane(s) of the HDCP interface.
This function sets lane ( s ) of the HDCP interface .
u32 XDpRxSs_SetLane(XDpRxSs *InstancePtr, u32 Lane)
{
	u32 Status = XST_SUCCESS;
	Xil_AssertNonvoid(InstancePtr);
#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	Xil_AssertNonvoid(InstancePtr->Config.HdcpEnable);
#endif
#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	Xil_AssertNonvoid(InstancePtr->Config.Hdcp22Enable);
#endif
	Xil_AssertNonvoid((Lane == XDPRXSS_LANE_COUNT_SET_1) ||
			(Lane == XDPRXSS_LANE_COUNT_SET_2) ||
			(Lane == XDPRXSS_LANE_COUNT_SET_4));
#if (XPAR_DPRXSS_0_HDCP_ENABLE > 0)
	if (InstancePtr->Hdcp1xPtr) {
		Status = XHdcp1x_SetLaneCount(InstancePtr->Hdcp1xPtr, Lane);
		if (Status != XST_SUCCESS) {
			xdbg_printf(XDBG_DEBUG_GENERAL,
					"Set lane count is failed\n\r");
			return XST_FAILURE;
		}
	}
#endif
#if (XPAR_XHDCP22_RX_NUM_INSTANCES > 0)
	if (InstancePtr->Hdcp22Ptr)
		XHdcp22_RxSetLaneCount(InstancePtr->Hdcp22Ptr, Lane);
#endif
	return Status;
}
u32 XDpRxSs_SetLane ( XDpRxSs * InstancePtr , u32 Lane ) { u32 Status = XST_SUCCESS ; Xil_AssertNonvoid ( InstancePtr ) ; #if ( XPAR_DPRXSS_0_HDCP_ENABLE > 0 ) Xil_AssertNonvoid ( InstancePtr -> Config . HdcpEnable ) ; #endif #if ( XPAR_XHDCP22_RX_NUM_INSTANCES > 0 ) Xil_AssertNonvoid ( InstancePtr -> Config . Hdcp22Enable ) ; #endif Xil_AssertNonvoid ( ( Lane == XDPRXSS_LANE_COUNT_SET_1 ) || ( Lane == XDPRXSS_LANE_COUNT_SET_2 ) || ( Lane == XDPRXSS_LANE_COUNT_SET_4 ) ) ; #if ( XPAR_DPRXSS_0_HDCP_ENABLE > 0 ) if ( InstancePtr -> Hdcp1xPtr ) { Status = XHdcp1x_SetLaneCount ( InstancePtr -> Hdcp1xPtr , Lane ) ; if ( Status != XST_SUCCESS ) { xdbg_printf ( XDBG_DEBUG_GENERAL , " \n \r " ) ; return XST_FAILURE ; } } #endif #if ( XPAR_XHDCP22_RX_NUM_INSTANCES > 0 ) if ( InstancePtr -> Hdcp22Ptr ) XHdcp22_RxSetLaneCount ( InstancePtr -> Hdcp22Ptr , Lane ) ; #endif return Status ; }
This function sets lane(s) of the HDCP interface.
This function sets lane ( s ) of the HDCP interface .
/* Verify arguments. */ /* Set lanes into the HDCP interface */