/** FIFO related helper functions * * These functions present a simpler interface to Xilinx' FIFO driver (XLlFifo_*) * * @file * @author Steffen Vogel * @copyright 2015-2016, Steffen Vogel * This file is part of S2SS. All Rights Reserved. Proprietary and confidential. * Unauthorized copying of this file, via any medium is strictly prohibited. **********************************************************************************/ #ifndef _FPGA_FIFO_H_ #define _FPGA_FIFO_H_ #include #include #include struct fifo { XLlFifo inst; uint32_t baseaddr_axi4; }; /* Forward declaration */ struct ip; int fifo_init(struct ip *c); ssize_t fifo_write(struct ip *c, char *buf, size_t len); ssize_t fifo_read(struct ip *c, char *buf, size_t len); #endif /* _FPGA_FIFO_H_ */