Lines Matching defs:val
141 int val;
144 val = 0;
145 val |= 0 << 10; /* enable 802.1q VLAN Tag support */
146 val |= 0 << 9; /* enable VLAN ingress filtering */
147 val |= 1 << 8; /* disable VLAN tag admit control */
148 val |= 1 << 6; /* internal use */
149 val |= 1 << 5; /* internal use */
150 val |= 1 << 4; /* internal use */
151 val |= 1 << 3; /* internal use */
152 val |= 1 << 1; /* reserved */
153 MIIBUS_WRITEREG(sc->mii_dev, 0, 16, val);
156 val = 0;
157 val |= 1 << 15; /* reserved */
158 val |= 0 << 14; /* enable 1552 Bytes support */
159 val |= 1 << 13; /* enable broadcast input drop */
160 val |= 1 << 12; /* forward reserved control frames */
161 val |= 1 << 11; /* disable forwarding unicast frames to other VLAN's */
162 val |= 1 << 10; /* disable forwarding ARP broadcasts to other VLAN's */
163 val |= 1 << 9; /* enable 48 pass 1 */
164 val |= 0 << 8; /* enable VLAN */
165 val |= 1 << 7; /* reserved */
166 val |= 1 << 6; /* enable defer */
167 val |= 1 << 5; /* 43ms LED blink time */
168 val |= 3 << 3; /* 16:1 queue weight */
169 val |= 1 << 2; /* disable broadcast storm control */
170 val |= 1 << 1; /* enable power-on LED blinking */
171 val |= 1 << 0; /* reserved */
172 MIIBUS_WRITEREG(sc->mii_dev, 0, 18, val);
175 val = 0;
176 val |= 1 << 15; /* reserved */
177 val |= 1 << 11; /* drop received packets with wrong VLAN tag */
178 val |= 1 << 10; /* disable 802.1p priority classification */
179 val |= 1 << 9; /* disable diffserv priority classification */
180 val |= 1 << 6; /* internal use */
181 val |= 3 << 4; /* internal use */
182 val |= 1 << 3; /* internal use */
183 val |= 1 << 2; /* internal use */
184 val |= 1 << 0; /* remove VLAN tags on output */
185 MIIBUS_WRITEREG(sc->mii_dev, 0, 22, val);
188 val = 0;
189 val |= 1 << 15; /* reserved */
190 val |= 1 << 11; /* drop received packets with wrong VLAN tag */
191 val |= 1 << 10; /* disable 802.1p priority classification */
192 val |= 1 << 9; /* disable diffserv priority classification */
193 val |= 1 << 6; /* internal use */
194 val |= 3 << 4; /* internal use */
195 val |= 1 << 3; /* internal use */
196 val |= 1 << 2; /* internal use */
197 val |= 1 << 0; /* remove VLAN tags on output */
198 MIIBUS_WRITEREG(sc->mii_dev, 1, 22, val);
201 val = 0;
202 val |= 1 << 15; /* reserved */
203 val |= 1 << 11; /* drop received packets with wrong VLAN tag */
204 val |= 1 << 10; /* disable 802.1p priority classification */
205 val |= 1 << 9; /* disable diffserv priority classification */
206 val |= 1 << 6; /* internal use */
207 val |= 3 << 4; /* internal use */
208 val |= 1 << 3; /* internal use */
209 val |= 1 << 2; /* internal use */
210 val |= 1 << 0; /* remove VLAN tags on output */
211 MIIBUS_WRITEREG(sc->mii_dev, 2, 22, val);
214 val = 0;
215 val |= 1 << 15; /* reserved */
216 val |= 1 << 11; /* drop received packets with wrong VLAN tag */
217 val |= 1 << 10; /* disable 802.1p priority classification */
218 val |= 1 << 9; /* disable diffserv priority classification */
219 val |= 1 << 6; /* internal use */
220 val |= 3 << 4; /* internal use */
221 val |= 1 << 3; /* internal use */
222 val |= 1 << 2; /* internal use */
223 val |= 1 << 0; /* remove VLAN tags on output */
224 MIIBUS_WRITEREG(sc->mii_dev, 3, 22, val);
227 val = 0;
228 val |= 1 << 15; /* reserved */
229 val |= 0 << 11; /* don't drop received packets with wrong VLAN tag */
230 val |= 1 << 10; /* disable 802.1p priority classification */
231 val |= 1 << 9; /* disable diffserv priority classification */
232 val |= 1 << 6; /* internal use */
233 val |= 3 << 4; /* internal use */
234 val |= 1 << 3; /* internal use */
235 val |= 1 << 2; /* internal use */
236 val |= 2 << 0; /* add VLAN tags for untagged packets on output */
237 MIIBUS_WRITEREG(sc->mii_dev, 4, 22, val);
240 val = 0;
241 val |= 0x0 << 12; /* Port 0 VLAN Index */
242 val |= 1 << 11; /* internal use */
243 val |= 1 << 10; /* internal use */
244 val |= 1 << 9; /* internal use */
245 val |= 1 << 7; /* internal use */
246 val |= 1 << 6; /* internal use */
247 val |= 0x11 << 0; /* VLAN A membership */
248 MIIBUS_WRITEREG(sc->mii_dev, 0, 24, val);
251 val = 0;
252 val |= 1 << 15; /* internal use */
253 val |= 1 << 14; /* internal use */
254 val |= 1 << 13; /* internal use */
255 val |= 1 << 12; /* internal use */
256 val |= 0x100 << 0; /* VLAN A ID */
257 MIIBUS_WRITEREG(sc->mii_dev, 0, 25, val);
260 val = 0;
261 val |= 0x1 << 12; /* Port 1 VLAN Index */
262 val |= 1 << 11; /* internal use */
263 val |= 1 << 10; /* internal use */
264 val |= 1 << 9; /* internal use */
265 val |= 1 << 7; /* internal use */
266 val |= 1 << 6; /* internal use */
267 val |= 0x12 << 0; /* VLAN B membership */
268 MIIBUS_WRITEREG(sc->mii_dev, 1, 24, val);
271 val = 0;
272 val |= 1 << 15; /* internal use */
273 val |= 1 << 14; /* internal use */
274 val |= 1 << 13; /* internal use */
275 val |= 1 << 12; /* internal use */
276 val |= 0x101 << 0; /* VLAN B ID */
277 MIIBUS_WRITEREG(sc->mii_dev, 1, 25, val);
280 val = 0;
281 val |= 0x2 << 12; /* Port 2 VLAN Index */
282 val |= 1 << 11; /* internal use */
283 val |= 1 << 10; /* internal use */
284 val |= 1 << 9; /* internal use */
285 val |= 1 << 7; /* internal use */
286 val |= 1 << 6; /* internal use */
287 val |= 0x14 << 0; /* VLAN C membership */
288 MIIBUS_WRITEREG(sc->mii_dev, 2, 24, val);
291 val = 0;
292 val |= 1 << 15; /* internal use */
293 val |= 1 << 14; /* internal use */
294 val |= 1 << 13; /* internal use */
295 val |= 1 << 12; /* internal use */
296 val |= 0x102 << 0; /* VLAN C ID */
297 MIIBUS_WRITEREG(sc->mii_dev, 2, 25, val);
300 val = 0;
301 val |= 0x3 << 12; /* Port 3 VLAN Index */
302 val |= 1 << 11; /* internal use */
303 val |= 1 << 10; /* internal use */
304 val |= 1 << 9; /* internal use */
305 val |= 1 << 7; /* internal use */
306 val |= 1 << 6; /* internal use */
307 val |= 0x18 << 0; /* VLAN D membership */
308 MIIBUS_WRITEREG(sc->mii_dev, 3, 24, val);
311 val = 0;
312 val |= 1 << 15; /* internal use */
313 val |= 1 << 14; /* internal use */
314 val |= 1 << 13; /* internal use */
315 val |= 1 << 12; /* internal use */
316 val |= 0x103 << 0; /* VLAN D ID */
317 MIIBUS_WRITEREG(sc->mii_dev, 3, 25, val);
320 val = 0;
321 val |= 0x0 << 12; /* Port 4 VLAN Index */
322 val |= 1 << 11; /* internal use */
323 val |= 1 << 10; /* internal use */
324 val |= 1 << 9; /* internal use */
325 val |= 1 << 7; /* internal use */
326 val |= 1 << 6; /* internal use */
327 val |= 0 << 0; /* VLAN E membership */
328 MIIBUS_WRITEREG(sc->mii_dev, 4, 24, val);
331 val = 0;
332 val |= 1 << 15; /* internal use */
333 val |= 1 << 14; /* internal use */
334 val |= 1 << 13; /* internal use */
335 val |= 1 << 12; /* internal use */
336 val |= 0x104 << 0; /* VLAN E ID */
337 MIIBUS_WRITEREG(sc->mii_dev, 4, 25, val);
385 int phy, reg, val;
393 val = MIIBUS_READREG(sc->mii_dev, phy, reg);
394 printf(" 0x%x", val);