XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss_hdcp.c
void XV_HdmiRxSs_HdcpSetKey(XV_HdmiRxSs *InstancePtr, XV_HdmiRxSs_HdcpKeyType KeyType, u8 *KeyPtr)
{
  /* Verify argument. */
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid((KeyType == XV_HDMIRXSS_KEY_HDCP22_LC128)   ||
                   (KeyType == XV_HDMIRXSS_KEY_HDCP22_PRIVATE)   ||
                    (KeyType == XV_HDMIRXSS_KEY_HDCP14));

  switch (KeyType) {

#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    // HDCP 2.2 LC128
    case XV_HDMIRXSS_KEY_HDCP22_LC128 :
      InstancePtr->Hdcp22Lc128Ptr = KeyPtr;
      break;

    // HDCP 2.2 Private key
    case XV_HDMIRXSS_KEY_HDCP22_PRIVATE :
      InstancePtr->Hdcp22PrivateKeyPtr = KeyPtr;
      break;
#endif

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

    default :
      break;
  }
}
/*****************************************************************************/
/**
*
* This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys.
*
* @param InstancePtr is a pointer to the XV_HdmiRxSs instance.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys.
This function sets pointers to the HDCP 1 . 4 and HDCP 2 . 2 keys .
void XV_HdmiRxSs_HdcpSetKey(XV_HdmiRxSs *InstancePtr, XV_HdmiRxSs_HdcpKeyType KeyType, u8 *KeyPtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid((KeyType == XV_HDMIRXSS_KEY_HDCP22_LC128)   ||
                   (KeyType == XV_HDMIRXSS_KEY_HDCP22_PRIVATE)   ||
                    (KeyType == XV_HDMIRXSS_KEY_HDCP14));
  switch (KeyType) {
#ifdef XPAR_XHDCP22_RX_NUM_INSTANCES
    case XV_HDMIRXSS_KEY_HDCP22_LC128 :
      InstancePtr->Hdcp22Lc128Ptr = KeyPtr;
      break;
    case XV_HDMIRXSS_KEY_HDCP22_PRIVATE :
      InstancePtr->Hdcp22PrivateKeyPtr = KeyPtr;
      break;
#endif
#ifdef XPAR_XHDCP_NUM_INSTANCES
    case XV_HDMIRXSS_KEY_HDCP14 :
      InstancePtr->Hdcp14KeyPtr = KeyPtr;
#endif
      break;
    default :
      break;
  }
}
void XV_HdmiRxSs_HdcpSetKey ( XV_HdmiRxSs * InstancePtr , XV_HdmiRxSs_HdcpKeyType KeyType , u8 * KeyPtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( ( KeyType == XV_HDMIRXSS_KEY_HDCP22_LC128 ) || ( KeyType == XV_HDMIRXSS_KEY_HDCP22_PRIVATE ) || ( KeyType == XV_HDMIRXSS_KEY_HDCP14 ) ) ; switch ( KeyType ) { #ifdef XPAR_XHDCP22_RX_NUM_INSTANCES case XV_HDMIRXSS_KEY_HDCP22_LC128 : InstancePtr -> Hdcp22Lc128Ptr = KeyPtr ; break ; case XV_HDMIRXSS_KEY_HDCP22_PRIVATE : InstancePtr -> Hdcp22PrivateKeyPtr = KeyPtr ; break ; #endif #ifdef XPAR_XHDCP_NUM_INSTANCES case XV_HDMIRXSS_KEY_HDCP14 : InstancePtr -> Hdcp14KeyPtr = KeyPtr ; #endif break ; default : break ; } }
This function sets pointers to the HDCP 1.4 and HDCP 2.2 keys.
This function sets pointers to the HDCP 1 . 4 and HDCP 2 . 2 keys .
/* Verify argument. */ // HDCP 2.2 LC128 // HDCP 2.2 Private key // HDCP 1.4