Lines Matching refs:lance

242 	volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr;  in ariadne_interrupt()  local
247 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_interrupt()
249 if (!(lance->RDP & INTR)) /* Check if any interrupt has been */ in ariadne_interrupt()
255 while ((csr0 = lance->RDP) & (ERR | RINT | TINT) && --boguscnt >= 0) { in ariadne_interrupt()
257 lance->RDP = csr0 & ~(INEA | TDMD | STOP | STRT | INIT); in ariadne_interrupt()
262 csr0, lance->RDP); in ariadne_interrupt()
334 lance->RDP = STRT; in ariadne_interrupt()
377 lance->RDP = STRT; in ariadne_interrupt()
382 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_interrupt()
383 lance->RDP = INEA | BABL | CERR | MISS | MERR | IDON; in ariadne_interrupt()
387 lance->RAP, lance->RDP); in ariadne_interrupt()
394 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_open() local
400 in = lance->Reset; in ariadne_open()
403 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_open()
404 lance->RDP = STOP; in ariadne_open()
407 lance->RAP = CSR88; /* Chip ID */ in ariadne_open()
408 version = swapw(lance->RDP); in ariadne_open()
409 lance->RAP = CSR89; /* Chip ID */ in ariadne_open()
410 version |= swapw(lance->RDP) << 16; in ariadne_open()
427 lance->RAP = CSR3; /* Interrupt Masks and Deferral Control */ in ariadne_open()
428 lance->RDP = 0x0000; in ariadne_open()
429 lance->RAP = CSR4; /* Test and Features Control */ in ariadne_open()
430 lance->RDP = DPOLL | APAD_XMT | MFCOM | RCVCCOM | TXSTRTM | JABM; in ariadne_open()
433 lance->RAP = CSR8; /* Logical Address Filter, LADRF[15:0] */ in ariadne_open()
434 lance->RDP = 0x0000; in ariadne_open()
435 lance->RAP = CSR9; /* Logical Address Filter, LADRF[31:16] */ in ariadne_open()
436 lance->RDP = 0x0000; in ariadne_open()
437 lance->RAP = CSR10; /* Logical Address Filter, LADRF[47:32] */ in ariadne_open()
438 lance->RDP = 0x0000; in ariadne_open()
439 lance->RAP = CSR11; /* Logical Address Filter, LADRF[63:48] */ in ariadne_open()
440 lance->RDP = 0x0000; in ariadne_open()
443 lance->RAP = CSR12; /* Physical Address Register, PADR[15:0] */ in ariadne_open()
444 lance->RDP = ((const u_short *)&dev->dev_addr[0])[0]; in ariadne_open()
445 lance->RAP = CSR13; /* Physical Address Register, PADR[31:16] */ in ariadne_open()
446 lance->RDP = ((const u_short *)&dev->dev_addr[0])[1]; in ariadne_open()
447 lance->RAP = CSR14; /* Physical Address Register, PADR[47:32] */ in ariadne_open()
448 lance->RDP = ((const u_short *)&dev->dev_addr[0])[2]; in ariadne_open()
451 lance->RAP = CSR15; /* Mode Register */ in ariadne_open()
452 lance->RDP = 0x0000; in ariadne_open()
455 lance->RAP = CSR30; /* Base Address of Transmit Ring */ in ariadne_open()
456 lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); in ariadne_open()
457 lance->RAP = CSR31; /* Base Address of transmit Ring */ in ariadne_open()
458 lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); in ariadne_open()
461 lance->RAP = CSR24; /* Base Address of Receive Ring */ in ariadne_open()
462 lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); in ariadne_open()
463 lance->RAP = CSR25; /* Base Address of Receive Ring */ in ariadne_open()
464 lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); in ariadne_open()
467 lance->RAP = CSR76; /* Receive Ring Length */ in ariadne_open()
468 lance->RDP = swapw(((u_short)-RX_RING_SIZE)); in ariadne_open()
469 lance->RAP = CSR78; /* Transmit Ring Length */ in ariadne_open()
470 lance->RDP = swapw(((u_short)-TX_RING_SIZE)); in ariadne_open()
473 lance->RAP = ISACSR2; /* Miscellaneous Configuration */ in ariadne_open()
474 lance->IDP = ASEL; in ariadne_open()
477 lance->RAP = ISACSR5; /* LED1 Status */ in ariadne_open()
478 lance->IDP = PSE|XMTE; in ariadne_open()
479 lance->RAP = ISACSR6; /* LED2 Status */ in ariadne_open()
480 lance->IDP = PSE|COLE; in ariadne_open()
481 lance->RAP = ISACSR7; /* LED3 Status */ in ariadne_open()
482 lance->IDP = PSE|RCVE; in ariadne_open()
491 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_open()
492 lance->RDP = INEA | STRT; in ariadne_open()
499 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_close() local
503 lance->RAP = CSR112; /* Missed Frame Count */ in ariadne_close()
504 dev->stats.rx_missed_errors = swapw(lance->RDP); in ariadne_close()
505 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_close()
509 lance->RDP); in ariadne_close()
515 lance->RDP = STOP; in ariadne_close()
524 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_reset() local
526 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_reset()
527 lance->RDP = STOP; in ariadne_reset()
529 lance->RDP = INEA | STRT; in ariadne_reset()
535 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_tx_timeout() local
538 lance->RDP); in ariadne_tx_timeout()
547 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_start_xmit() local
554 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_start_xmit()
555 netdev_dbg(dev, "%s: csr0 %04x\n", __func__, lance->RDP); in ariadne_start_xmit()
556 lance->RDP = 0x0000; in ariadne_start_xmit()
609 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in ariadne_start_xmit()
610 lance->RDP = INEA | TDMD; in ariadne_start_xmit()
623 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in ariadne_get_stats() local
628 saved_addr = lance->RAP; in ariadne_get_stats()
629 lance->RAP = CSR112; /* Missed Frame Count */ in ariadne_get_stats()
630 dev->stats.rx_missed_errors = swapw(lance->RDP); in ariadne_get_stats()
631 lance->RAP = saved_addr; in ariadne_get_stats()
645 volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; in set_multicast_list() local
653 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in set_multicast_list()
654 lance->RDP = STOP; /* Temporarily stop the lance */ in set_multicast_list()
658 lance->RAP = CSR15; /* Mode Register */ in set_multicast_list()
659 lance->RDP = PROM; /* Set promiscuous mode */ in set_multicast_list()
670 lance->RAP = CSR8 + (i << 8); in set_multicast_list()
672 lance->RDP = swapw(multicast_table[i]); in set_multicast_list()
674 lance->RAP = CSR15; /* Mode Register */ in set_multicast_list()
675 lance->RDP = 0x0000; /* Unset promiscuous mode */ in set_multicast_list()
678 lance->RAP = CSR0; /* PCnet-ISA Controller Status */ in set_multicast_list()
679 lance->RDP = INEA | STRT | IDON;/* Resume normal operation */ in set_multicast_list()