XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_port_hdmi_rx.c
static int XHdcp1x_PortHdmiRxEnable(XHdcp1x *InstancePtr)
{
	u8 Buf[4];
	int Status = XST_SUCCESS;

	/* Verify arguments. */
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->Port.PhyIfPtr != NULL);

	/* Initialize the Bcaps register */
	memset(Buf, 0, 4);
	Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_HDMI;
	Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_FAST_REAUTH;
	if(InstancePtr->IsRepeater) {
		Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS, Buf, 1);

	/* Initialize some debug registers */
	Buf[0] = 0xDE;
	Buf[1] = 0xAD;
	Buf[2] = 0xBE;
	Buf[3] = 0xEF;
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_DBG,
			Buf, 4);

	return (Status);
}
/*****************************************************************************/
/**
* This function enables a HDCP port device.
*
* @param	InstancePtr is the id of the device to enable.
*
* @return
*		- XST_SUCCESS if successful.
*
* @note		None.
*
******************************************************************************/
This function enables a HDCP port device.
This function enables a HDCP port device .
static int XHdcp1x_PortHdmiRxEnable(XHdcp1x *InstancePtr)
{
	u8 Buf[4];
	int Status = XST_SUCCESS;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->Port.PhyIfPtr != NULL);
	memset(Buf, 0, 4);
	Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_HDMI;
	Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_FAST_REAUTH;
	if(InstancePtr->IsRepeater) {
		Buf[0] |= XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS, Buf, 1);
	Buf[0] = 0xDE;
	Buf[1] = 0xAD;
	Buf[2] = 0xBE;
	Buf[3] = 0xEF;
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_DBG,
			Buf, 4);
	return (Status);
}
static int XHdcp1x_PortHdmiRxEnable ( XHdcp1x * InstancePtr ) { u8 Buf [ 4 ] ; int Status = XST_SUCCESS ; Xil_AssertNonvoid ( InstancePtr != NULL ) ; Xil_AssertNonvoid ( InstancePtr -> Port . PhyIfPtr != NULL ) ; memset ( Buf , 0 , 4 ) ; Buf [ 0 ] |= XHDCP1X_PORT_BIT_BCAPS_HDMI ; Buf [ 0 ] |= XHDCP1X_PORT_BIT_BCAPS_FAST_REAUTH ; if ( InstancePtr -> IsRepeater ) { Buf [ 0 ] |= XHDCP1X_PORT_BIT_BCAPS_REPEATER ; } XHdcp1x_PortHdmiRxWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BCAPS , Buf , 1 ) ; Buf [ 0 ] = 0xDE ; Buf [ 1 ] = 0xAD ; Buf [ 2 ] = 0xBE ; Buf [ 3 ] = 0xEF ; XHdcp1x_PortHdmiRxWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_DBG , Buf , 4 ) ; return ( Status ) ; }
This function enables a HDCP port device.
This function enables a HDCP port device .
/* Verify arguments. */ /* Initialize the Bcaps register */ /* Initialize some debug registers */