1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/config.h
Steffen Vogel dbc1530727 Overhaul of build and packaging system:
- Build RPM packages for VILLASnode and dependencies with the ‚rpm‘, ‚rpm-villas‘, ‚rpm-livxil‘ and ‚rpm-libwebsockets‘ make targets
- Upload new RPM packages to the repository with the ‚deploy‘ make target
- Build a developer Docker image with the `docker-dev` target
- Run the developer image with the `run-docker-dev` target
- Build a production Docker image with the `docker` target
  This requires that all RPM packages have been build previously!
- Use hard-coded default paths where applicable
- Updated index website
- Added some usage information and hints

Documentation of the new system is still outstanding
2017-03-29 04:04:20 +02:00

44 lines
No EOL
1.3 KiB
C

/** Static server configuration
*
* This file contains some compiled-in settings.
* This settings are not part of the configuration file.
*
* @file
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2017, Institute for Automation of Complex Power Systems, EONERC
*********************************************************************************/
#pragma once
/** Default number of values in a sample */
#define DEFAULT_VALUES 64
#define DEFAULT_QUEUELEN 1024
/** Number of hugepages which are requested from the the kernel.
* @see https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt */
#define DEFAULT_NR_HUGEPAGES 25
/** Width of log output in characters */
#define LOG_WIDTH 132
/** Socket priority */
#define SOCKET_PRIO 7
/* Protocol numbers */
#define IPPROTO_VILLAS 137
#define ETH_P_VILLAS 0xBABE
#define USER_AGENT "VILLASnode (" BUILDID ")"
/*ID Required kernel version */
#define KERNEL_VERSION_MAJ 3
#define KERNEL_VERSION_MIN 6
/** PCIe BAR number of VILLASfpga registers */
#define FPGA_PCI_BAR 0
#define FPGA_PCI_VID_XILINX 0x10ee
#define FPGA_PCI_PID_VFPGA 0x7022
/** AXI Bus frequency for all components
* except RTDS AXI Stream bridge which runs at RTDS_HZ (100 Mhz) */
#define FPGA_AXI_HZ 125000000 // 125 MHz