lib/sw_apps/zynqmp_fsbl/src/xfsbl_bs.c
u32 XFsbl_PcapWaitForDone(void) {
	u32 RegVal;
	u32 Status = XFSBL_SUCCESS;

	do {
		RegVal = XFsbl_In32(CSU_PCAP_STATUS);
		RegVal = RegVal & CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK;
	} while (RegVal != CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK);

	return Status;
}
/*****************************************************************************/
/** This function waits for PCAP transfer to complete
 *
 * @param	None
 *
 * @return	error status based on implemented functionality (SUCCESS by default)
 *
 *****************************************************************************/
This function waits for PCAP transfer to complete
@param       None

@return      error status based on implemented functionality (SUCCESS by default)
This function waits for PCAP transfer to complete @param None @return error status based on implemented functionality ( SUCCESS by default )
u32 XFsbl_PcapWaitForDone(void) {
	u32 RegVal;
	u32 Status = XFSBL_SUCCESS;
	do {
		RegVal = XFsbl_In32(CSU_PCAP_STATUS);
		RegVal = RegVal & CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK;
	} while (RegVal != CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK);
	return Status;
}
u32 XFsbl_PcapWaitForDone ( void ) { u32 RegVal ; u32 Status = XFSBL_SUCCESS ; do { RegVal = XFsbl_In32 ( CSU_PCAP_STATUS ) ; RegVal = RegVal & CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK ; } while ( RegVal != CSU_PCAP_STATUS_PCAP_WR_IDLE_MASK ) ; return Status ; }
This function waits for PCAP transfer to complete
 @param       None
This function waits for PCAP transfer to complete @param None