diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/if_eql.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/if_eql.h')
-rw-r--r-- | include/linux/if_eql.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/include/linux/if_eql.h b/include/linux/if_eql.h index d984694c384..79c4f268410 100644 --- a/include/linux/if_eql.h +++ b/include/linux/if_eql.h | |||
@@ -15,13 +15,28 @@ | |||
15 | * McLean VA 22101 | 15 | * McLean VA 22101 |
16 | * Phone: 1-703-847-0040 ext 103 | 16 | * Phone: 1-703-847-0040 ext 103 |
17 | */ | 17 | */ |
18 | |||
18 | #ifndef _LINUX_IF_EQL_H | 19 | #ifndef _LINUX_IF_EQL_H |
19 | #define _LINUX_IF_EQL_H | 20 | #define _LINUX_IF_EQL_H |
20 | 21 | ||
22 | #define EQL_DEFAULT_SLAVE_PRIORITY 28800 | ||
23 | #define EQL_DEFAULT_MAX_SLAVES 4 | ||
24 | #define EQL_DEFAULT_MTU 576 | ||
25 | #define EQL_DEFAULT_RESCHED_IVAL 100 | ||
26 | |||
27 | #define EQL_ENSLAVE (SIOCDEVPRIVATE) | ||
28 | #define EQL_EMANCIPATE (SIOCDEVPRIVATE + 1) | ||
29 | |||
30 | #define EQL_GETSLAVECFG (SIOCDEVPRIVATE + 2) | ||
31 | #define EQL_SETSLAVECFG (SIOCDEVPRIVATE + 3) | ||
32 | |||
33 | #define EQL_GETMASTRCFG (SIOCDEVPRIVATE + 4) | ||
34 | #define EQL_SETMASTRCFG (SIOCDEVPRIVATE + 5) | ||
35 | |||
36 | #ifdef __KERNEL__ | ||
21 | 37 | ||
22 | #include <linux/timer.h> | 38 | #include <linux/timer.h> |
23 | #include <linux/spinlock.h> | 39 | #include <linux/spinlock.h> |
24 | #include <uapi/linux/if_eql.h> | ||
25 | 40 | ||
26 | typedef struct slave { | 41 | typedef struct slave { |
27 | struct list_head list; | 42 | struct list_head list; |
@@ -46,4 +61,23 @@ typedef struct equalizer { | |||
46 | struct timer_list timer; | 61 | struct timer_list timer; |
47 | } equalizer_t; | 62 | } equalizer_t; |
48 | 63 | ||
64 | #endif /* __KERNEL__ */ | ||
65 | |||
66 | typedef struct master_config { | ||
67 | char master_name[16]; | ||
68 | int max_slaves; | ||
69 | int min_slaves; | ||
70 | } master_config_t; | ||
71 | |||
72 | typedef struct slave_config { | ||
73 | char slave_name[16]; | ||
74 | long priority; | ||
75 | } slave_config_t; | ||
76 | |||
77 | typedef struct slaving_request { | ||
78 | char slave_name[16]; | ||
79 | long priority; | ||
80 | } slaving_request_t; | ||
81 | |||
82 | |||
49 | #endif /* _LINUX_EQL_H */ | 83 | #endif /* _LINUX_EQL_H */ |