XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_cipher.c
int XHdcp1x_CipherIsLinkUp(const XHdcp1x *InstancePtr)
{
	u32 Value;
	int IsUp = FALSE;

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

	/* Check for currently enabled */
	if (XHdcp1x_CipherIsEnabled(InstancePtr)) {
		Value = XHdcp1x_ReadReg(InstancePtr->Config.BaseAddress,
			XHDCP1X_CIPHER_REG_STATUS);
		if ((Value &
			XHDCP1X_CIPHER_BITMASK_INTERRUPT_LINK_FAIL) != 0) {
			IsUp = TRUE;
		}
	}

	return (IsUp);
}
/*****************************************************************************/
/**
* This function queries the link state of a cipher device.
*
* @param	InstancePtr is	the device to query.
*
* @return	Truth value.
*
* @note		None.
*
******************************************************************************/
This function queries the link state of a cipher device.
This function queries the link state of a cipher device .
int XHdcp1x_CipherIsLinkUp(const XHdcp1x *InstancePtr)
{
	u32 Value;
	int IsUp = FALSE;
	Xil_AssertNonvoid(InstancePtr != NULL);
	if (XHdcp1x_CipherIsEnabled(InstancePtr)) {
		Value = XHdcp1x_ReadReg(InstancePtr->Config.BaseAddress,
			XHDCP1X_CIPHER_REG_STATUS);
		if ((Value &
			XHDCP1X_CIPHER_BITMASK_INTERRUPT_LINK_FAIL) != 0) {
			IsUp = TRUE;
		}
	}
	return (IsUp);
}
int XHdcp1x_CipherIsLinkUp ( const XHdcp1x * InstancePtr ) { u32 Value ; int IsUp = FALSE ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( XHdcp1x_CipherIsEnabled ( InstancePtr ) ) { Value = XHdcp1x_ReadReg ( InstancePtr -> Config . BaseAddress , XHDCP1X_CIPHER_REG_STATUS ) ; if ( ( Value & XHDCP1X_CIPHER_BITMASK_INTERRUPT_LINK_FAIL ) != 0 ) { IsUp = TRUE ; } } return ( IsUp ) ; }
This function queries the link state of a cipher device.
This function queries the link state of a cipher device .
/* Verify arguments. */ /* Check for currently enabled */