XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
void *XV_HdmiTxSs1_HdcpGetTopology(XV_HdmiTxSs1 *InstancePtr)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);

  void *RepeaterTopologyPtr = NULL;

  switch (InstancePtr->HdcpProtocol)
  {
#ifdef XPAR_XHDCP_NUM_INSTANCES
    /* HDCP 1.4*/
    case XV_HDMITXSS1_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        RepeaterTopologyPtr = XHdcp1x_GetTopology(InstancePtr->Hdcp14Ptr);
      }
      break;
#endif

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    /* HDCP 2.2*/
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        RepeaterTopologyPtr = XHdcp22Tx_GetTopology(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif

    default:
      RepeaterTopologyPtr = NULL;
  }

  return RepeaterTopologyPtr;
}
/*****************************************************************************/
/**
*
* This function gets the HDCP repeater topology for the active protocol.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return Pointer to repeater topology structure.
*
* @note   None.
*
******************************************************************************/
This function gets the HDCP repeater topology for the active protocol.
This function gets the HDCP repeater topology for the active protocol .
void *XV_HdmiTxSs1_HdcpGetTopology(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  void *RepeaterTopologyPtr = NULL;
  switch (InstancePtr->HdcpProtocol)
  {
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        RepeaterTopologyPtr = XHdcp1x_GetTopology(InstancePtr->Hdcp14Ptr);
      }
      break;
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        RepeaterTopologyPtr = XHdcp22Tx_GetTopology(InstancePtr->Hdcp22Ptr);
      }
      break;
#endif
    default:
      RepeaterTopologyPtr = NULL;
  }
  return RepeaterTopologyPtr;
}
void * XV_HdmiTxSs1_HdcpGetTopology ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; void * RepeaterTopologyPtr = NULL ; switch ( InstancePtr -> HdcpProtocol ) { #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { RepeaterTopologyPtr = XHdcp1x_GetTopology ( InstancePtr -> Hdcp14Ptr ) ; } break ; #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { RepeaterTopologyPtr = XHdcp22Tx_GetTopology ( InstancePtr -> Hdcp22Ptr ) ; } break ; #endif default : RepeaterTopologyPtr = NULL ; } return RepeaterTopologyPtr ; }
This function gets the HDCP repeater topology for the active protocol.
This function gets the HDCP repeater topology for the active protocol .
/* Verify argument. */ /* HDCP 1.4*/ /* HDCP 2.2*/