XilinxProcessorIPLib/drivers/aienginev2/src/io_backend/ext/xaie_sim.c
static AieRC XAie_SimIO_Init(XAie_DevInst *DevInst)
{
	XAie_SimIO *IOInst;

	IOInst = (XAie_SimIO *)malloc(sizeof(*IOInst));
	if(IOInst == NULL) {
		XAIE_ERROR("Memory allocation failed\n");
		return XAIE_ERR;
	}

	IOInst->BaseAddr = DevInst->BaseAddr;
	IOInst->NpiBaseAddr = XAIE_NPI_BASEADDR;
	DevInst->IOInst = IOInst;

	return XAIE_OK;
}
/*****************************************************************************/
/**
*
* This is the memory IO function to initialize the global IO instance
*
* @param	DevInst: Device instance pointer.
*
* @return	XAIE_OK on success. Error code on failure.
*
* @note		Internal only.
*
*******************************************************************************/
This is the memory IO function to initialize the global IO instance
This is the memory IO function to initialize the global IO instance
static AieRC XAie_SimIO_Init(XAie_DevInst *DevInst)
{
	XAie_SimIO *IOInst;
	IOInst = (XAie_SimIO *)malloc(sizeof(*IOInst));
	if(IOInst == NULL) {
		XAIE_ERROR("Memory allocation failed\n");
		return XAIE_ERR;
	}
	IOInst->BaseAddr = DevInst->BaseAddr;
	IOInst->NpiBaseAddr = XAIE_NPI_BASEADDR;
	DevInst->IOInst = IOInst;
	return XAIE_OK;
}
static AieRC XAie_SimIO_Init ( XAie_DevInst * DevInst ) { XAie_SimIO * IOInst ; IOInst = ( XAie_SimIO * ) malloc ( sizeof ( * IOInst ) ) ; if ( IOInst == NULL ) { XAIE_ERROR ( " \n " ) ; return XAIE_ERR ; } IOInst -> BaseAddr = DevInst -> BaseAddr ; IOInst -> NpiBaseAddr = XAIE_NPI_BASEADDR ; DevInst -> IOInst = IOInst ; return XAIE_OK ; }
This is the memory IO function to initialize the global IO instance
This is the memory IO function to initialize the global IO instance