XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
int XV_HdmiRxSs_HdcpSetTopologyUpdate(XV_HdmiRxSs *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  int Status = XST_SUCCESS;

  switch (InstancePtr->HdcpProtocol)
  {
    // None
    case XV_HDMIRXSS_HDCP_NONE:
      Status = XST_FAILURE;
      break;

#ifdef XPAR_XHDCP_NUM_INSTANCES
    // HDCP 1.4
    case XV_HDMIRXSS_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        XHdcp1x_SetTopologyUpdate(InstancePtr->Hdcp14Ptr);
      } else {
        Status = XST_FAILURE;
      }
      break;
#endif

#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    // HDCP 2.2
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        XHdcp22Rx_SetTopologyUpdate(InstancePtr->Hdcp22Ptr);
      } else {
        Status = XST_FAILURE;
      }
      break;
#endif

    default:
      Status = XST_FAILURE;
      break;
  }

  return Status;
}
/*****************************************************************************/
/**
*
* This function sets the HDCP repeater topology update flag, indicating that
* the topology is ready for upstream propagation.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
* @param Value is either TRUE or FALSE.
*
* @return XST_SUCCESS or XST_FAILURE.
*
* @note   None.
*
******************************************************************************/
This function sets the HDCP repeater topology update flag, indicating that
the topology is ready for upstream propagation.
This function sets the HDCP repeater topology update flag indicating that the topology is ready for upstream propagation .
int XV_HdmiRxSs_HdcpSetTopologyUpdate(XV_HdmiRxSs *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  int Status = XST_SUCCESS;
  switch (InstancePtr->HdcpProtocol)
  {
    case XV_HDMIRXSS_HDCP_NONE:
      Status = XST_FAILURE;
      break;
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        XHdcp1x_SetTopologyUpdate(InstancePtr->Hdcp14Ptr);
      } else {
        Status = XST_FAILURE;
      }
      break;
#endif
#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        XHdcp22Rx_SetTopologyUpdate(InstancePtr->Hdcp22Ptr);
      } else {
        Status = XST_FAILURE;
      }
      break;
#endif
    default:
      Status = XST_FAILURE;
      break;
  }
  return Status;
}
int XV_HdmiRxSs_HdcpSetTopologyUpdate ( XV_HdmiRxSs * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; int Status = XST_SUCCESS ; switch ( InstancePtr -> HdcpProtocol ) { case XV_HDMIRXSS_HDCP_NONE : Status = XST_FAILURE ; break ; #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMIRXSS_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { XHdcp1x_SetTopologyUpdate ( InstancePtr -> Hdcp14Ptr ) ; } else { Status = XST_FAILURE ; } break ; #endif #ifdef XPAR_XHDCP22_RX_NUM_INSTANCES case XV_HDMIRXSS_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { XHdcp22Rx_SetTopologyUpdate ( InstancePtr -> Hdcp22Ptr ) ; } else { Status = XST_FAILURE ; } break ; #endif default : Status = XST_FAILURE ; break ; } return Status ; }
This function sets the HDCP repeater topology update flag, indicating that
the topology is ready for upstream propagation.
This function sets the HDCP repeater topology update flag indicating that the topology is ready for upstream propagation .
/* Verify argument. */ // None // HDCP 1.4 // HDCP 2.2