1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/config.h

60 lines
1.9 KiB
C
Raw Permalink Normal View History

/** Static server configuration
*
* This file contains some compiled-in settings.
* This settings are not part of the configuration file.
*
* @file
2015-06-02 21:53:04 +02:00
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2017, Institute for Automation of Complex Power Systems, EONERC
2017-04-27 12:56:43 +02:00
* @license GNU General Public License (version 3)
*
* VILLASnode
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
2015-06-02 21:53:04 +02:00
*********************************************************************************/
2017-02-16 09:04:12 -03:00
#pragma once
2016-06-26 15:34:40 +02:00
/** Default number of values in a sample */
#define DEFAULT_SAMPLELEN 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 */
2017-04-24 19:56:01 +02:00
#define DEFAULT_NR_HUGEPAGES 100
/** Width of log output in characters */
2015-10-12 16:16:25 +02:00
#define LOG_WIDTH 132
/** Socket priority */
2015-05-06 11:43:05 +02:00
#define SOCKET_PRIO 7
/* Protocol numbers */
2016-06-08 23:21:42 +02:00
#define IPPROTO_VILLAS 137
#define ETH_P_VILLAS 0xBABE
2015-05-06 11:43:05 +02:00
#define USER_AGENT "VILLASnode (" BUILDID ")"
/* Required kernel version */
2015-09-17 00:55:20 +02:00
#define KERNEL_VERSION_MAJ 3
2016-06-14 01:19:17 +02:00
#define KERNEL_VERSION_MIN 6
2016-07-18 15:09:49 +02:00
/** 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