• 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/

Lines Matching defs:nic_base

248 	int nic_base = dev->base_addr;
249 int saved_config = inb_p(nic_base - NIC_OFFSET + HP_CONFIGURE);
251 outb_p(saved_config | HP_DATAON, nic_base - NIC_OFFSET + HP_CONFIGURE);
252 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base);
253 outb_p(sizeof(struct e8390_pkt_hdr), nic_base + EN0_RCNTLO);
254 outb_p(0, nic_base + EN0_RCNTHI);
255 outb_p(0, nic_base + EN0_RSARLO); /* On page boundary */
256 outb_p(ring_page, nic_base + EN0_RSARHI);
257 outb_p(E8390_RREAD+E8390_START, nic_base);
260 insw(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1);
262 insb(nic_base - NIC_OFFSET + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr));
264 outb_p(saved_config & (~HP_DATAON), nic_base - NIC_OFFSET + HP_CONFIGURE);
275 int nic_base = dev->base_addr;
276 int saved_config = inb_p(nic_base - NIC_OFFSET + HP_CONFIGURE);
280 outb_p(saved_config | HP_DATAON, nic_base - NIC_OFFSET + HP_CONFIGURE);
281 outb_p(E8390_NODMA+E8390_PAGE0+E8390_START, nic_base);
282 outb_p(count & 0xff, nic_base + EN0_RCNTLO);
283 outb_p(count >> 8, nic_base + EN0_RCNTHI);
284 outb_p(ring_offset & 0xff, nic_base + EN0_RSARLO);
285 outb_p(ring_offset >> 8, nic_base + EN0_RSARHI);
286 outb_p(E8390_RREAD+E8390_START, nic_base);
288 insw(nic_base - NIC_OFFSET + HP_DATAPORT,buf,count>>1);
290 buf[count-1] = inb(nic_base - NIC_OFFSET + HP_DATAPORT), xfer_count++;
292 insb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count);
296 int high = inb_p(nic_base + EN0_RSARHI);
297 int low = inb_p(nic_base + EN0_RSARLO);
304 outb_p(saved_config & (~HP_DATAON), nic_base - NIC_OFFSET + HP_CONFIGURE);
311 int nic_base = dev->base_addr;
312 int saved_config = inb_p(nic_base - NIC_OFFSET + HP_CONFIGURE);
314 outb_p(saved_config | HP_DATAON, nic_base - NIC_OFFSET + HP_CONFIGURE);
321 outb_p(E8390_PAGE0+E8390_START+E8390_NODMA, nic_base);
326 outb_p(0x42, nic_base + EN0_RCNTLO);
327 outb_p(0, nic_base + EN0_RCNTHI);
328 outb_p(0xff, nic_base + EN0_RSARLO);
329 outb_p(0x00, nic_base + EN0_RSARHI);
331 outb_p(E8390_RREAD+E8390_START, nic_base + NE_CMD);
337 outb_p(count & 0xff, nic_base + EN0_RCNTLO);
338 outb_p(count >> 8, nic_base + EN0_RCNTHI);
339 outb_p(0x00, nic_base + EN0_RSARLO);
340 outb_p(start_page, nic_base + EN0_RSARHI);
342 outb_p(E8390_RWRITE+E8390_START, nic_base);
345 outsw(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count>>1);
347 outsb(nic_base - NIC_OFFSET + HP_DATAPORT, buf, count);
354 int high = inb_p(nic_base + EN0_RSARHI);
355 int low = inb_p(nic_base + EN0_RSARLO);
361 outb_p(saved_config & (~HP_DATAON), nic_base - NIC_OFFSET + HP_CONFIGURE);