Home | History | Annotate | Download | only in netboot

Lines Matching full:ioaddr

381 static u32 ioaddr;
482 static int read_eeprom(unsigned long ioaddr, int location, int addr_len);
577 long mdio_addr = ioaddr + CSR9;
585 outl(0x60020000 + (phy_id<<23) + (location<<18), ioaddr + 0xA0);
586 inl(ioaddr + 0xA0);
587 inl(ioaddr + 0xA0);
589 if ( ! ((retval = inl(ioaddr + 0xA0)) & 0x80000000))
597 return inl(ioaddr + 0xB4 + (location<<2));
599 return inl(ioaddr + 0xD0);
601 return inl(ioaddr + 0xD4 + ((location-29)<<2));
637 long mdio_addr = ioaddr + CSR9;
645 outl(cmd, ioaddr + 0xA0);
647 if ( ! (inl(ioaddr + 0xA0) & 0x80000000))
657 outl(value, ioaddr + 0xB4 + (location<<2));
659 outl(value, ioaddr + 0xD0);
661 outl(value, ioaddr + 0xD4 + ((location-29)<<2));
698 static int read_eeprom(unsigned long ioaddr, int location, int addr_len)
702 long ee_addr = ioaddr + CSR9;
961 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
965 outl(0x814C0000, ioaddr + CSR6);
969 outl(0x00000001, ioaddr + CSR0);
973 outl(tp->csr0, ioaddr + CSR0);
986 ioaddr + 0xB0);
987 outl(addr_high + (addr_high<<16), ioaddr + 0xB8);
997 outl(0, ioaddr + CSR13);
998 outl(addr_low, ioaddr + CSR14);
999 outl(1, ioaddr + CSR13);
1000 outl(addr_high, ioaddr + CSR14);
1001 outl(2, ioaddr + CSR13);
1002 outl(0, ioaddr + CSR14);
1003 outl(3, ioaddr + CSR13);
1004 outl(0, ioaddr + CSR14);
1006 outl(addr_low, ioaddr + 0xA4);
1007 outl(addr_high, ioaddr + 0xA8);
1008 outl(0, ioaddr + 0xAC);
1009 outl(0, ioaddr + 0xB0);
1033 outl((unsigned long)&rx_ring[0], ioaddr + CSR3);
1034 outl((unsigned long)&tx_ring[0], ioaddr + CSR4);
1039 outl((tp->csr6 & ~0x00002002), ioaddr + CSR6);
1044 outl(tp->csr6 | 0x00002000, ioaddr + CSR6);
1046 outl(0, ioaddr + CSR1);
1061 outl(tp->csr6 | 0x00002002, ioaddr + CSR6);
1074 u32 csr6 = inl(ioaddr + CSR6);
1081 outl(csr6 & ~0x00002000, ioaddr + CSR6);
1107 outl((u32)&tx_ring[0], ioaddr + CSR4);
1110 outl(csr6 | 0x00002000, ioaddr + CSR6);
1112 outl(0, ioaddr + CSR1);
1123 outl(csr6 & ~0x00002000, ioaddr + CSR6);
1177 outl(0x00000000, ioaddr + CSR7);
1180 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
1183 (volatile unsigned long)inl(ioaddr + CSR8);
1203 ioaddr = *io_addrs;
1218 outl(0x00000000, ioaddr + CSR7);
1221 outl(inl(ioaddr + CSR6) & ~0x00002002, ioaddr + CSR6);
1224 (volatile unsigned long)inl(ioaddr + CSR8);
1273 if (inl(ioaddr + CSR5) == 0xFFFFFFFF) {
1275 tp->nic_name, ioaddr);
1282 tulip_tbl[chip_idx].chip_name, chip_rev, ioaddr);
1285 if (chip_idx == DC21041 && inl(ioaddr + CSR9) & 0x8000) {
1295 outl(0, ioaddr + CSR9); /* Reset the pointer with a dummy write. */
1299 value = inl(ioaddr + CSR9);
1307 outl(0x600 | i, ioaddr + 0x98);
1309 value = inl(ioaddr + CSR9);
1316 put_unaligned(inl(ioaddr + 0xA4), (u32 *)nic->node_addr);
1317 put_unaligned(inl(ioaddr + 0xA8), (u16 *)(nic->node_addr + 4));
1323 int ee_addr_size = read_eeprom(ioaddr, 0xff, 8) & 0x40000 ? 8 : 6;
1327 le16_to_cpu(read_eeprom(ioaddr, i, ee_addr_size));
1362 printf("%s: %! at ioaddr %hX\n", tp->nic_name, nic->node_addr, ioaddr);
1470 outl(0x00000000, ioaddr + CSR13);
1471 outl(0x00000004, ioaddr + CSR13);
1477 outl(0x00000000, ioaddr + CSR13);
1478 outl(0xFFFFFFFF, ioaddr + CSR14);
1479 outl(0x00000008, ioaddr + CSR15); /* Listen on AUI also. */
1480 outl(inl(ioaddr + CSR6) | 0x0200, ioaddr + CSR6);
1481 outl(0x0000EF01, ioaddr + CSR13);
1485 outl(tp->mtable->csr12dir | 0x100, ioaddr + CSR12);
1490 outl(0x82020000, ioaddr + CSR6);
1491 outl(0x0000, ioaddr + CSR13);
1492 outl(0x0000, ioaddr + CSR14);
1493 outl(0x820E0000, ioaddr + CSR6);
1501 outl(0x00420000, ioaddr + CSR6);
1502 outl(0x30, ioaddr + CSR12);
1503 outl(0x0001F078, ioaddr + 0xB8);
1504 outl(0x0201F078, ioaddr + 0xB8); /* Turn on autonegotiation. */
1508 outl(0x00000000, ioaddr + CSR6);
1509 outl(0x000711C0, ioaddr + CSR14); /* Turn on NWay. */
1510 outl(0x00000001, ioaddr + CSR13);
1513 outl(0x01a80000, ioaddr + CSR6);
1514 outl(0xFFFFFFFF, ioaddr + CSR14);
1515 outl(0x00001000, ioaddr + CSR12);
1544 outl(0x0001, ioaddr + CSR13);
1545 outl(csr14, ioaddr + CSR14);
1547 outl(tp->csr6, ioaddr + CSR6);
1549 outl(tp->mtable->csr15dir, ioaddr + CSR15);
1550 outl(tp->mtable->csr15val, ioaddr + CSR15);
1552 outw(0x0008, ioaddr + CSR15);
1554 outl(0xEF01, ioaddr + CSR12);
1556 outl(0x1301, ioaddr + CSR12);
1607 outl(0x0000, ioaddr + CSR13);
1608 outl(0x0000, ioaddr + CSR14);
1609 outl(0x0008, ioaddr + CSR15);
1627 outl(0x82020000, ioaddr + CSR6);
1630 outl(0x0000, ioaddr + CSR13);
1631 outl(0x0000, ioaddr + CSR14);
1642 outl(0x0001, ioaddr + CSR15);
1643 } else if (inl(ioaddr + CSR5) & TPLnkPass)
1647 outl(0x32, ioaddr + CSR12);
1649 outl(0x0001B078, ioaddr + 0xB8);
1650 outl(0x0201B078, ioaddr + 0xB8);
1656 outl(0x0f370000 | inw(ioaddr + 0x80), ioaddr + 0x80);
1662 outl(0x0f370000 | inw(ioaddr + 0x80), ioaddr + 0x80);
1663 outl(0x11000 | inw(ioaddr + 0xa0), ioaddr + 0xa0);
1679 u32 phy_reg = inl(ioaddr + 0xB8);
1693 outl(0x32 | (tp->if_port & 1), ioaddr + CSR12);
1695 outl(0x1F868, ioaddr + 0xB8);
1707 outl(tp->csr6 | 0x0002, ioaddr + CSR6); /* Restart Tx */
1708 outl(tp->csr6 | 0x2002, ioaddr + CSR6);
1737 outl(mtable->csr12dir | 0x100, ioaddr + CSR12);
1738 outl(p[1], ioaddr + CSR12);
1760 outl(get_u16(rst + 1 + (i<<1)) << 16, ioaddr + CSR15);
1773 outl(0, ioaddr + CSR13);
1774 outl(csr14val, ioaddr + CSR14);
1775 outl(csr15dir, ioaddr + CSR15); /* Direction */
1776 outl(csr15val, ioaddr + CSR15); /* Data */
1777 outl(csr13val, ioaddr + CSR13);
1786 outl(0, ioaddr + CSR13);
1787 outl(csr14val, ioaddr + CSR14);
1789 outl(csr15dir, ioaddr + CSR15); /* Direction */
1790 outl(csr15val, ioaddr + CSR15); /* Data */
1791 if (startup) outl(csr13val, ioaddr + CSR13);
1818 outl(get_u16(&reset_sequence[i]) << 16, ioaddr + CSR15);
1820 outl(get_u16(&init_sequence[i]) << 16, ioaddr + CSR15);
1827 outl(mtable->csr12dir | 0x100, ioaddr + CSR12);
1829 outl(reset_sequence[i], ioaddr
1832 outl(init_sequence[i], ioaddr + CSR12);
1856 inl(ioaddr + CSR12) & 0xff);
1864 inl(ioaddr + CSR12));
1866 outl(0x00000000, ioaddr + CSR13); /* Reset the serial interface */
1867 outl(t21041_csr14[port], ioaddr + CSR14);
1868 outl(t21041_csr15[port], ioaddr + CSR15);
1869 outl(t21041_csr13[port], ioaddr + CSR13);
1877 tp->nic_name, inl(ioaddr + 0xB8), medianame[tp->if_port]);
1881 outl(0x0001, ioaddr + CSR15);
1882 outl(0x0201B07A, ioaddr + 0xB8);
1885 outl(0x32, ioaddr + CSR12);
1887 outl(0x0001B078, ioaddr + 0xB8);
1888 outl(0x0201B078, ioaddr + 0xB8);
1890 outl(0x33, ioaddr + CSR12);
1893 outl(startup ? 0x0201F868 : 0x0001F868, ioaddr + 0xB8);
1895 outl(0x32, ioaddr + CSR12);
1897 outl(0x1F078, ioaddr + 0xB8);
1901 int csr12 = inl(ioaddr + CSR12);
1911 outl(FULL_DUPLEX_MAGIC, ioaddr + CSR11);
1912 outl(0x00000000, ioaddr + CSR13); /* Reset the serial interface */
1914 outl(0x0705, ioaddr + CSR14);
1915 outl(0x0006, ioaddr + CSR15);
1917 outl(0xffff, ioaddr + CSR14);
1918 outl(0x0000, ioaddr + CSR15);
1920 outl(0x8f01 | t21040_csr13[tp->if_port], ioaddr + CSR13);
1935 inl(ioaddr + CSR12));