84 int next_tick = 60*
HZ;
87 dev_info(&dev->
dev,
"PNIC2 negotiation status %08x\n",
125 netdev_dbg(dev,
"Restarting PNIC2 autonegotiation, csr14=%08x\n",
152 tp->
csr6 |= 0x01000000;
181 "PNIC2 link status interrupt %08x, CSR5 %x, %08x\n",
191 if ((csr12 & 0x7000) == 0x5000) {
204 int negotiated = ((csr12 >> 16) & 0x01E0) & tp->
sym_advertise;
205 tp->
lpar = (csr12 >> 16);
208 if (negotiated & 0x0100) dev->
if_port = 5;
209 else if (negotiated & 0x0080) dev->
if_port = 3;
210 else if (negotiated & 0x0040) dev->
if_port = 4;
211 else if (negotiated & 0x0020) dev->
if_port = 0;
215 "funny autonegotiate result csr12 %08x advertising %04x\n",
231 "Switching to %s based on link negotiation %04x & %04x = %04x\n",
262 else tp->
csr6 |= 0x00400000;
270 netdev_dbg(dev,
"Setting CSR6 %08x/%x CSR12 %08x\n",
278 tulip_start_rxtx(tp);
284 "Autonegotiation failed, using %s, link beat status %04x\n",
308 tp->
csr6 |= 0x00400000;
310 tulip_restart_rxtx(tp);
317 if ((tp->
nwayset && (csr5 & 0x08000000) &&
342 (csr12 & 2) ?
"failed" :
"good");
367 (csr12 & 4) ?
"failed" :
"good");
386 dev_info(&dev->
dev,
"PNIC2 Link Change Default?\n");
399 tp->
csr6 |= 0x00400000;
401 tulip_restart_rxtx(tp);