XilinxProcessorIPLib/drivers/hdcp1x/src/xhdcp1x_port_hdmi_rx.c
static int XHdcp1x_PortHdmiRxSetRepeater(XHdcp1x *InstancePtr, u8 RptrConf)
{
	u8 Value = 0;

	/* Set the Ready bit in the BCaps Register */
	XHdcp1x_PortHdmiRxRead(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	if(RptrConf) {
		Value |= XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	else {
		Value &= ~XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);

	return (XST_SUCCESS);
}
/*****************************************************************************/
/**
* This function set the REPEATER bit in the BCaps of the device.
*
* @param	InstancePtr is the device to write to.
* @param	RptrConf is the repeater capability for the device.
*
* @return	XST_SUCCESS.
*
* @note		This function sets the REPEATER bit in the BCaps register for the
* 		upstream device to read. This can be used to update the device
* 		configuration if it changes in real time.
*
******************************************************************************/
This function set the REPEATER bit in the BCaps of the device.
This function set the REPEATER bit in the BCaps of the device .
static int XHdcp1x_PortHdmiRxSetRepeater(XHdcp1x *InstancePtr, u8 RptrConf)
{
	u8 Value = 0;
	XHdcp1x_PortHdmiRxRead(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	if(RptrConf) {
		Value |= XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	else {
		Value &= ~XHDCP1X_PORT_BIT_BCAPS_REPEATER;
	}
	XHdcp1x_PortHdmiRxWrite(InstancePtr, XHDCP1X_PORT_OFFSET_BCAPS,
			&Value, XHDCP1X_PORT_SIZE_BCAPS);
	return (XST_SUCCESS);
}
static int XHdcp1x_PortHdmiRxSetRepeater ( XHdcp1x * InstancePtr , u8 RptrConf ) { u8 Value = 0 ; XHdcp1x_PortHdmiRxRead ( InstancePtr , XHDCP1X_PORT_OFFSET_BCAPS , & Value , XHDCP1X_PORT_SIZE_BCAPS ) ; if ( RptrConf ) { Value |= XHDCP1X_PORT_BIT_BCAPS_REPEATER ; } else { Value &= ~ XHDCP1X_PORT_BIT_BCAPS_REPEATER ; } XHdcp1x_PortHdmiRxWrite ( InstancePtr , XHDCP1X_PORT_OFFSET_BCAPS , & Value , XHDCP1X_PORT_SIZE_BCAPS ) ; return ( XST_SUCCESS ) ; }
This function set the REPEATER bit in the BCaps of the device.
This function set the REPEATER bit in the BCaps of the device .
/* Set the Ready bit in the BCaps Register */