Home | History | Annotate | Download | only in netboot

Lines Matching full:ioaddr

138 static unsigned short		ioaddr;
218 (void)inw(ioaddr+LANCE_RESET);
221 outw(0, ioaddr+LANCE_RESET);
226 outw(0x2, ioaddr+LANCE_ADDR);
228 outw(inw(ioaddr+LANCE_BUS_IF) | 0x2, ioaddr+LANCE_BUS_IF);
237 outw(49, ioaddr+0x12) ;
238 media = inw(ioaddr+0x16) ;
249 outw(49, ioaddr+0x12) ;
250 outw(media, ioaddr+0x16) ;
251 outw(49, ioaddr+0x12) ;
252 check = inw(ioaddr+0x16) ;
274 outw(0x1, ioaddr+LANCE_ADDR);
275 (void)inw(ioaddr+LANCE_ADDR);
276 outw((short)l, ioaddr+LANCE_DATA);
277 outw(0x2, ioaddr+LANCE_ADDR);
278 (void)inw(ioaddr+LANCE_ADDR);
279 outw((short)(l >> 16), ioaddr+LANCE_DATA);
280 outw(0x4, ioaddr+LANCE_ADDR);
281 (void)inw(ioaddr+LANCE_ADDR);
282 outw(0x915, ioaddr+LANCE_DATA);
283 outw(0x0, ioaddr+LANCE_ADDR);
284 (void)inw(ioaddr+LANCE_ADDR);
285 outw(0x4, ioaddr+LANCE_DATA); /* stop */
286 outw(0x1, ioaddr+LANCE_DATA); /* init */
288 if (inw(ioaddr+LANCE_DATA) & 0x100)
296 outw(0x2, ioaddr+LANCE_DATA); /* start */
312 inw(ioaddr+LANCE_DATA));
322 outw(0x0, ioaddr+LANCE_ADDR);
323 (void)inw(ioaddr+LANCE_ADDR);
324 outw(0x500, ioaddr+LANCE_DATA); /* clear receive + InitDone */
361 outw(0x0, ioaddr+LANCE_ADDR);
362 (void)inw(ioaddr+LANCE_ADDR); /* as in the datasheets... */
367 outw(0x08, ioaddr+LANCE_DATA);
374 (void)inw(ioaddr+LANCE_ADDR);
375 outw(0x200, ioaddr+LANCE_DATA); /* clear transmit + InitDone */
379 inw(ioaddr+LANCE_DATA));
385 (void)inw(ioaddr+LANCE_RESET);
387 outw(0, ioaddr+LANCE_RESET);
389 outw(0, ioaddr+LANCE_ADDR);
390 outw(0x0004, ioaddr+LANCE_DATA); /* stop the LANCE */
411 reset_val = inw(ioaddr+LANCE_RESET);
412 outw(reset_val, ioaddr+LANCE_RESET);
414 outw(0x0, ioaddr+LANCE_ADDR); /* Switch to window 0 */
415 if (inw(ioaddr+LANCE_DATA) != 0x4)
418 outw(88, ioaddr+LANCE_ADDR); /* Get the version of the chip */
419 if (inw(ioaddr+LANCE_ADDR) != 88)
423 chip_version = inw(ioaddr+LANCE_DATA);
424 outw(89, ioaddr+LANCE_ADDR);
425 chip_version |= inw(ioaddr+LANCE_DATA) << 16;
442 outw(0x1, ioaddr+LANCE_ADDR);
443 (void)inw(ioaddr+LANCE_ADDR);
444 outw((unsigned short)l, ioaddr+LANCE_DATA);
445 outw(0x2, ioaddr+LANCE_ADDR);
446 (void)inw(ioaddr+LANCE_ADDR);
447 outw((unsigned short)(l >> 16), ioaddr+LANCE_DATA);
448 outw(0x4, ioaddr+LANCE_ADDR);
449 (void)inw(ioaddr+LANCE_ADDR);
450 outw(0x915, ioaddr+LANCE_DATA);
451 outw(0x0, ioaddr+LANCE_ADDR);
452 (void)inw(ioaddr+LANCE_ADDR);
455 nic->node_addr[i] = inb(ioaddr+LANCE_ETH_ADDR+i);
471 outw(0x7f04, ioaddr+LANCE_DATA); /* clear memory error bits */
474 outw(0x1, ioaddr+LANCE_DATA); /* init */
476 if (inw(ioaddr+LANCE_DATA) & 0x900)
478 if (inw(ioaddr+LANCE_DATA) & 0x100)
486 chip_table[lance_version].name, ioaddr, dma, nic->node_addr);
488 printf(" %s base %#hX, addr %!\n", chip_table[lance_version].name, ioaddr, nic->node_addr);
493 outw(0x0002, ioaddr+LANCE_ADDR);
495 outw(inw(ioaddr+LANCE_BUS_IF) | 0x0002, ioaddr+LANCE_BUS_IF);
527 for (p = probe_addrs; (ioaddr = *p) != 0; ++p)
529 char offset15, offset14 = inb(ioaddr + 14);
534 ((offset15 = inb(ioaddr + 15)) == 0x57 || offset15 == 0x44))
540 ((offset15 = inb(ioaddr + 15)) == 0x55 || offset15 == 0x44))
551 if (ioaddr != 0)