XilinxProcessorIPLib/drivers/v_hdmitxss1/src/xv_hdmitxss1_hdcp.c
void XV_HdmiTxSs1_HdcpSetKey(XV_HdmiTxSs1 *InstancePtr,
                            XV_HdmiTxSs1_HdcpKeyType KeyType,
                            u8 *KeyPtr)
{
  /* Verify argument. */
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(KeyType <= XV_HDMITXSS1_KEY_INVALID);

  switch (KeyType) {

#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    /* HDCP 2.2 LC128*/
    case XV_HDMITXSS1_KEY_HDCP22_LC128 :
      InstancePtr->Hdcp22Lc128Ptr = KeyPtr;
      break;

    /* HDCP 2.2 SRM*/
    case XV_HDMITXSS1_KEY_HDCP22_SRM :
      InstancePtr->Hdcp22SrmPtr = KeyPtr;
      break;
#endif

#ifdef XPAR_XHDCP_NUM_INSTANCES
    /* HDCP 1.4*/
    case XV_HDMITXSS1_KEY_HDCP14 :
      InstancePtr->Hdcp14KeyPtr = KeyPtr;
      break;

    /* HDCP 1.4 SRM*/
    case XV_HDMITXSS1_KEY_HDCP14_SRM :
      InstancePtr->Hdcp14SrmPtr = KeyPtr;
      break;
#endif

    default :
      break;
  }
}
/*****************************************************************************/
/**
*
* This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys and
* System Renewability Message (SRM).
*
* @param InstancePtr is a pointer to the XV_HdmiTxSs1 instance.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys and
System Renewability Message (SRM).
This function sets pointers to the HDCP 1 . 4 and HDCP 2 . 2 keys and System Renewability Message ( SRM ) .
void XV_HdmiTxSs1_HdcpSetKey(XV_HdmiTxSs1 *InstancePtr,
                            XV_HdmiTxSs1_HdcpKeyType KeyType,
                            u8 *KeyPtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(KeyType <= XV_HDMITXSS1_KEY_INVALID);
  switch (KeyType) {
#ifdef XPAR_XHDCP22_TX_NUM_INSTANCES
    case XV_HDMITXSS1_KEY_HDCP22_LC128 :
      InstancePtr->Hdcp22Lc128Ptr = KeyPtr;
      break;
    case XV_HDMITXSS1_KEY_HDCP22_SRM :
      InstancePtr->Hdcp22SrmPtr = KeyPtr;
      break;
#endif
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMITXSS1_KEY_HDCP14 :
      InstancePtr->Hdcp14KeyPtr = KeyPtr;
      break;
    case XV_HDMITXSS1_KEY_HDCP14_SRM :
      InstancePtr->Hdcp14SrmPtr = KeyPtr;
      break;
#endif
    default :
      break;
  }
}
void XV_HdmiTxSs1_HdcpSetKey ( XV_HdmiTxSs1 * InstancePtr , XV_HdmiTxSs1_HdcpKeyType KeyType , u8 * KeyPtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( KeyType <= XV_HDMITXSS1_KEY_INVALID ) ; switch ( KeyType ) { #ifdef XPAR_XHDCP22_TX_NUM_INSTANCES case XV_HDMITXSS1_KEY_HDCP22_LC128 : InstancePtr -> Hdcp22Lc128Ptr = KeyPtr ; break ; case XV_HDMITXSS1_KEY_HDCP22_SRM : InstancePtr -> Hdcp22SrmPtr = KeyPtr ; break ; #endif #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMITXSS1_KEY_HDCP14 : InstancePtr -> Hdcp14KeyPtr = KeyPtr ; break ; case XV_HDMITXSS1_KEY_HDCP14_SRM : InstancePtr -> Hdcp14SrmPtr = KeyPtr ; break ; #endif default : break ; } }
This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys and
System Renewability Message (SRM).
This function sets pointers to the HDCP 1 . 4 and HDCP 2 . 2 keys and System Renewability Message ( SRM ) .
/* Verify argument. */ /* HDCP 2.2 LC128*/ /* HDCP 2.2 SRM*/ /* HDCP 1.4*/ /* HDCP 1.4 SRM*/