XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/RepeaterProfessional/xhdcp.c
int XHdcp_Initialize(XHdcp_Repeater *InstancePtr)
{
  /* Verify arguments */
  Xil_AssertNonvoid(InstancePtr != NULL);

  /* Set default values */
#ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES
  InstancePtr->UpstreamInstanceBinded = 0;
  InstancePtr->UpstreamInstanceConnected = 0;
  InstancePtr->UpstreamInstanceStreamUp = 0;
#endif
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
  InstancePtr->DownstreamInstanceBinded = 0;
  InstancePtr->DownstreamInstanceConnected = 0;
  InstancePtr->DownstreamInstanceStreamUp = 0;
#endif
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
  InstancePtr->EnforceBlocking = (TRUE);
  InstancePtr->StreamType = XV_HDMITXSS_HDCP_STREAMTYPE_0;
#endif
#if defined (XPAR_XV_HDMITXSS_NUM_INSTANCES) && defined (XPAR_XV_HDMIRXSS_NUM_INSTANCES)
  memset(&InstancePtr->Topology, 0, sizeof(XHdcp_Topology));
#if ENABLE_HDCP_PRO
  memcpy(&InstancePtr->HdcpProTimestamp,
         &HdcpProRepeaterTimeStamp,
         sizeof(XHdcpPro_Timestamp));
#endif /* end of #if ENABLE_HDCP_PRO. */
#endif

  /* Instance is ready only after upstream and at least one downstream
     has been binded */
  InstancePtr->IsReady = (FALSE);

  return (XST_SUCCESS);
}
/*****************************************************************************/
/**
*
* This function is used to initialize the HDCP repeater instance.
*
* @param    InstancePtr is a pointer to the XHdcp_Repeater instance.
*
* @return   - XST_SUCCESS or XST_FAILURE
*
* @note	    None.
*
******************************************************************************/
This function is used to initialize the HDCP repeater instance.
This function is used to initialize the HDCP repeater instance .
int XHdcp_Initialize(XHdcp_Repeater *InstancePtr)
{
  Xil_AssertNonvoid(InstancePtr != NULL);
#ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES
  InstancePtr->UpstreamInstanceBinded = 0;
  InstancePtr->UpstreamInstanceConnected = 0;
  InstancePtr->UpstreamInstanceStreamUp = 0;
#endif
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
  InstancePtr->DownstreamInstanceBinded = 0;
  InstancePtr->DownstreamInstanceConnected = 0;
  InstancePtr->DownstreamInstanceStreamUp = 0;
#endif
#ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES
  InstancePtr->EnforceBlocking = (TRUE);
  InstancePtr->StreamType = XV_HDMITXSS_HDCP_STREAMTYPE_0;
#endif
#if defined (XPAR_XV_HDMITXSS_NUM_INSTANCES) && defined (XPAR_XV_HDMIRXSS_NUM_INSTANCES)
  memset(&InstancePtr->Topology, 0, sizeof(XHdcp_Topology));
#if ENABLE_HDCP_PRO
  memcpy(&InstancePtr->HdcpProTimestamp,
         &HdcpProRepeaterTimeStamp,
         sizeof(XHdcpPro_Timestamp));
#endif 
#endif
  InstancePtr->IsReady = (FALSE);
  return (XST_SUCCESS);
}
int XHdcp_Initialize ( XHdcp_Repeater * InstancePtr ) { Xil_AssertNonvoid ( InstancePtr != NULL ) ; #ifdef XPAR_XV_HDMIRXSS_NUM_INSTANCES InstancePtr -> UpstreamInstanceBinded = 0 ; InstancePtr -> UpstreamInstanceConnected = 0 ; InstancePtr -> UpstreamInstanceStreamUp = 0 ; #endif #ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES InstancePtr -> DownstreamInstanceBinded = 0 ; InstancePtr -> DownstreamInstanceConnected = 0 ; InstancePtr -> DownstreamInstanceStreamUp = 0 ; #endif #ifdef XPAR_XV_HDMITXSS_NUM_INSTANCES InstancePtr -> EnforceBlocking = ( TRUE ) ; InstancePtr -> StreamType = XV_HDMITXSS_HDCP_STREAMTYPE_0 ; #endif #if defined ( XPAR_XV_HDMITXSS_NUM_INSTANCES ) && defined ( XPAR_XV_HDMIRXSS_NUM_INSTANCES ) memset ( & InstancePtr -> Topology , 0 , sizeof ( XHdcp_Topology ) ) ; #if ENABLE_HDCP_PRO memcpy ( & InstancePtr -> HdcpProTimestamp , & HdcpProRepeaterTimeStamp , sizeof ( XHdcpPro_Timestamp ) ) ; #endif #endif InstancePtr -> IsReady = ( FALSE ) ; return ( XST_SUCCESS ) ; }
This function is used to initialize the HDCP repeater instance.
This function is used to initialize the HDCP repeater instance .
/* Verify arguments */ /* Set default values */ /* end of #if ENABLE_HDCP_PRO. */ /* Instance is ready only after upstream and at least one downstream
     has been binded */