Lines Matching +full:0 +full:x0003ffff
21 static u16 t21142_csr13[] = { 0x0001, 0x0009, 0x0009, 0x0000, 0x0001, };
22 u16 t21142_csr14[] = { 0xFFFF, 0x0705, 0x0705, 0x0000, 0x7F3D, };
23 static u16 t21142_csr15[] = { 0x0008, 0x0006, 0x000E, 0x0008, 0x0008, };
36 int new_csr6 = 0; in t21142_media_task()
40 if ((csr14 & 0x80) && (csr12 & 0x7000) != 0x5000) in t21142_media_task()
46 if (tulip_check_duplex(dev) < 0) { in t21142_media_task()
70 } else if ((csr12 & 0x7000) != 0x5000) { in t21142_media_task()
77 new_csr6 = 0x82420000; in t21142_media_task()
78 dev->if_port = 0; in t21142_media_task()
79 iowrite32(0, ioaddr + CSR13); in t21142_media_task()
80 iowrite32(0x0003FFFF, ioaddr + CSR14); in t21142_media_task()
85 new_csr6 = 0x83860000; in t21142_media_task()
87 iowrite32(0, ioaddr + CSR13); in t21142_media_task()
88 iowrite32(0x0003FFFF, ioaddr + CSR14); in t21142_media_task()
95 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_media_task()
96 tp->csr6 &= 0x00D5; in t21142_media_task()
98 iowrite32(0x0301, ioaddr + CSR12); in t21142_media_task()
115 int csr14 = ((tp->sym_advertise & 0x0780) << 9) | in t21142_start_nway()
116 ((tp->sym_advertise & 0x0020) << 1) | 0xffbf; in t21142_start_nway()
118 dev->if_port = 0; in t21142_start_nway()
120 tp->nwayset = tp->lpar = 0; in t21142_start_nway()
124 iowrite32(0x0001, ioaddr + CSR13); in t21142_start_nway()
127 tp->csr6 = 0x82420000 | (tp->sym_advertise & 0x0040 ? FullDuplex : 0); in t21142_start_nway()
133 iowrite16(0x0008, ioaddr + CSR15); in t21142_start_nway()
134 iowrite32(0x1301, ioaddr + CSR12); /* Trigger NWAY. */ in t21142_start_nway()
147 if ((csr14 & 0x80) && (csr12 & 0x7000) != 0x5000) in t21142_lnk_change()
155 if (tp->nway && !tp->nwayset && (csr12 & 0x7000) == 0x5000) { in t21142_lnk_change()
156 int setup_done = 0; in t21142_lnk_change()
161 if (!(csr12 & 0x8000)) dev->if_port = 0; in t21142_lnk_change()
162 else if (negotiated & 0x0100) dev->if_port = 5; in t21142_lnk_change()
163 else if (negotiated & 0x0080) dev->if_port = 3; in t21142_lnk_change()
164 else if (negotiated & 0x0040) dev->if_port = 4; in t21142_lnk_change()
165 else if (negotiated & 0x0020) dev->if_port = 0; in t21142_lnk_change()
167 tp->nwayset = 0; in t21142_lnk_change()
168 if ((csr12 & 2) == 0 && (tp->sym_advertise & 0x0180)) in t21142_lnk_change()
171 tp->full_duplex = (tulip_media_cap[dev->if_port] & MediaAlwaysFD) ? 1:0; in t21142_lnk_change()
188 for (i = 0; i < tp->mtable->leafcount; i++) in t21142_lnk_change()
198 tp->csr6 = (dev->if_port & 1 ? 0x838E0000 : 0x82420000) | (tp->csr6 & 0x20ff); in t21142_lnk_change()
200 tp->csr6 |= 0x0200; in t21142_lnk_change()
203 #if 0 /* Restart shouldn't be needed. */ in t21142_lnk_change()
214 } else if ((tp->nwayset && (csr5 & 0x08000000) && in t21142_lnk_change()
234 iowrite32(csr14 & ~0x080, ioaddr + CSR14); in t21142_lnk_change()
235 } else if (dev->if_port == 0 || dev->if_port == 4) { in t21142_lnk_change()
236 if ((csr12 & 4) == 0) in t21142_lnk_change()
241 dev->if_port = 0; in t21142_lnk_change()
250 tp->csr6 = 0x838E0000 | (tp->csr6 & 0x20ff); in t21142_lnk_change()
251 iowrite32(0x0003FF7F, ioaddr + CSR14); in t21142_lnk_change()
252 iowrite32(0x0301, ioaddr + CSR12); in t21142_lnk_change()