gonzui


Format: Advanced Search

SearchGoogle itResults 1 - 1 of 1 for funcall:peek_mii from t2ex/t2ex_source/driver/tef_em1d/netdrv/src/misc.c (0.00 seconds)
t2ex
t2ex_source/driver/tef_em1d/netdrv/src/misc.c - 10.7KB - 328 lines
173:                 adr = (i + target) & 31;
174:                 prev = peek_mii(inf, adr, 0);
175:                 for (reg = 1; reg < 32; reg++) {
176:                         val = peek_mii(inf, adr, reg);
177:                         if (val != prev) goto fin;
208: WaitUsec(500); 209: bmcr = peek_mii(inf, adr, 0); 210: if (!(bmcr & BMCR_RESET)) break;
214: /* Confirm support of Giga-bit mode */ 215: gbe = peek_mii(inf, adr, 1) & BMSR_GB; 216: DP(("MIIinit(): GbE %supported\n", gbe ? "" : "not "));
221: mii_reg0 = 0; 222: mii_reg4 = peek_mii(inf, adr, 4) & 223: ~(ANAR_TX_FD | ANAR_TX_HD | ANAR_10_FD | ANAR_10_HD); 224: mii_reg4 |= (peek_mii(inf, adr, 1) & 0x7800) >> 6; 225: if (gbe) { 226: mii_reg9 = peek_mii(inf, adr, 9) & 227: ~(GBCR_1000T_FD | GBCR_1000T_HD); 228: mii_reg9 |= (peek_mii(inf, adr, 15) & 0x2000) >> 4; 229: } else {
262: #ifdef DEBUG 263: for (i = 0; i < 32; i++) printf("%04x%c", peek_mii(inf, adr, i), 264: ((i + 1) % 16) ? ' ' : '\n');
267: /* Clear PHY status register */ 268: peek_mii(inf, adr, 1); 269: