Software Drivers

xllfifo.c File Reference

#include "xstatus.h"
#include "xllfifo.h"
#include "xil_assert.h"

Defines

#define FIFO_WIDTH_BYTES   4

Functions

 xdbg_stmnt (u32 _xllfifo_rr_value;)
u32 XLlFifo_iRxGetLen (XLlFifo *InstancePtr)
int XLlFifo_iRead_Aligned (XLlFifo *InstancePtr, void *BufPtr, unsigned WordCount)
u32 XLlFifo_iTxVacancy (XLlFifo *InstancePtr)
void XLlFifo_iTxSetLen (XLlFifo *InstancePtr, u32 Bytes)
int XLlFifo_iWrite_Aligned (XLlFifo *InstancePtr, void *BufPtr, unsigned WordCount)
int XLlFifo_CfgInitialize (XLlFifo *InstancePtr, XLlFifo_Config *Config, u32 EffectiveAddress)
u32 XLlFifo_RxGetWord (XLlFifo *InstancePtr)
void XLlFifo_TxPutWord (XLlFifo *InstancePtr, u32 Word)
void XLlFifo_Initialize (XLlFifo *InstancePtr, u32 BaseAddress)

Detailed Description

The Xilinx local link FIFO driver component. This driver supports the Xilinx xps_ll_fifo core.

 MODIFICATION HISTORY:
 Ver   Who  Date     Changes
 ----- ---- -------- -------------------------------------------------------
 1.00a jvb  10/13/06 First release
 1.00a xd   12/17/07 Added type casting to fix CR #456850
 1.02a jz   12/04/09  Hal phase 1 support
 2.00a hbm  01/20/10  Hal phase 1 support, bump up major release
 2.01a asa  09/17/10  Added code for resetting Streaming interface
		        for CR574868
 3.00a adk  08/10/13  Added support for AXI4 Datainterface.Updated
 		        XLlFifo_RxGetWord, XLlFifo_TxPutword inorder to 
 		        handle AXI4 Datainterface. Added Config 
 		        initialization for the driver.
 

Define Documentation

#define FIFO_WIDTH_BYTES   4

Function Documentation

xdbg_stmnt ( u32 _xllfifo_rr_value;   ) 
int XLlFifo_CfgInitialize ( XLlFifo InstancePtr,
XLlFifo_Config Config,
u32  EffectiveAddress 
)

XLlFifo_CfgInitialize initializes an XPS_ll_Fifo device along with the InstancePtr that references it.

Parameters:
InstancePtr is a pointer to the Axi Streaming FIFO instance to be worked on.
CfgPtr references the structure holding the hardware configuration for the Axi Streaming FIFO core to initialize.
EffectiveAddr is the device base address in the virtual memory address space. The caller is responsible for keeping the address mapping from EffectiveAddr to the device physical base address unchanged once this function is invoked. Unexpected errors may occur if the address mapping changes after this function is called. If address translation is not used, use Config->BaseAddress for this parameters, passing the physical address instead.
Returns:
N/A
void XLlFifo_Initialize ( XLlFifo InstancePtr,
u32  BaseAddress 
)

XLlFifo_Initialize initializes an XPS_ll_Fifo device along with the InstancePtr that references it.

Parameters:
InstancePtr references the memory instance to be associated with the FIFO device upon initialization.
BaseAddress is the processor address used to access the base address of the Fifo device.
Returns:
N/A
int XLlFifo_iRead_Aligned ( XLlFifo InstancePtr,
void *  BufPtr,
unsigned  WordCount 
)
u32 XLlFifo_iRxGetLen ( XLlFifo InstancePtr  ) 
void XLlFifo_iTxSetLen ( XLlFifo InstancePtr,
u32  Bytes 
)
u32 XLlFifo_iTxVacancy ( XLlFifo InstancePtr  ) 
int XLlFifo_iWrite_Aligned ( XLlFifo InstancePtr,
void *  BufPtr,
unsigned  WordCount 
)
u32 XLlFifo_RxGetWord ( XLlFifo InstancePtr  ) 
void XLlFifo_TxPutWord ( XLlFifo InstancePtr,
u32  Word 
)