XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
u32 XHdcp1x_TxGetTopologyMaxCascadeExceeded(XHdcp1x *InstancePtr)
{
	/* Verify arguments */
	Xil_AssertNonvoid(InstancePtr != NULL);

	u32 Buf;
	u32 Status;

#if (defined(XPAR_XV_HDMITX_NUM_INSTANCES) && \
     (XPAR_XV_HDMITX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMITX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMITX1_NUM_INSTANCES > 0))
	/* Read the BStatus Register */
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
			&Buf, XHDCP1X_PORT_SIZE_BSTATUS);

	/* BInfo : Max_device_exceeded[7] */
	Status = (Buf & XHDCP1X_PORT_BSTATUS_BIT_DEPTH_ERR)? TRUE : FALSE;
#else
	/* Read the BInfo Register */
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
			&Buf, XHDCP1X_PORT_SIZE_BINFO);

	/* BInfo : Max_device_exceeded[7] */
	Status = (Buf & XHDCP1X_PORT_BINFO_BIT_DEPTH_ERR)? TRUE : FALSE;
#endif

	return Status;
}
/*****************************************************************************/
/**
*
* This function returns the MAX_DEPTH_EXCEEDED flag in the repeater
* topology structure.
*
* @param    InstancePtr is a pointer to the XHdcp14 core instance.
*
* @return
*           - TRUE if MAX_DEPTH_EXCEEDED
*           - FALSE if not
*
* @note     None.
*
******************************************************************************/
This function returns the MAX_DEPTH_EXCEEDED flag in the repeater
topology structure.
This function returns the MAX_DEPTH_EXCEEDED flag in the repeater topology structure .
u32 XHdcp1x_TxGetTopologyMaxCascadeExceeded(XHdcp1x *InstancePtr)
{
	Xil_AssertNonvoid(InstancePtr != NULL);
	u32 Buf;
	u32 Status;
#if (defined(XPAR_XV_HDMITX_NUM_INSTANCES) && \
     (XPAR_XV_HDMITX_NUM_INSTANCES > 0)) || \
    (defined(XPAR_XV_HDMITX1_NUM_INSTANCES) && \
     (XPAR_XV_HDMITX1_NUM_INSTANCES > 0))
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BSTATUS,
			&Buf, XHDCP1X_PORT_SIZE_BSTATUS);
	Status = (Buf & XHDCP1X_PORT_BSTATUS_BIT_DEPTH_ERR)? TRUE : FALSE;
#else
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BINFO,
			&Buf, XHDCP1X_PORT_SIZE_BINFO);
	Status = (Buf & XHDCP1X_PORT_BINFO_BIT_DEPTH_ERR)? TRUE : FALSE;
#endif
	return Status;
}
u32 XHdcp1x_TxGetTopologyMaxCascadeExceeded ( XHdcp1x * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; u32 Buf ; u32 Status ; #if ( defined ( XPAR_XV_HDMITX_NUM_INSTANCES ) && ( XPAR_XV_HDMITX_NUM_INSTANCES > 0 ) ) || ( defined ( XPAR_XV_HDMITX1_NUM_INSTANCES ) && ( XPAR_XV_HDMITX1_NUM_INSTANCES > 0 ) ) XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BSTATUS , & Buf , XHDCP1X_PORT_SIZE_BSTATUS ) ; Status = ( Buf & XHDCP1X_PORT_BSTATUS_BIT_DEPTH_ERR ) ? TRUE : FALSE ; #else XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BINFO , & Buf , XHDCP1X_PORT_SIZE_BINFO ) ; Status = ( Buf & XHDCP1X_PORT_BINFO_BIT_DEPTH_ERR ) ? TRUE : FALSE ; #endif return Status ; }
This function returns the MAX_DEPTH_EXCEEDED flag in the repeater
topology structure.
This function returns the MAX_DEPTH_EXCEEDED flag in the repeater topology structure .
/* Verify arguments */ /* Read the BStatus Register */ /* BInfo : Max_device_exceeded[7] */ /* Read the BInfo Register */ /* BInfo : Max_device_exceeded[7] */