XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_tx.c
int XHdcp1x_TxInfo(const XHdcp1x *InstancePtr)
{
	u64 LocalKsv = 0;
	u32 Version = 0;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);

	/* Display it */
	XHDCP1X_DEBUG_PRINTF("Type:            ");
	if (InstancePtr->Config.IsHDMI) {
		XHDCP1X_DEBUG_PRINTF("hdmi-tx\r\n");
	}
	else {
		XHDCP1X_DEBUG_PRINTF("dp-tx\r\n");
	}
	XHDCP1X_DEBUG_PRINTF("Current State:   %s\r\n",
			XHdcp1x_TxStateToString(InstancePtr->Tx.CurrentState));
	XHDCP1X_DEBUG_PRINTF("Previous State:  %s\r\n",
			XHdcp1x_TxStateToString(InstancePtr->Tx.PreviousState));
	XHDCP1X_DEBUG_PRINTF("Encrypted?:      %s\r\n",
			XHdcp1x_IsEncrypted(InstancePtr) ? "Yes" : "No");
	XHDCP1X_DEBUG_PRINTF("State Helper:    %016llX\r\n",
			InstancePtr->Tx.StateHelper);
	XHDCP1X_DEBUG_PRINTF("Flags:           %04X\r\n",
			InstancePtr->Tx.Flags);
	XHDCP1X_DEBUG_PRINTF("Encryption Map:  %016llX\r\n",
			InstancePtr->Tx.EncryptionMap);
	Version = XHdcp1x_GetDriverVersion();
	XHDCP1X_DEBUG_PRINTF("Driver Version:  %d.%02d.%02d\r\n",
			((Version >> 16) &0xFFFFu), ((Version >> 8) & 0xFFu),
			(Version & 0xFFu));
	Version = XHdcp1x_CipherGetVersion(InstancePtr);
	XHDCP1X_DEBUG_PRINTF("Cipher Version:  %d.%02d.%02d\r\n",
			((Version >> 16) &0xFFFFu), ((Version >> 8) & 0xFFu),
			(Version & 0xFFu));
	LocalKsv = XHdcp1x_CipherGetLocalKsv(InstancePtr);
	XHDCP1X_DEBUG_PRINTF("Local KSV:       %02lX", (LocalKsv >> 32));
	XHDCP1X_DEBUG_PRINTF("%08lX\r\n", (LocalKsv & 0xFFFFFFFFu));

	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Tx Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Auth Passed:     %d\r\n",
			InstancePtr->Tx.Stats.AuthPassed);
	XHDCP1X_DEBUG_PRINTF("Auth Failed:     %d\r\n",
			InstancePtr->Tx.Stats.AuthFailed);
	XHDCP1X_DEBUG_PRINTF("Reauth Requests: %d\r\n",
			InstancePtr->Tx.Stats.ReauthRequested);
	XHDCP1X_DEBUG_PRINTF("Check Passed:    %d\r\n",
			InstancePtr->Tx.Stats.LinkCheckPassed);
	XHDCP1X_DEBUG_PRINTF("Check Failed:    %d\r\n",
			InstancePtr->Tx.Stats.LinkCheckFailed);
	XHDCP1X_DEBUG_PRINTF("Read Failures:   %d\r\n",
			InstancePtr->Tx.Stats.ReadFailures);

	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Cipher Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Int Count:       %d\r\n",
			InstancePtr->Cipher.Stats.IntCount);

	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Port Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Int Count:       %d\r\n",
			InstancePtr->Port.Stats.IntCount);

	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
