-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathax_config.h
More file actions
178 lines (150 loc) · 3.87 KB
/
Copy pathax_config.h
File metadata and controls
178 lines (150 loc) · 3.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/* ax_config.h */
#ifndef __AX_CONFIG_H__
#define __AX_CONFIG_H__
// ==========================================
// 1. User Settings 1: Enable, 0: Disable
// ==========================================
#define ENABLE_IOCTL_DEBUG 0
#define ENABLE_AUTODETACH_FUNC 0
#define ENABLE_MAC_PASS 0
#define ENABLE_INT_AGGRESSIVE 1
#define ENABLE_INT_POLLING 0
#define ENABLE_AUTOSUSPEND 0
#define ENABLE_TX_TASKLET 0
#define ENABLE_RX_TASKLET 0
#define ENABLE_QUEUE_PRIORITY 0
#define ENABLE_LPM 1
#define ENABLE_SUSPEND_LP 1
#define ENABLE_QAV 0
#define ENABLE_RX_PREEMPT 0
#define ENABLE_COE 0
#define ENABLE_LSO 1
#define ENABLE_PTP_FUNC 0
#define ENABLE_PTP_DEBUG 0
#define ENABLE_PTP_125M_CLK 0
#define ENABLE_PTP_PPS 0
#define ENABLE_PTP_NORMAL_PKT 0
// ==========================================
// 2. Logic Mapping
// ==========================================
#if (ENABLE_IOCTL_DEBUG == 1)
#undef ENABLE_IOCTL_DEBUG
#define ENABLE_IOCTL_DEBUG
#else
#undef ENABLE_IOCTL_DEBUG
#endif
#if (ENABLE_AUTODETACH_FUNC == 1)
#undef ENABLE_AUTODETACH_FUNC
#define ENABLE_AUTODETACH_FUNC
#else
#undef ENABLE_AUTODETACH_FUNC
#endif
#if (ENABLE_MAC_PASS == 1)
#undef ENABLE_MAC_PASS
#define ENABLE_MAC_PASS
#else
#undef ENABLE_MAC_PASS
#endif
#if (ENABLE_INT_AGGRESSIVE == 1)
#undef ENABLE_INT_AGGRESSIVE
#define ENABLE_INT_AGGRESSIVE
#else
#undef ENABLE_INT_AGGRESSIVE
#endif
#if (ENABLE_INT_POLLING == 1)
#undef ENABLE_INT_POLLING/
#define ENABLE_INT_POLLING
#else
#undef ENABLE_INT_POLLING
#endif
#if (ENABLE_AUTOSUSPEND == 1)
#undef ENABLE_AUTOSUSPEND
#define ENABLE_AUTOSUSPEND
#else
#undef ENABLE_AUTOSUSPEND
#endif
#if (ENABLE_TX_TASKLET == 1)
#undef ENABLE_TX_TASKLET
#define ENABLE_TX_TASKLET
#else
#undef ENABLE_TX_TASKLET
#endif
#if (ENABLE_RX_TASKLET == 1)
#undef ENABLE_RX_TASKLET
#define ENABLE_RX_TASKLET
#else
#undef ENABLE_RX_TASKLET
#endif
#if (ENABLE_QUEUE_PRIORITY == 1)
#undef ENABLE_QUEUE_PRIORITY
#define ENABLE_QUEUE_PRIORITY
#else
#undef ENABLE_QUEUE_PRIORITY
#endif
#if (ENABLE_LPM == 1)
#undef ENABLE_LPM
#define ENABLE_LPM
#else
#undef ENABLE_LPM
#endif
#if (ENABLE_SUSPEND_LP == 1)
#undef ENABLE_SUSPEND_LP
#define ENABLE_SUSPEND_LP
#else
#undef ENABLE_SUSPEND_LP
#endif
#if (ENABLE_QAV == 1)
#undef ENABLE_QAV
#define ENABLE_QAV
#else
#undef ENABLE_QAV
#endif
#if (ENABLE_RX_PREEMPT == 1)
#undef ENABLE_RX_PREEMPT
#define ENABLE_RX_PREEMPT
#else
#undef ENABLE_RX_PREEMPT
#endif
#if (ENABLE_COE == 1)
#undef ENABLE_COE
#define ENABLE_COE
#else
#undef ENABLE_COE
#endif
#if (ENABLE_LSO == 1)
#undef ENABLE_LSO
#define ENABLE_LSO
#else
#undef ENABLE_LSO
#endif
#if (ENABLE_PTP_FUNC == 1)
#undef ENABLE_PTP_FUNC
#define ENABLE_PTP_FUNC
#if (ENABLE_PTP_DEBUG == 1)
#undef ENABLE_PTP_DEBUG
#define ENABLE_PTP_DEBUG
#else
#undef ENABLE_PTP_DEBUG
#endif
#if (ENABLE_PTP_125M_CLK == 1)
#undef ENABLE_PTP_125M_CLK
#define ENABLE_PTP_125M_CLK
#else
#undef ENABLE_PTP_125M_CLK
#endif
#if (ENABLE_PTP_PPS == 1)
#undef ENABLE_PTP_PPS
#define ENABLE_PTP_PPS
#else
#undef ENABLE_PTP_PPS
#endif
#else
#undef ENABLE_PTP_FUNC
#endif
#if (ENABLE_PTP_NORMAL_PKT == 1)
#undef ENABLE_PTP_NORMAL_PKT
#define ENABLE_PTP_NORMAL_PKT
#else
#undef ENABLE_PTP_NORMAL_PKT
#endif
#endif /* __AX_CONFIG_H__ */