lance 242 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 247 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 249 drivers/net/ethernet/amd/ariadne.c if (!(lance->RDP & INTR)) /* Check if any interrupt has been */ lance 255 drivers/net/ethernet/amd/ariadne.c while ((csr0 = lance->RDP) & (ERR | RINT | TINT) && --boguscnt >= 0) { lance 257 drivers/net/ethernet/amd/ariadne.c lance->RDP = csr0 & ~(INEA | TDMD | STOP | STRT | INIT); lance 262 drivers/net/ethernet/amd/ariadne.c csr0, lance->RDP); lance 334 drivers/net/ethernet/amd/ariadne.c lance->RDP = STRT; lance 377 drivers/net/ethernet/amd/ariadne.c lance->RDP = STRT; lance 382 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 383 drivers/net/ethernet/amd/ariadne.c lance->RDP = INEA | BABL | CERR | MISS | MERR | IDON; lance 387 drivers/net/ethernet/amd/ariadne.c lance->RAP, lance->RDP); lance 394 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 400 drivers/net/ethernet/amd/ariadne.c in = lance->Reset; lance 403 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 404 drivers/net/ethernet/amd/ariadne.c lance->RDP = STOP; lance 407 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR88; /* Chip ID */ lance 408 drivers/net/ethernet/amd/ariadne.c version = swapw(lance->RDP); lance 409 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR89; /* Chip ID */ lance 410 drivers/net/ethernet/amd/ariadne.c version |= swapw(lance->RDP) << 16; lance 427 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR3; /* Interrupt Masks and Deferral Control */ lance 428 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 429 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR4; /* Test and Features Control */ lance 430 drivers/net/ethernet/amd/ariadne.c lance->RDP = DPOLL | APAD_XMT | MFCOM | RCVCCOM | TXSTRTM | JABM; lance 433 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR8; /* Logical Address Filter, LADRF[15:0] */ lance 434 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 435 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR9; /* Logical Address Filter, LADRF[31:16] */ lance 436 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 437 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR10; /* Logical Address Filter, LADRF[47:32] */ lance 438 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 439 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR11; /* Logical Address Filter, LADRF[63:48] */ lance 440 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 443 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR12; /* Physical Address Register, PADR[15:0] */ lance 444 drivers/net/ethernet/amd/ariadne.c lance->RDP = ((u_short *)&dev->dev_addr[0])[0]; lance 445 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR13; /* Physical Address Register, PADR[31:16] */ lance 446 drivers/net/ethernet/amd/ariadne.c lance->RDP = ((u_short *)&dev->dev_addr[0])[1]; lance 447 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR14; /* Physical Address Register, PADR[47:32] */ lance 448 drivers/net/ethernet/amd/ariadne.c lance->RDP = ((u_short *)&dev->dev_addr[0])[2]; lance 451 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR15; /* Mode Register */ lance 452 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 455 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR30; /* Base Address of Transmit Ring */ lance 456 drivers/net/ethernet/amd/ariadne.c lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); lance 457 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR31; /* Base Address of transmit Ring */ lance 458 drivers/net/ethernet/amd/ariadne.c lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, tx_ring)); lance 461 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR24; /* Base Address of Receive Ring */ lance 462 drivers/net/ethernet/amd/ariadne.c lance->RDP = swloww(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); lance 463 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR25; /* Base Address of Receive Ring */ lance 464 drivers/net/ethernet/amd/ariadne.c lance->RDP = swhighw(ARIADNE_RAM + offsetof(struct lancedata, rx_ring)); lance 467 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR76; /* Receive Ring Length */ lance 468 drivers/net/ethernet/amd/ariadne.c lance->RDP = swapw(((u_short)-RX_RING_SIZE)); lance 469 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR78; /* Transmit Ring Length */ lance 470 drivers/net/ethernet/amd/ariadne.c lance->RDP = swapw(((u_short)-TX_RING_SIZE)); lance 473 drivers/net/ethernet/amd/ariadne.c lance->RAP = ISACSR2; /* Miscellaneous Configuration */ lance 474 drivers/net/ethernet/amd/ariadne.c lance->IDP = ASEL; lance 477 drivers/net/ethernet/amd/ariadne.c lance->RAP = ISACSR5; /* LED1 Status */ lance 478 drivers/net/ethernet/amd/ariadne.c lance->IDP = PSE|XMTE; lance 479 drivers/net/ethernet/amd/ariadne.c lance->RAP = ISACSR6; /* LED2 Status */ lance 480 drivers/net/ethernet/amd/ariadne.c lance->IDP = PSE|COLE; lance 481 drivers/net/ethernet/amd/ariadne.c lance->RAP = ISACSR7; /* LED3 Status */ lance 482 drivers/net/ethernet/amd/ariadne.c lance->IDP = PSE|RCVE; lance 491 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 492 drivers/net/ethernet/amd/ariadne.c lance->RDP = INEA | STRT; lance 499 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 503 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR112; /* Missed Frame Count */ lance 504 drivers/net/ethernet/amd/ariadne.c dev->stats.rx_missed_errors = swapw(lance->RDP); lance 505 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 509 drivers/net/ethernet/amd/ariadne.c lance->RDP); lance 515 drivers/net/ethernet/amd/ariadne.c lance->RDP = STOP; lance 524 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 526 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 527 drivers/net/ethernet/amd/ariadne.c lance->RDP = STOP; lance 529 drivers/net/ethernet/amd/ariadne.c lance->RDP = INEA | STRT; lance 535 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 538 drivers/net/ethernet/amd/ariadne.c lance->RDP); lance 547 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 554 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 555 drivers/net/ethernet/amd/ariadne.c netdev_dbg(dev, "%s: csr0 %04x\n", __func__, lance->RDP); lance 556 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; lance 609 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 610 drivers/net/ethernet/amd/ariadne.c lance->RDP = INEA | TDMD; lance 623 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 628 drivers/net/ethernet/amd/ariadne.c saved_addr = lance->RAP; lance 629 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR112; /* Missed Frame Count */ lance 630 drivers/net/ethernet/amd/ariadne.c dev->stats.rx_missed_errors = swapw(lance->RDP); lance 631 drivers/net/ethernet/amd/ariadne.c lance->RAP = saved_addr; lance 645 drivers/net/ethernet/amd/ariadne.c volatile struct Am79C960 *lance = (struct Am79C960 *)dev->base_addr; lance 653 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 654 drivers/net/ethernet/amd/ariadne.c lance->RDP = STOP; /* Temporarily stop the lance */ lance 658 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR15; /* Mode Register */ lance 659 drivers/net/ethernet/amd/ariadne.c lance->RDP = PROM; /* Set promiscuous mode */ lance 670 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR8 + (i << 8); lance 672 drivers/net/ethernet/amd/ariadne.c lance->RDP = swapw(multicast_table[i]); lance 674 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR15; /* Mode Register */ lance 675 drivers/net/ethernet/amd/ariadne.c lance->RDP = 0x0000; /* Unset promiscuous mode */ lance 678 drivers/net/ethernet/amd/ariadne.c lance->RAP = CSR0; /* PCnet-ISA Controller Status */ lance 679 drivers/net/ethernet/amd/ariadne.c lance->RDP = INEA | STRT | IDON;/* Resume normal operation */ lance 42 drivers/net/ethernet/amd/hplance.c struct lance_private lance; lance 152 drivers/net/ethernet/amd/hplance.c lp->lance.name = d->name; lance 153 drivers/net/ethernet/amd/hplance.c lp->lance.base = va; lance 154 drivers/net/ethernet/amd/hplance.c lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */ lance 155 drivers/net/ethernet/amd/hplance.c lp->lance.lance_init_block = NULL; /* LANCE addr of same RAM */ lance 156 drivers/net/ethernet/amd/hplance.c lp->lance.busmaster_regval = LE_C3_BSWP; /* we're bigendian */ lance 157 drivers/net/ethernet/amd/hplance.c lp->lance.irq = d->ipl; lance 158 drivers/net/ethernet/amd/hplance.c lp->lance.writerap = hplance_writerap; lance 159 drivers/net/ethernet/amd/hplance.c lp->lance.writerdp = hplance_writerdp; lance 160 drivers/net/ethernet/amd/hplance.c lp->lance.readrdp = hplance_readrdp; lance 161 drivers/net/ethernet/amd/hplance.c lp->lance.lance_log_rx_bufs = LANCE_LOG_RX_BUFFERS; lance 162 drivers/net/ethernet/amd/hplance.c lp->lance.lance_log_tx_bufs = LANCE_LOG_TX_BUFFERS; lance 163 drivers/net/ethernet/amd/hplance.c lp->lance.rx_ring_mod_mask = RX_RING_MOD_MASK; lance 164 drivers/net/ethernet/amd/hplance.c lp->lance.tx_ring_mod_mask = TX_RING_MOD_MASK; lance 41 drivers/net/ethernet/amd/mvme147.c struct lance_private lance; lance 121 drivers/net/ethernet/amd/mvme147.c lp->lance.name = name; lance 122 drivers/net/ethernet/amd/mvme147.c lp->lance.base = dev->base_addr; lance 123 drivers/net/ethernet/amd/mvme147.c lp->lance.init_block = (struct lance_init_block *)(lp->ram); /* CPU addr */ lance 124 drivers/net/ethernet/amd/mvme147.c lp->lance.lance_init_block = (struct lance_init_block *)(lp->ram); /* LANCE addr of same RAM */ lance 125 drivers/net/ethernet/amd/mvme147.c lp->lance.busmaster_regval = LE_C3_BSWP; /* we're bigendian */ lance 126 drivers/net/ethernet/amd/mvme147.c lp->lance.irq = MVME147_LANCE_IRQ; lance 127 drivers/net/ethernet/amd/mvme147.c lp->lance.writerap = (writerap_t)m147lance_writerap; lance 128 drivers/net/ethernet/amd/mvme147.c lp->lance.writerdp = (writerdp_t)m147lance_writerdp; lance 129 drivers/net/ethernet/amd/mvme147.c lp->lance.readrdp = (readrdp_t)m147lance_readrdp; lance 130 drivers/net/ethernet/amd/mvme147.c lp->lance.lance_log_rx_bufs = LANCE_LOG_RX_BUFFERS; lance 131 drivers/net/ethernet/amd/mvme147.c lp->lance.lance_log_tx_bufs = LANCE_LOG_TX_BUFFERS; lance 132 drivers/net/ethernet/amd/mvme147.c lp->lance.rx_ring_mod_mask = RX_RING_MOD_MASK; lance 133 drivers/net/ethernet/amd/mvme147.c lp->lance.tx_ring_mod_mask = TX_RING_MOD_MASK;