* This function implements the debug display output for transmit instances.
*
* @param	InstancePtr is the receiver instance.
*
* @return
*		- XST_SUCCESS if successful.
*
* @note		None.
*
******************************************************************************/
This function implements the debug display output for transmit instances.
This function implements the debug display output for transmit instances .
int XHdcp1x_TxInfo(const XHdcp1x *InstancePtr)
{
	u64 LocalKsv = 0;
	u32 Version = 0;
	Xil_AssertNonvoid(InstancePtr != NULL);
	XHDCP1X_DEBUG_PRINTF("Type:            ");
	if (InstancePtr->Config.IsHDMI) {
		XHDCP1X_DEBUG_PRINTF("hdmi-tx\r\n");
	}
	else {
		XHDCP1X_DEBUG_PRINTF("dp-tx\r\n");
	}
	XHDCP1X_DEBUG_PRINTF("Current State:   %s\r\n",
			XHdcp1x_TxStateToString(InstancePtr->Tx.CurrentState));
	XHDCP1X_DEBUG_PRINTF("Previous State:  %s\r\n",
			XHdcp1x_TxStateToString(InstancePtr->Tx.PreviousState));
	XHDCP1X_DEBUG_PRINTF("Encrypted?:      %s\r\n",
			XHdcp1x_IsEncrypted(InstancePtr) ? "Yes" : "No");
	XHDCP1X_DEBUG_PRINTF("State Helper:    %016llX\r\n",
			InstancePtr->Tx.StateHelper);
	XHDCP1X_DEBUG_PRINTF("Flags:           %04X\r\n",
			InstancePtr->Tx.Flags);
	XHDCP1X_DEBUG_PRINTF("Encryption Map:  %016llX\r\n",
			InstancePtr->Tx.EncryptionMap);
	Version = XHdcp1x_GetDriverVersion();
	XHDCP1X_DEBUG_PRINTF("Driver Version:  %d.%02d.%02d\r\n",
			((Version >> 16) &0xFFFFu), ((Version >> 8) & 0xFFu),
			(Version & 0xFFu));
	Version = XHdcp1x_CipherGetVersion(InstancePtr);
	XHDCP1X_DEBUG_PRINTF("Cipher Version:  %d.%02d.%02d\r\n",
			((Version >> 16) &0xFFFFu), ((Version >> 8) & 0xFFu),
			(Version & 0xFFu));
	LocalKsv = XHdcp1x_CipherGetLocalKsv(InstancePtr);
	XHDCP1X_DEBUG_PRINTF("Local KSV:       %02lX", (LocalKsv >> 32));
	XHDCP1X_DEBUG_PRINTF("%08lX\r\n", (LocalKsv & 0xFFFFFFFFu));
	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Tx Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Auth Passed:     %d\r\n",
			InstancePtr->Tx.Stats.AuthPassed);
	XHDCP1X_DEBUG_PRINTF("Auth Failed:     %d\r\n",
			InstancePtr->Tx.Stats.AuthFailed);
	XHDCP1X_DEBUG_PRINTF("Reauth Requests: %d\r\n",
			InstancePtr->Tx.Stats.ReauthRequested);
	XHDCP1X_DEBUG_PRINTF("Check Passed:    %d\r\n",
			InstancePtr->Tx.Stats.LinkCheckPassed);
	XHDCP1X_DEBUG_PRINTF("Check Failed:    %d\r\n",
			InstancePtr->Tx.Stats.LinkCheckFailed);
	XHDCP1X_DEBUG_PRINTF("Read Failures:   %d\r\n",
			InstancePtr->Tx.Stats.ReadFailures);
	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Cipher Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Int Count:       %d\r\n",
			InstancePtr->Cipher.Stats.IntCount);
	XHDCP1X_DEBUG_PRINTF("\r\n");
	XHDCP1X_DEBUG_PRINTF("Port Stats\r\n");
	XHDCP1X_DEBUG_PRINTF("Int Count:       %d\r\n",
			InstancePtr->Port.Stats.IntCount);
	return (XST_SUCCESS);
}
int XHdcp1x_TxInfo ( const XHdcp1x * InstancePtr ) { u64 LocalKsv = 0 ; u32 Version = 0 ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; XHDCP1X_DEBUG_PRINTF ( " " ) ; if ( InstancePtr -> Config . IsHDMI ) { XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; } else { XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; } XHDCP1X_DEBUG_PRINTF ( " \r \n " , XHdcp1x_TxStateToString ( InstancePtr -> Tx . CurrentState ) ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , XHdcp1x_TxStateToString ( InstancePtr -> Tx . PreviousState ) ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , XHdcp1x_IsEncrypted ( InstancePtr ) ? " " : " " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . StateHelper ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Flags ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . EncryptionMap ) ; Version = XHdcp1x_GetDriverVersion ( ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , ( ( Version >> 16 ) & 0xFFFFu ) , ( ( Version >> 8 ) & 0xFFu ) , ( Version & 0xFFu ) ) ; Version = XHdcp1x_CipherGetVersion ( InstancePtr ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , ( ( Version >> 16 ) & 0xFFFFu ) , ( ( Version >> 8 ) & 0xFFu ) , ( Version & 0xFFu ) ) ; LocalKsv = XHdcp1x_CipherGetLocalKsv ( InstancePtr ) ; XHDCP1X_DEBUG_PRINTF ( " " , ( LocalKsv >> 32 ) ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , ( LocalKsv & 0xFFFFFFFFu ) ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . AuthPassed ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . AuthFailed ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . ReauthRequested ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . LinkCheckPassed ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . LinkCheckFailed ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Tx . Stats . ReadFailures ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Cipher . Stats . IntCount ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " ) ; XHDCP1X_DEBUG_PRINTF ( " \r \n " , InstancePtr -> Port . Stats . IntCount ) ; return ( XST_SUCCESS ) ; }
This function implements the debug display output for transmit instances.
This function implements the debug display output for transmit instances .
/* Verify arguments. */ /* Display it */