• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/pcmcia/

Lines Matching defs:nic_base

907     unsigned int nic_base = dev->base_addr;
912 tmp = inb_p(nic_base + PCNET_MISC) & ~3;
919 outb_p(tmp, nic_base + PCNET_MISC);
924 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1);
926 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000);
927 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200);
930 outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG);
934 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1);
936 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000);
937 mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200);
972 unsigned int nic_base = dev->base_addr;
981 outb_p(0xFF, nic_base + EN0_ISR); /* Clear bogus intr. */
1027 unsigned int nic_base = dev->base_addr;
1032 outb_p(E8390_NODMA+E8390_PAGE0+E8390_STOP, nic_base + E8390_CMD);
1034 outb(inb(nic_base + PCNET_RESET), nic_base + PCNET_RESET);
1037 if ((inb_p(nic_base+EN0_ISR) & ENISR_RESET) != 0)
1041 outb_p(ENISR_RESET, nic_base + EN0_ISR); /* Ack intr. */
1087 unsigned int nic_base = dev->base_addr;
1088 unsigned int mii_addr = nic_base + DLINK_GPIO;
1095 if (info->stale++ && (inb_p(nic_base + EN0_ISR) & ENISR_ALL)) {
1130 outb((p & 0x0140) ? 4 : 0, nic_base + DLINK_DIAG);
1214 unsigned int nic_base = dev->base_addr;
1224 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base + PCNET_CMD);
1225 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO);
1226 outb_p(0, nic_base + EN0_RCNTHI);
1227 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */
1228 outb_p(ring_page, nic_base + EN0_RSARHI);
1229 outb_p(E8390_RREAD+E8390_START, nic_base + PCNET_CMD);
1231 insw(nic_base + PCNET_DATAPORT, hdr,
1236 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */
1245 unsigned int nic_base = dev->base_addr;
1258 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base + PCNET_CMD);
1259 outb_p(count & 0xff, nic_base + EN0_RCNTLO);
1260 outb_p(count >> 8, nic_base + EN0_RCNTHI);
1261 outb_p(ring_offset & 0xff, nic_base + EN0_RSARLO);
1262 outb_p(ring_offset >> 8, nic_base + EN0_RSARHI);
1263 outb_p(E8390_RREAD+E8390_START, nic_base + PCNET_CMD);
1265 insw(nic_base + PCNET_DATAPORT,buf,count>>1);
1267 buf[count-1] = inb(nic_base + PCNET_DATAPORT), xfer_count++;
1277 int high = inb_p(nic_base + EN0_RSARHI);
1278 int low = inb_p(nic_base + EN0_RSARLO);
1289 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */
1298 unsigned int nic_base = dev->base_addr;
1323 outb_p(E8390_PAGE0+E8390_START+E8390_NODMA, nic_base+PCNET_CMD);
1329 outb_p(ENISR_RDC, nic_base + EN0_ISR);
1332 outb_p(count & 0xff, nic_base + EN0_RCNTLO);
1333 outb_p(count >> 8, nic_base + EN0_RCNTHI);
1334 outb_p(0x00, nic_base + EN0_RSARLO);
1335 outb_p(start_page, nic_base + EN0_RSARHI);
1337 outb_p(E8390_RWRITE+E8390_START, nic_base + PCNET_CMD);
1338 outsw(nic_base + PCNET_DATAPORT, buf, count>>1);
1348 int high = inb_p(nic_base + EN0_RSARHI);
1349 int low = inb_p(nic_base + EN0_RSARLO);
1364 while ((inb_p(nic_base + EN0_ISR) & ENISR_RDC) == 0)
1373 outb_p(ENISR_RDC, nic_base + EN0_ISR); /* Ack intr. */