1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 /* 1 /* 3 * Equalizer Load-balancer for serial network 2 * Equalizer Load-balancer for serial network interfaces. 4 * 3 * 5 * (c) Copyright 1995 Simon "Guru Aleph-Null" 4 * (c) Copyright 1995 Simon "Guru Aleph-Null" Janes 6 * NCM: Network and Communications Management, 5 * NCM: Network and Communications Management, Inc. 7 * 6 * 8 * 7 * 9 * This software may be used and distribu 8 * This software may be used and distributed according to the terms 10 * of the GNU General Public License, inc 9 * of the GNU General Public License, incorporated herein by reference. 11 * 10 * 12 * The author may be reached as simon@ncm.com, 11 * The author may be reached as simon@ncm.com, or C/O 13 * NCM 12 * NCM 14 * Attn: Simon Janes 13 * Attn: Simon Janes 15 * 6803 Whittier Ave 14 * 6803 Whittier Ave 16 * McLean VA 22101 15 * McLean VA 22101 17 * Phone: 1-703-847-0040 ext 103 16 * Phone: 1-703-847-0040 ext 103 18 */ 17 */ 19 18 20 #ifndef _UAPI_LINUX_IF_EQL_H 19 #ifndef _UAPI_LINUX_IF_EQL_H 21 #define _UAPI_LINUX_IF_EQL_H 20 #define _UAPI_LINUX_IF_EQL_H 22 21 23 #define EQL_DEFAULT_SLAVE_PRIORITY 28800 22 #define EQL_DEFAULT_SLAVE_PRIORITY 28800 24 #define EQL_DEFAULT_MAX_SLAVES 4 23 #define EQL_DEFAULT_MAX_SLAVES 4 25 #define EQL_DEFAULT_MTU 576 24 #define EQL_DEFAULT_MTU 576 26 #define EQL_DEFAULT_RESCHED_IVAL HZ 25 #define EQL_DEFAULT_RESCHED_IVAL HZ 27 26 28 #define EQL_ENSLAVE (SIOCDEVPRIVATE) 27 #define EQL_ENSLAVE (SIOCDEVPRIVATE) 29 #define EQL_EMANCIPATE (SIOCDEVPRIVATE + 1) 28 #define EQL_EMANCIPATE (SIOCDEVPRIVATE + 1) 30 29 31 #define EQL_GETSLAVECFG (SIOCDEVPRIVATE + 2) 30 #define EQL_GETSLAVECFG (SIOCDEVPRIVATE + 2) 32 #define EQL_SETSLAVECFG (SIOCDEVPRIVATE + 3) 31 #define EQL_SETSLAVECFG (SIOCDEVPRIVATE + 3) 33 32 34 #define EQL_GETMASTRCFG (SIOCDEVPRIVATE + 4) 33 #define EQL_GETMASTRCFG (SIOCDEVPRIVATE + 4) 35 #define EQL_SETMASTRCFG (SIOCDEVPRIVATE + 5) 34 #define EQL_SETMASTRCFG (SIOCDEVPRIVATE + 5) 36 35 37 36 38 typedef struct master_config { 37 typedef struct master_config { 39 char master_name[16]; 38 char master_name[16]; 40 int max_slaves; 39 int max_slaves; 41 int min_slaves; 40 int min_slaves; 42 } master_config_t; 41 } master_config_t; 43 42 44 typedef struct slave_config { 43 typedef struct slave_config { 45 char slave_name[16]; 44 char slave_name[16]; 46 long priority; 45 long priority; 47 } slave_config_t; 46 } slave_config_t; 48 47 49 typedef struct slaving_request { 48 typedef struct slaving_request { 50 char slave_name[16]; 49 char slave_name[16]; 51 long priority; 50 long priority; 52 } slaving_request_t; 51 } slaving_request_t; 53 52 54 53 55 #endif /* _UAPI_LINUX_IF_EQL_H */ 54 #endif /* _UAPI_LINUX_IF_EQL_H */ 56 55
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.