XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
int XV_HdmiRxSs_HdcpSetTopologyField(XV_HdmiRxSs *InstancePtr,
      XV_HdmiRxSs_HdcpTopologyField Field, u32 Value)
{
  /* Verify argument. */
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Field < XV_HDMIRXSS_HDCP_TOPOLOGY_INVALID);

  switch (Field)
  {
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_DEPTH:
      return XV_HdmiRxSs_HdcpSetTopologyDepth(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_DEVICECNT:
      return XV_HdmiRxSs_HdcpSetTopologyDeviceCnt(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXDEVSEXCEEDED:
      return XV_HdmiRxSs_HdcpSetTopologyMaxDevsExceeded(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED:
      return XV_HdmiRxSs_HdcpSetTopologyMaxCascadeExceeded(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
      return XV_HdmiRxSs_HdcpSetTopologyHdcp2LegacyDeviceDownstream(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM:
      return XV_HdmiRxSs_HdcpSetTopologyHdcp1DeviceDownstream(InstancePtr, Value);
    default:
      return XST_FAILURE;
  }
}
/*****************************************************************************/
/**
*
* This function sets various fields inside the HDCP repeater topology.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
* @param Field indicates what field of the topology structure to update.
* @param Value is the value assigned to the field of the topology structure.
*
* @return XST_SUCCESS or XST_FAILURE.
*
* @note   None.
*
******************************************************************************/
This function sets various fields inside the HDCP repeater topology.
This function sets various fields inside the HDCP repeater topology .
int XV_HdmiRxSs_HdcpSetTopologyField(XV_HdmiRxSs *InstancePtr,
      XV_HdmiRxSs_HdcpTopologyField Field, u32 Value)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
  Xil_AssertNonvoid(Field < XV_HDMIRXSS_HDCP_TOPOLOGY_INVALID);
  switch (Field)
  {
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_DEPTH:
      return XV_HdmiRxSs_HdcpSetTopologyDepth(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_DEVICECNT:
      return XV_HdmiRxSs_HdcpSetTopologyDeviceCnt(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXDEVSEXCEEDED:
      return XV_HdmiRxSs_HdcpSetTopologyMaxDevsExceeded(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED:
      return XV_HdmiRxSs_HdcpSetTopologyMaxCascadeExceeded(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM:
      return XV_HdmiRxSs_HdcpSetTopologyHdcp2LegacyDeviceDownstream(InstancePtr, Value);
	  case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM:
      return XV_HdmiRxSs_HdcpSetTopologyHdcp1DeviceDownstream(InstancePtr, Value);
    default:
      return XST_FAILURE;
  }
}
int XV_HdmiRxSs_HdcpSetTopologyField ( XV_HdmiRxSs * InstancePtr , XV_HdmiRxSs_HdcpTopologyField Field , u32 Value ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( Field < XV_HDMIRXSS_HDCP_TOPOLOGY_INVALID ) ; switch ( Field ) { case XV_HDMIRXSS_HDCP_TOPOLOGY_DEPTH : return XV_HdmiRxSs_HdcpSetTopologyDepth ( InstancePtr , Value ) ; case XV_HDMIRXSS_HDCP_TOPOLOGY_DEVICECNT : return XV_HdmiRxSs_HdcpSetTopologyDeviceCnt ( InstancePtr , Value ) ; case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXDEVSEXCEEDED : return XV_HdmiRxSs_HdcpSetTopologyMaxDevsExceeded ( InstancePtr , Value ) ; case XV_HDMIRXSS_HDCP_TOPOLOGY_MAXCASCADEEXCEEDED : return XV_HdmiRxSs_HdcpSetTopologyMaxCascadeExceeded ( InstancePtr , Value ) ; case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP2LEGACYDEVICEDOWNSTREAM : return XV_HdmiRxSs_HdcpSetTopologyHdcp2LegacyDeviceDownstream ( InstancePtr , Value ) ; case XV_HDMIRXSS_HDCP_TOPOLOGY_HDCP1DEVICEDOWNSTREAM : return XV_HdmiRxSs_HdcpSetTopologyHdcp1DeviceDownstream ( InstancePtr , Value ) ; default : return XST_FAILURE ; } }
This function sets various fields inside the HDCP repeater topology.
This function sets various fields inside the HDCP repeater topology .
/* Verify argument. */