llfifo
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xllfifo.c File Reference

Overview

Implements XLlFifo interface functions.

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. 5.1 sk 11/10/15 Used UINTPTR instead of u32 for Baseaddress CR# 867425. Changed the prototypes of XLlFifo_CfgInitialize, XLlFifo_Initialize APIs. 5.5 sk 06/15/20 In XLlFifo_iRead_Aligned and XLlFifo_iWrite_Aligned add type casting to fix gcc warnings. 5.6 sd 07/7/23 Add system devicetree support. 6.2 vn 08/26/26 Fix Doxygen warnings. 6.2 tb 09/15/26 Align Doxygen comments with AMD standards.

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

Macros

#define FIFO_WIDTH_BYTES   4
 FIFO keyhole width in bytes. More...
 

Functions

u32 XLlFifo_iRxOccupancy (XLlFifo *InstancePtr)
 Returns receive occupancy in 32-bit words. More...
 
u32 XLlFifo_iRxGetLen (XLlFifo *InstancePtr)
 Returns the next receive frame length in bytes. More...
 
int XLlFifo_iRead_Aligned (XLlFifo *InstancePtr, void *BufPtr, unsigned WordCount)
 Reads aligned 32-bit words from the receive FIFO. More...
 
u32 XLlFifo_iTxVacancy (XLlFifo *InstancePtr)
 Returns transmit vacancy in 32-bit words. More...
 
void XLlFifo_iTxSetLen (XLlFifo *InstancePtr, u32 Bytes)
 Starts a transmit of the given byte length. More...
 
int XLlFifo_iWrite_Aligned (XLlFifo *InstancePtr, void *BufPtr, unsigned WordCount)
 Writes aligned 32-bit words to the transmit FIFO. More...
 
int XLlFifo_CfgInitialize (XLlFifo *InstancePtr, XLlFifo_Config *Config, UINTPTR EffectiveAddress)
 Initializes the XLlFifo driver from a config. More...
 
u32 XLlFifo_RxGetWord (XLlFifo *InstancePtr)
 Reads one 32-bit word from the receive FIFO. More...
 
void XLlFifo_TxPutWord (XLlFifo *InstancePtr, u32 Word)
 Writes one 32-bit word to the transmit FIFO. More...
 
void XLlFifo_Initialize (XLlFifo *InstancePtr, UINTPTR BaseAddress)
 Initializes the XLlFifo driver from a base address. More...