1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/include/villas/fpga/ips/fifo.h

36 lines
714 B
C
Raw Permalink Normal View History

2016-06-14 01:19:17 +02:00
/** FIFO related helper functions
*
* These functions present a simpler interface to Xilinx' FIFO driver (XLlFifo_*)
*
* @file
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2017, Steffen Vogel
2016-06-14 01:19:17 +02:00
**********************************************************************************/
/** @addtogroup fpga VILLASfpga
* @{
*/
2016-06-14 01:19:17 +02:00
2017-02-18 10:43:58 -05:00
#pragma once
2016-06-14 01:19:17 +02:00
#include <sys/types.h>
#include <xilinx/xstatus.h>
#include <xilinx/xllfifo.h>
struct fifo {
XLlFifo inst;
uint32_t baseaddr_axi4;
};
/* Forward declarations */
2016-06-19 19:23:19 +02:00
struct ip;
2016-06-14 01:19:17 +02:00
int fifo_start(struct fpga_ip *c);
2016-06-14 01:19:17 +02:00
2017-02-18 10:43:58 -05:00
ssize_t fifo_write(struct fpga_ip *c, char *buf, size_t len);
2016-06-19 19:23:19 +02:00
2017-02-18 10:43:58 -05:00
ssize_t fifo_read(struct fpga_ip *c, char *buf, size_t len);
2016-06-14 01:19:17 +02:00
2017-02-18 10:43:58 -05:00
/** @} */