XilinxProcessorIPLib/drivers/devcfg/src/xdevcfg.c
void XDcfg_EnablePCAP(XDcfg *InstancePtr)
{
	u32 CtrlReg;
	/*
	 * Assert the arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);


	CtrlReg = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_CTRL_OFFSET);

	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_CTRL_OFFSET,
			(CtrlReg | XDCFG_CTRL_PCAP_MODE_MASK));

}
/****************************************************************************/
/**
*
* The functions enables the PCAP interface by setting the PCAP mode bit in the
* control register.
*
* @param	InstancePtr is a pointer to the XDcfg instance.
*
* @return	None.
*
* @note		Enable FPGA programming	from PCAP interface. Enabling this bit
*		disables all the external interfaces from programming of FPGA
*		except for ICAP. The user needs to ensure that the FPGA is
*		programmed through either PCAP or ICAP.
*
*****************************************************************************/
The functions enables the PCAP interface by setting the PCAP mode bit in the
control register.
The functions enables the PCAP interface by setting the PCAP mode bit in the control register .
void XDcfg_EnablePCAP(XDcfg *InstancePtr)
{
	u32 CtrlReg;
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	CtrlReg = XDcfg_ReadReg(InstancePtr->Config.BaseAddr,
					XDCFG_CTRL_OFFSET);
	XDcfg_WriteReg(InstancePtr->Config.BaseAddr, XDCFG_CTRL_OFFSET,
			(CtrlReg | XDCFG_CTRL_PCAP_MODE_MASK));
}
void XDcfg_EnablePCAP ( XDcfg * InstancePtr ) { u32 CtrlReg ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; CtrlReg = XDcfg_ReadReg ( InstancePtr -> Config . BaseAddr , XDCFG_CTRL_OFFSET ) ; XDcfg_WriteReg ( InstancePtr -> Config . BaseAddr , XDCFG_CTRL_OFFSET , ( CtrlReg | XDCFG_CTRL_PCAP_MODE_MASK ) ) ; }
The functions enables the PCAP interface by setting the PCAP mode bit in the
control register.
The functions enables the PCAP interface by setting the PCAP mode bit in the control register .
/*
	 * Assert the arguments.
	 */