Lines Matching refs:lance
223 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_open() local
229 in = lance->Reset; in ariadne_open()
232 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_open()
233 lance->RDP = STOP; in ariadne_open()
236 lance->RAP = CSR88; /* Chip ID */ in ariadne_open()
237 version = swapw(lance->RDP); in ariadne_open()
238 lance->RAP = CSR89; /* Chip ID */ in ariadne_open()
239 version |= swapw(lance->RDP)<<16; in ariadne_open()
257 lance->RAP = CSR3; /* Interrupt Masks and Deferral Control */ in ariadne_open()
258 lance->RDP = 0x0000; in ariadne_open()
259 lance->RAP = CSR4; /* Test and Features Control */ in ariadne_open()
260 lance->RDP = DPOLL|APAD_XMT|MFCOM|RCVCCOM|TXSTRTM|JABM; in ariadne_open()
263 lance->RAP = CSR8; /* Logical Address Filter, LADRF[15:0] */ in ariadne_open()
264 lance->RDP = 0x0000; in ariadne_open()
265 lance->RAP = CSR9; /* Logical Address Filter, LADRF[31:16] */ in ariadne_open()
266 lance->RDP = 0x0000; in ariadne_open()
267 lance->RAP = CSR10; /* Logical Address Filter, LADRF[47:32] */ in ariadne_open()
268 lance->RDP = 0x0000; in ariadne_open()
269 lance->RAP = CSR11; /* Logical Address Filter, LADRF[63:48] */ in ariadne_open()
270 lance->RDP = 0x0000; in ariadne_open()
273 lance->RAP = CSR12; /* Physical Address Register, PADR[15:0] */ in ariadne_open()
274 lance->RDP = ((u_short *)&dev->dev_addr[0])[0]; in ariadne_open()
275 lance->RAP = CSR13; /* Physical Address Register, PADR[31:16] */ in ariadne_open()
276 lance->RDP = ((u_short *)&dev->dev_addr[0])[1]; in ariadne_open()
277 lance->RAP = CSR14; /* Physical Address Register, PADR[47:32] */ in ariadne_open()
278 lance->RDP = ((u_short *)&dev->dev_addr[0])[2]; in ariadne_open()
281 lance->RAP = CSR15; /* Mode Register */ in ariadne_open()
282 lance->RDP = 0x0000; in ariadne_open()
285 lance->RAP = CSR30; /* Base Address of Transmit Ring */ in ariadne_open()
286 lance->RDP = swloww(ARIADNE_RAM+offsetof(struct lancedata, tx_ring)); in ariadne_open()
287 lance->RAP = CSR31; /* Base Address of transmit Ring */ in ariadne_open()
288 lance->RDP = swhighw(ARIADNE_RAM+offsetof(struct lancedata, tx_ring)); in ariadne_open()
291 lance->RAP = CSR24; /* Base Address of Receive Ring */ in ariadne_open()
292 lance->RDP = swloww(ARIADNE_RAM+offsetof(struct lancedata, rx_ring)); in ariadne_open()
293 lance->RAP = CSR25; /* Base Address of Receive Ring */ in ariadne_open()
294 lance->RDP = swhighw(ARIADNE_RAM+offsetof(struct lancedata, rx_ring)); in ariadne_open()
297 lance->RAP = CSR76; /* Receive Ring Length */ in ariadne_open()
298 lance->RDP = swapw(((u_short)-RX_RING_SIZE)); in ariadne_open()
299 lance->RAP = CSR78; /* Transmit Ring Length */ in ariadne_open()
300 lance->RDP = swapw(((u_short)-TX_RING_SIZE)); in ariadne_open()
303 lance->RAP = ISACSR2; /* Miscellaneous Configuration */ in ariadne_open()
304 lance->IDP = ASEL; in ariadne_open()
307 lance->RAP = ISACSR5; /* LED1 Status */ in ariadne_open()
308 lance->IDP = PSE|XMTE; in ariadne_open()
309 lance->RAP = ISACSR6; /* LED2 Status */ in ariadne_open()
310 lance->IDP = PSE|COLE; in ariadne_open()
311 lance->RAP = ISACSR7; /* LED3 Status */ in ariadne_open()
312 lance->IDP = PSE|RCVE; in ariadne_open()
320 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_open()
321 lance->RDP = INEA|STRT; in ariadne_open()
376 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_close() local
380 lance->RAP = CSR112; /* Missed Frame Count */ in ariadne_close()
381 priv->stats.rx_missed_errors = swapw(lance->RDP); in ariadne_close()
382 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_close()
386 lance->RDP); in ariadne_close()
392 lance->RDP = STOP; in ariadne_close()
402 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_reset() local
404 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_reset()
405 lance->RDP = STOP; in ariadne_reset()
407 lance->RDP = INEA|STRT; in ariadne_reset()
415 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_interrupt() local
424 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_interrupt()
426 if (!(lance->RDP & INTR)) /* Check if any interrupt has been */ in ariadne_interrupt()
432 while ((csr0 = lance->RDP) & (ERR|RINT|TINT) && --boguscnt >= 0) { in ariadne_interrupt()
434 lance->RDP = csr0 & ~(INEA|TDMD|STOP|STRT|INIT); in ariadne_interrupt()
439 csr0, lance->RDP); in ariadne_interrupt()
509 lance->RDP = STRT; in ariadne_interrupt()
546 lance->RDP = STRT; in ariadne_interrupt()
551 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_interrupt()
552 lance->RDP = INEA|BABL|CERR|MISS|MERR|IDON; in ariadne_interrupt()
556 printk("%s: exiting interrupt, csr%d=%#4.4x.\n", dev->name, lance->RAP, in ariadne_interrupt()
557 lance->RDP); in ariadne_interrupt()
565 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_tx_timeout() local
568 dev->name, lance->RDP); in ariadne_tx_timeout()
577 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_start_xmit() local
584 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_start_xmit()
586 lance->RDP); in ariadne_start_xmit()
587 lance->RDP = 0x0000; in ariadne_start_xmit()
668 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_start_xmit()
669 lance->RDP = INEA|TDMD; in ariadne_start_xmit()
776 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in ariadne_get_stats() local
782 saved_addr = lance->RAP; in ariadne_get_stats()
783 lance->RAP = CSR112; /* Missed Frame Count */ in ariadne_get_stats()
784 priv->stats.rx_missed_errors = swapw(lance->RDP); in ariadne_get_stats()
785 lance->RAP = saved_addr; in ariadne_get_stats()
800 volatile struct Am79C960 *lance = (struct Am79C960*)dev->base_addr; in set_multicast_list() local
808 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in set_multicast_list()
809 lance->RDP = STOP; /* Temporarily stop the lance. */ in set_multicast_list()
815 lance->RAP = CSR15; /* Mode Register */ in set_multicast_list()
816 lance->RDP = PROM; /* Set promiscuous mode */ in set_multicast_list()
825 lance->RAP = CSR8+(i<<8); /* Logical Address Filter */ in set_multicast_list()
826 lance->RDP = swapw(multicast_table[i]); in set_multicast_list()
828 lance->RAP = CSR15; /* Mode Register */ in set_multicast_list()
829 lance->RDP = 0x0000; /* Unset promiscuous mode */ in set_multicast_list()
832 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in set_multicast_list()
833 lance->RDP = INEA|STRT|IDON; /* Resume normal operation. */ in set_multicast_list()