1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #ifndef _UAPI_LINUX_IF_EQL_H
21 #define _UAPI_LINUX_IF_EQL_H
22
23 #define EQL_DEFAULT_SLAVE_PRIORITY 28800
24 #define EQL_DEFAULT_MAX_SLAVES 4
25 #define EQL_DEFAULT_MTU 576
26 #define EQL_DEFAULT_RESCHED_IVAL HZ
27
28 #define EQL_ENSLAVE (SIOCDEVPRIVATE)
29 #define EQL_EMANCIPATE (SIOCDEVPRIVATE + 1)
30
31 #define EQL_GETSLAVECFG (SIOCDEVPRIVATE + 2)
32 #define EQL_SETSLAVECFG (SIOCDEVPRIVATE + 3)
33
34 #define EQL_GETMASTRCFG (SIOCDEVPRIVATE + 4)
35 #define EQL_SETMASTRCFG (SIOCDEVPRIVATE + 5)
36
37
38 typedef struct master_config {
39 char master_name[16];
40 int max_slaves;
41 int min_slaves;
42 } master_config_t;
43
44 typedef struct slave_config {
45 char slave_name[16];
46 long priority;
47 } slave_config_t;
48
49 typedef struct slaving_request {
50 char slave_name[16];
51 long priority;
52 } slaving_request_t;
53
54
55 #endif