XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_port_hdmi_rx.c
static void XHdcp1x_ProcessAKsvWrite(void *CallbackRef)
{
	XHdcp1x *InstancePtr = CallbackRef;
	u8 Value = 0;

	/* Update statistics */
	InstancePtr->Port.Stats.IntCount++;

	/* Clear bit 1 of the Ainfo register */
	XHdcp1x_PortHdmiRxRead(InstancePtr, XHDCP1X_PORT_OFFSET_AINFO,
			&Value, 1);
	Value &= 0xFDu;
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_AINFO,
			&Value, 1);

	/* Clear the Ready bit in the BCaps Register */
	Value = 0;
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	Value &= 0xDFu;
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);

	/* Invoke authentication callback if set */
	if (InstancePtr->Port.IsAuthCallbackSet) {
		(*(InstancePtr->Port.AuthCallback))(InstancePtr->Port.AuthRef);
	}
}
/*****************************************************************************/
/**
* This function process a write to the AKsv register from the tx device.
*
* @param	CallbackRef is the device to whose register was written.
*
* @return	None.
*
* @note		This function initiates the side effects of the tx device
*		writing the Aksv register. This is currently updates some status
*		bits as well as kick starts a re-authentication process.
*
******************************************************************************/
This function process a write to the AKsv register from the tx device.
This function process a write to the AKsv register from the tx device .
static void XHdcp1x_ProcessAKsvWrite(void *CallbackRef)
{
	XHdcp1x *InstancePtr = CallbackRef;
	u8 Value = 0;
	InstancePtr->Port.Stats.IntCount++;
	XHdcp1x_PortHdmiRxRead(InstancePtr, XHDCP1X_PORT_OFFSET_AINFO,
			&Value, 1);
	Value &= 0xFDu;
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_AINFO,
			&Value, 1);
	Value = 0;
	XHdcp1x_PortRead(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	Value &= 0xDFu;
	XHdcp1x_PortWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	if (InstancePtr->Port.IsAuthCallbackSet) {
		(*(InstancePtr->Port.AuthCallback))(InstancePtr->Port.AuthRef);
	}
}
static void XHdcp1x_ProcessAKsvWrite ( void * CallbackRef ) { XHdcp1x * InstancePtr = CallbackRef ; u8 Value = 0 ; InstancePtr -> Port . Stats . IntCount ++ ; XHdcp1x_PortHdmiRxRead ( InstancePtr , XHDCP1X_PORT_OFFSET_AINFO , & Value , 1 ) ; Value &= 0xFDu ; XHdcp1x_PortHdmiRxWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_AINFO , & Value , 1 ) ; Value = 0 ; XHdcp1x_PortRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BCAPS , & Value , XHDCP1X_PORT_SIZE_BCAPS ) ; Value &= 0xDFu ; XHdcp1x_PortWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BCAPS , & Value , XHDCP1X_PORT_SIZE_BCAPS ) ; if ( InstancePtr -> Port . IsAuthCallbackSet ) { ( * ( InstancePtr -> Port . AuthCallback ) ) ( InstancePtr -> Port . AuthRef ) ; } }
This function process a write to the AKsv register from the tx device.
This function process a write to the AKsv register from the tx device .
/* Update statistics */ /* Clear bit 1 of the Ainfo register */ /* Clear the Ready bit in the BCaps Register */ /* Invoke authentication callback if set */