XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_cipher.c
u32 XHdcp1x_CipherGetNumLanes(const XHdcp1x *InstancePtr)
{
	u32 NumLanes = 0;

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

	/* Check for currently enabled */
	if (XHdcp1x_CipherIsEnabled(InstancePtr)) {
		/* Determine NumLanes */
		NumLanes = XHdcp1x_ReadReg(InstancePtr->Config.BaseAddress,
			XHDCP1X_CIPHER_REG_CONTROL);
		NumLanes &= XHDCP1X_CIPHER_BITMASK_CONTROL_NUM_LANES;
		NumLanes >>= 4;
	}

	return (NumLanes);
}
/*****************************************************************************/
/**
* This function retrieves the current number of lanes of the HDCP cipher.
*
* @param	InstancePtr is the device to query.
*
* @return	The current number of lanes.
*
* @note		None.
*
******************************************************************************/
This function retrieves the current number of lanes of the HDCP cipher.
This function retrieves the current number of lanes of the HDCP cipher .
u32 XHdcp1x_CipherGetNumLanes(const XHdcp1x *InstancePtr)
{
	u32 NumLanes = 0;
	Xil_AssertNonvoid(InstancePtr != NULL);
	if (XHdcp1x_CipherIsEnabled(InstancePtr)) {
		NumLanes = XHdcp1x_ReadReg(InstancePtr->Config.BaseAddress,
			XHDCP1X_CIPHER_REG_CONTROL);
		NumLanes &= XHDCP1X_CIPHER_BITMASK_CONTROL_NUM_LANES;
		NumLanes >>= 4;
	}
	return (NumLanes);
}
u32 XHdcp1x_CipherGetNumLanes ( const XHdcp1x * InstancePtr ) { u32 NumLanes = 0 ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; if ( XHdcp1x_CipherIsEnabled ( InstancePtr ) ) { NumLanes = XHdcp1x_ReadReg ( InstancePtr -> Config . BaseAddress , XHDCP1X_CIPHER_REG_CONTROL ) ; NumLanes &= XHDCP1X_CIPHER_BITMASK_CONTROL_NUM_LANES ; NumLanes >>= 4 ; } return ( NumLanes ) ; }
This function retrieves the current number of lanes of the HDCP cipher.
This function retrieves the current number of lanes of the HDCP cipher .
/* Verify arguments. */ /* Check for currently enabled */ /* Determine NumLanes */