XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
u32 XV_HdmiTxSs1_HdcpGetTopologyField(XV_HdmiTxSs1 *InstancePtr,
                                     XV_HdmiTxSs1_HdcpTopologyField Field)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Field < XV_HDMITXSS1_HDCP_TOPOLOGY_INVALID);

  switch (Field)
  {
      case XV_HDMITXSS1_HDCP_TOPOLOGY_DEPTH:
      return XV_HdmiTxSs1_HdcpGetTopologyDepth(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_DEVICECNT:
      return XV_HdmiTxSs1_HdcpGetTopologyDeviceCnt(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXDEVSEXCEEDED:
      return XV_HdmiTxSs1_HdcpGetTopologyMaxDevsExceeded(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED:
      return XV_HdmiTxSs1_HdcpGetTopologyMaxCascadeExceeded(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
      return XV_HdmiTxSs1_HdcpGetTopologyHdcp2LegacyDeviceDownstream(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM:
      return XV_HdmiTxSs1_HdcpGetTopologyHdcp1DeviceDownstream(InstancePtr);
    default:
      return 0;
  }
}
/*****************************************************************************/
/**
*
* This function gets various fields inside the HDCP repeater topology.
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
* @param Field indicates what field of the topology structure to update.
*
* @return XST_SUCCESS or XST_FAILURE.
*
* @note   None.
*
******************************************************************************/
This function gets various fields inside the HDCP repeater topology.
This function gets various fields inside the HDCP repeater topology .
u32 XV_HdmiTxSs1_HdcpGetTopologyField(XV_HdmiTxSs1 *InstancePtr,
                                     XV_HdmiTxSs1_HdcpTopologyField Field)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Field < XV_HDMITXSS1_HDCP_TOPOLOGY_INVALID);
  switch (Field)
  {
      case XV_HDMITXSS1_HDCP_TOPOLOGY_DEPTH:
      return XV_HdmiTxSs1_HdcpGetTopologyDepth(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_DEVICECNT:
      return XV_HdmiTxSs1_HdcpGetTopologyDeviceCnt(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXDEVSEXCEEDED:
      return XV_HdmiTxSs1_HdcpGetTopologyMaxDevsExceeded(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED:
      return XV_HdmiTxSs1_HdcpGetTopologyMaxCascadeExceeded(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
      return XV_HdmiTxSs1_HdcpGetTopologyHdcp2LegacyDeviceDownstream(InstancePtr);
      case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM:
      return XV_HdmiTxSs1_HdcpGetTopologyHdcp1DeviceDownstream(InstancePtr);
    default:
      return 0;
  }
}
u32 XV_HdmiTxSs1_HdcpGetTopologyField ( XV_HdmiTxSs1 * InstancePtr , XV_HdmiTxSs1_HdcpTopologyField Field ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( Field < XV_HDMITXSS1_HDCP_TOPOLOGY_INVALID ) ; switch ( Field ) { case XV_HDMITXSS1_HDCP_TOPOLOGY_DEPTH : return XV_HdmiTxSs1_HdcpGetTopologyDepth ( InstancePtr ) ; case XV_HDMITXSS1_HDCP_TOPOLOGY_DEVICECNT : return XV_HdmiTxSs1_HdcpGetTopologyDeviceCnt ( InstancePtr ) ; case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXDEVSEXCEEDED : return XV_HdmiTxSs1_HdcpGetTopologyMaxDevsExceeded ( InstancePtr ) ; case XV_HDMITXSS1_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED : return XV_HdmiTxSs1_HdcpGetTopologyMaxCascadeExceeded ( InstancePtr ) ; case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM : return XV_HdmiTxSs1_HdcpGetTopologyHdcp2LegacyDeviceDownstream ( InstancePtr ) ; case XV_HDMITXSS1_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM : return XV_HdmiTxSs1_HdcpGetTopologyHdcp1DeviceDownstream ( InstancePtr ) ; default : return 0 ; } }
This function gets various fields inside the HDCP repeater topology.
This function gets various fields inside the HDCP repeater topology .
/* Verify argument. */