lib/sw_services/xilfpga/src/interface/zynqmp/xilfpga_ipi_pcap.c
u32 XFpga_Initialize(XFpga *InstancePtr)
{
	u32 Status = XFPGA_FAILURE;

	/* Validate the input arguments */
	if (InstancePtr == NULL) {
		Status = XFPGA_INVALID_PARAM;
		goto END;
	}

	(void)memset(InstancePtr, 0U, sizeof(*InstancePtr));
	InstancePtr->XFpga_WriteToPl = XFpga_IPI_WriteToPl;
	InstancePtr->XFpga_GetConfigData = XFpga_IPI_GetPLConfigDataPcap;
	InstancePtr->XFpga_GetConfigReg = XFpga_IPI_GetPLConfigRegPcap;
	InstancePtr->XFpga_GetInterfaceStatus = XFpga_IPI_PcapStatus;

	Status = XMailbox_Initialize(&XMboxInstance, 0U);
END:
	return Status;
}
/*****************************************************************************/
/**This API, when called, initializes the XFPGA interface with default settings.
 *
 * @param InstancePtr Pointer to the XFpga structure.
 *
 * @return Returns Status
 *		- XFPGA_SUCCESS on success
 *		- Error code on failure
 ******************************************************************************/
This API, when called, initializes the XFPGA interface with default settings.
@param InstancePtr Pointer to the XFpga structure.

@return Returns Status
- XFPGA_SUCCESS on success
- Error code on failure
This API when called initializes the XFPGA interface with default settings . @param InstancePtr Pointer to the XFpga structure . @return Returns Status - XFPGA_SUCCESS on success - Error code on failure
u32 XFpga_Initialize(XFpga *InstancePtr)
{
	u32 Status = XFPGA_FAILURE;
	if (InstancePtr == NULL) {
		Status = XFPGA_INVALID_PARAM;
		goto END;
	}
	(void)memset(InstancePtr, 0U, sizeof(*InstancePtr));
	InstancePtr->XFpga_WriteToPl = XFpga_IPI_WriteToPl;
	InstancePtr->XFpga_GetConfigData = XFpga_IPI_GetPLConfigDataPcap;
	InstancePtr->XFpga_GetConfigReg = XFpga_IPI_GetPLConfigRegPcap;
	InstancePtr->XFpga_GetInterfaceStatus = XFpga_IPI_PcapStatus;
	Status = XMailbox_Initialize(&XMboxInstance, 0U);
END:
	return Status;
}
u32 XFpga_Initialize ( XFpga * InstancePtr ) { u32 Status = XFPGA_FAILURE ; if ( InstancePtr == NULL ) { Status = XFPGA_INVALID_PARAM ; goto END ; } ( void ) memset ( InstancePtr , 0U , sizeof ( * InstancePtr ) ) ; InstancePtr -> XFpga_WriteToPl = XFpga_IPI_WriteToPl ; InstancePtr -> XFpga_GetConfigData = XFpga_IPI_GetPLConfigDataPcap ; InstancePtr -> XFpga_GetConfigReg = XFpga_IPI_GetPLConfigRegPcap ; InstancePtr -> XFpga_GetInterfaceStatus = XFpga_IPI_PcapStatus ; Status = XMailbox_Initialize ( & XMboxInstance , 0U ) ; END : return Status ; }
This API, when called, initializes the XFPGA interface with default settings.
This API when called initializes the XFPGA interface with default settings .
/* Validate the input arguments */