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

  u8 Flag = FALSE;

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

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    /* HDCP 2.2*/
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        Flag = XHdcp22Tx_GetTopologyField(InstancePtr->Hdcp22Ptr,
                 XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM);
      }
      break;
#endif

    default:
      Flag = FALSE;
  }

  return Flag;
}
/*****************************************************************************/
/**
*
* This function gets the HDCP repeater topology HDCP 1.x device downstream
* flag.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return
*   - TRUE if HDCP 1.x device is downstream.
*   - FALSE if HDCP 1.x device is not downstream.
*
* @note   None.
*
******************************************************************************/
This function gets the HDCP repeater topology HDCP 1.x device downstream
flag.
This function gets the HDCP repeater topology HDCP 1 . x device downstream flag .
static
   u8 XV_HdmiTxSs1_HdcpGetTopologyHdcp1DeviceDownstream(XV_HdmiTxSs1 *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  u8 Flag = FALSE;
  switch (InstancePtr->HdcpProtocol)
  {
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_14:
      if (InstancePtr->Hdcp14Ptr) {
        Flag = TRUE;
      }
      break;
#endif
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_HDCP_22:
      if (InstancePtr->Hdcp22Ptr) {
        Flag = XHdcp22Tx_GetTopologyField(InstancePtr->Hdcp22Ptr,
                 XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM);
      }
      break;
#endif
    default:
      Flag = FALSE;
  }
  return Flag;
}
static u8 XV_HdmiTxSs1_HdcpGetTopologyHdcp1DeviceDownstream ( XV_HdmiTxSs1 * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; u8 Flag = FALSE ; switch ( InstancePtr -> HdcpProtocol ) { #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_HDCP_14 : if ( InstancePtr -> Hdcp14Ptr ) { Flag = TRUE ; } break ; #endif #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_HDCP_22 : if ( InstancePtr -> Hdcp22Ptr ) { Flag = XHdcp22Tx_GetTopologyField ( InstancePtr -> Hdcp22Ptr , XHDCP22_TX_TOPOLOGY_HDCP1DEVICEDOWNSTREAM ) ; } break ; #endif default : Flag = FALSE ; } return Flag ; }
This function gets the HDCP repeater topology HDCP 1.x device downstream
flag.
This function gets the HDCP repeater topology HDCP 1 . x device downstream flag .
/* Verify argument. */ /* HDCP 1.4*/ /* HDCP 2.2*/