XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_rx.c
void XHdcp1x_RxSetTopologyMaxCascadeExceeded(XHdcp1x *InstancePtr, u8 Value)
{
#if (defined(XPAR_XV_HDMIRX_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMIRX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX1_NUM_INSTANCES > 0))

	u32 BStatus;

	/* Update the value of Max Devices exceeded in BStatus */
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
	BStatus |= (u32)(Value << XHDCP1X_PORT_BSTATUS_DEPTH_ERR_SHIFT);
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);

#else

	u32 BInfo;

	/* Update the value of Depth in BInfo */
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
		&BInfo, XHDCP1X_PORT_SIZE_BINFO);
	BInfo |= (Value << XHDCP1X_PORT_BINFO_DEPTH_ERR_SHIFT);
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
		&BInfo, XHDCP1X_PORT_SIZE_BINFO);

#endif
}
/*****************************************************************************/
/**
* This function sets the MAX_CASCADE_EXCEEDED error flag in the HDCP
* BStatus/BInfo register to indicate a topology error. Setting the flag
* indicates a depth of more than (4 - 1).
*
* @param    InstancePtr is a pointer to the Hdcp1x core instance.
* @param    Value is either TRUE or FALSE.
*
* @return   None.
*
* @note     None.
******************************************************************************/
This function sets the MAX_CASCADE_EXCEEDED error flag in the HDCP
BStatus/BInfo register to indicate a topology error. Setting the flag
indicates a depth of more than (4 - 1).
This function sets the MAX_CASCADE_EXCEEDED error flag in the HDCP BStatus / BInfo register to indicate a topology error . Setting the flag indicates a depth of more than ( 4 - 1 ) .
void XHdcp1x_RxSetTopologyMaxCascadeExceeded(XHdcp1x *InstancePtr, u8 Value)
{
#if (defined(XPAR_XV_HDMIRX_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMIRX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMIRX1_NUM_INSTANCES > 0))
	u32 BStatus;
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
	BStatus |= (u32)(Value << XHDCP1X_PORT_BSTATUS_DEPTH_ERR_SHIFT);
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
		&BStatus, XHDCP1X_PORT_SIZE_BSTATUS);
#else
	u32 BInfo;
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
		&BInfo, XHDCP1X_PORT_SIZE_BINFO);
	BInfo |= (Value << XHDCP1X_PORT_BINFO_DEPTH_ERR_SHIFT);
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
		&BInfo, XHDCP1X_PORT_SIZE_BINFO);
#endif
}
void XHdcp1x_RxSetTopologyMaxCascadeExceeded ( XHdcp1x * InstancePtr , u8 Value ) { #if ( defined ( XPAR_XV_HDMIRX_NUM_INSTANCES ) && ( XPAR_XV_HDMIRX_NUM_INSTANCES > 0 ) ) || ( defined ( XPAR_XV_HDMIRX1_NUM_INSTANCES ) && ( XPAR_XV_HDMIRX1_NUM_INSTANCES > 0 ) ) u32 BStatus ; XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BSTATUS , & BStatus , XHDCP1X_PORT_SIZE_BSTATUS ) ; BStatus |= ( u32 ) ( Value << XHDCP1X_PORT_BSTATUS_DEPTH_ERR_SHIFT ) ; XHdcp1x_PortWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BSTATUS , & BStatus , XHDCP1X_PORT_SIZE_BSTATUS ) ; #else u32 BInfo ; XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BINFO , & BInfo , XHDCP1X_PORT_SIZE_BINFO ) ; BInfo |= ( Value << XHDCP1X_PORT_BINFO_DEPTH_ERR_SHIFT ) ; XHdcp1x_PortWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BINFO , & BInfo , XHDCP1X_PORT_SIZE_BINFO ) ; #endif }
This function sets the MAX_CASCADE_EXCEEDED error flag in the HDCP
BStatus/BInfo register to indicate a topology error.
This function sets the MAX_CASCADE_EXCEEDED error flag in the HDCP BStatus / BInfo register to indicate a topology error .
/* Update the value of Max Devices exceeded in BStatus */ /* Update the value of Depth in BInfo */