Lines Matching refs:BASE
268 static u32 BASE; variable
324 outw(inw(BASE + MACCtrl0) | EnbFullDuplex, in check_duplex()
325 BASE + MACCtrl0); in check_duplex()
337 outw(inw(BASE + MACCtrl0) | duplex ? 0x20 : 0, in check_duplex()
338 BASE + MACCtrl0); in check_duplex()
394 outl(virt_to_le32desc(&rx_ring[0]), BASE + RxListPtr); in sundance_reset()
403 outw(addr16, BASE + StationAddr); in sundance_reset()
405 outw(addr16, BASE + StationAddr + 2); in sundance_reset()
407 outw(addr16, BASE + StationAddr + 4); in sundance_reset()
410 outw(sdc->mtu + 14, BASE + MaxFrameSize); in sundance_reset()
412 outl(inl(BASE + ASICCtrl) | 0x0c, BASE + ASICCtrl); in sundance_reset()
416 outw(0, BASE + DownCounter); in sundance_reset()
418 outb(100, BASE + RxDMAPollPeriod); in sundance_reset()
422 writeb(0x01, BASE + DebugCtrl1); in sundance_reset()
424 outw(RxEnable | TxEnable, BASE + MACCtrl1); in sundance_reset()
440 sdc->nic_name, (int) inl(BASE + RxStatus), in sundance_reset()
441 (int) inw(BASE + TxStatus), (int) inl(BASE + MACCtrl0), in sundance_reset()
442 (int) inw(BASE + MACCtrl1), (int) inw(BASE + MACCtrl0))); in sundance_reset()
461 outw(0x0200, BASE + ASICCtrl); in sundance_irq()
524 outw(TxDisable, BASE + MACCtrl1); in sundance_transmit()
542 outl(virt_to_le32desc(&tx_ring[0]), BASE + TxListPtr); in sundance_transmit()
545 outw(TxEnable, BASE + MACCtrl1); in sundance_transmit()
547 outw(0, BASE + TxStatus); in sundance_transmit()
556 outw(TxDisable, BASE + MACCtrl1); in sundance_transmit()
575 outw(0x0000, BASE + IntrEnable); in sundance_disable()
577 outw(TxDisable | RxDisable | StatsDisable, BASE + MACCtrl1); in sundance_disable()
597 BASE = pci->ioaddr; in sundance_probe()
604 le16_to_cpu(eeprom_read(BASE, i + EEPROM_SA_OFFSET)); in sundance_probe()
627 printf("%s: %! at ioaddr %hX, ", pci->name, nic->node_addr, BASE); in sundance_probe()
680 if (inl(BASE + ASICCtrl) & 0x80) { in sundance_probe()
705 dprintf(("ASIC Control is %x.\n", inl(BASE + ASICCtrl))); in sundance_probe()
706 outw(0x007f, BASE + ASICCtrl + 2); in sundance_probe()
707 dprintf(("ASIC Control is now %x.\n", inl(BASE + ASICCtrl))); in sundance_probe()
734 outw(inw(BASE + MulticastFilter1 + 2) | 0x0200, in sundance_probe()
735 BASE + MulticastFilter1 + 2); in sundance_probe()
736 outw(inw(BASE + MACCtrl0) | EnbFlowCtrl, BASE + MACCtrl0); in sundance_probe()
747 nic->ioaddr = BASE; in sundance_probe()
807 long mdio_addr = BASE + MIICtrl; in mdio_read()
840 long mdio_addr = BASE + MIICtrl; in mdio_write()
879 outw(mc_filter[i], BASE + MulticastFilter0 + i * 2); in set_rx_mode()
880 outb(rx_mode, BASE + RxMode); in set_rx_mode()