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/switch.h

49 lines
1.1 KiB
C
Raw Normal View History

2016-06-14 01:19:17 +02:00
/** AXI Stream interconnect related helper functions
*
* These functions present a simpler interface to Xilinx' AXI Stream switch driver (XAxis_Switch_*)
*
* @file
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @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_SWITCH_H_
#define _FPGA_SWITCH_H_
2016-06-14 01:19:17 +02:00
#include <xilinx/xaxis_switch.h>
#include "list.h"
/* Forward declaration */
struct ip;
struct sw_path {
const char *in;
const char *out;
};
struct sw {
XAxis_Switch inst;
int num_ports;
struct list paths;
};
2016-06-19 19:23:19 +02:00
struct ip;
2016-06-14 01:19:17 +02:00
2016-06-19 19:23:19 +02:00
int switch_init(struct ip *c);
2016-07-08 13:01:40 +02:00
/** Initialize paths which have been parsed by switch_parse() */
int switch_init_paths(struct ip *c);
void switch_destroy(struct ip *c);
int switch_parse(struct ip *c);
2016-06-19 19:23:19 +02:00
int switch_connect(struct ip *c, struct ip *mi, struct ip *si);
2016-06-14 01:19:17 +02:00
int switch_disconnect(struct ip *c, struct ip *mi, struct ip *si);
#endif /* _FPGA_SWITCH_H_ */