tag | line | file | source code |
ioaddr | 4293 | drivers/char/istallion.c | stli_brdstats.ioaddr = brdp->iobase; |
ioaddr | 234 | drivers/char/stallion.c | int ioaddr; |
ioaddr | 1156 | drivers/char/stallion.c | sio.port = portp->ioaddr; |
ioaddr | 1555 | drivers/char/stallion.c | outb((regnr + portp->uartaddr), portp->ioaddr); |
ioaddr | 1556 | drivers/char/stallion.c | return(inb(portp->ioaddr + EREG_DATA)); |
ioaddr | 1561 | drivers/char/stallion.c | outb((regnr + portp->uartaddr), portp->ioaddr); |
ioaddr | 1562 | drivers/char/stallion.c | outb(value, portp->ioaddr + EREG_DATA); |
ioaddr | 1567 | drivers/char/stallion.c | outb((regnr + portp->uartaddr), portp->ioaddr); |
ioaddr | 1568 | drivers/char/stallion.c | if (inb(portp->ioaddr + EREG_DATA) != value) { |
ioaddr | 1569 | drivers/char/stallion.c | outb(value, portp->ioaddr + EREG_DATA); |
ioaddr | 1589 | drivers/char/stallion.c | static inline void stl_txisr(stlpanel_t *panelp, int ioaddr) |
ioaddr | 1597 | drivers/char/stallion.c | printk("stl_txisr(panelp=%x,ioaddr=%x)\n", (int) panelp, ioaddr); |
ioaddr | 1600 | drivers/char/stallion.c | ioack = inb(ioaddr + EREG_TXACK); |
ioaddr | 1614 | drivers/char/stallion.c | outb((TDR + portp->uartaddr), ioaddr); |
ioaddr | 1615 | drivers/char/stallion.c | outb(ETC_CMD, (ioaddr + EREG_DATA)); |
ioaddr | 1616 | drivers/char/stallion.c | outb(ETC_STARTBREAK, (ioaddr + EREG_DATA)); |
ioaddr | 1617 | drivers/char/stallion.c | outb(ETC_CMD, (ioaddr + EREG_DATA)); |
ioaddr | 1618 | drivers/char/stallion.c | outb(ETC_DELAY, (ioaddr + EREG_DATA)); |
ioaddr | 1619 | drivers/char/stallion.c | outb(portp->brklen, (ioaddr + EREG_DATA)); |
ioaddr | 1620 | drivers/char/stallion.c | outb(ETC_CMD, (ioaddr + EREG_DATA)); |
ioaddr | 1621 | drivers/char/stallion.c | outb(ETC_STOPBREAK, (ioaddr + EREG_DATA)); |
ioaddr | 1625 | drivers/char/stallion.c | outb((COR2 + portp->uartaddr), ioaddr); |
ioaddr | 1626 | drivers/char/stallion.c | outb((inb(ioaddr + EREG_DATA) & ~COR2_ETC), (ioaddr + EREG_DATA)); |
ioaddr | 1640 | drivers/char/stallion.c | outb((SRER + portp->uartaddr), ioaddr); |
ioaddr | 1641 | drivers/char/stallion.c | srer = inb(ioaddr + EREG_DATA); |
ioaddr | 1648 | drivers/char/stallion.c | outb(srer, (ioaddr + EREG_DATA)); |
ioaddr | 1653 | drivers/char/stallion.c | outb((TDR + portp->uartaddr), ioaddr); |
ioaddr | 1654 | drivers/char/stallion.c | outsb((ioaddr + EREG_DATA), tail, stlen); |
ioaddr | 1660 | drivers/char/stallion.c | outsb((ioaddr + EREG_DATA), tail, len); |
ioaddr | 1667 | drivers/char/stallion.c | outb((EOSRR + portp->uartaddr), ioaddr); |
ioaddr | 1668 | drivers/char/stallion.c | outb(0, (ioaddr + EREG_DATA)); |
ioaddr | 1683 | drivers/char/stallion.c | static inline void stl_rxisr(stlpanel_t *panelp, int ioaddr) |
ioaddr | 1693 | drivers/char/stallion.c | printk("stl_rxisr(panelp=%x,ioaddr=%x)\n", (int) panelp, ioaddr); |
ioaddr | 1696 | drivers/char/stallion.c | ioack = inb(ioaddr + EREG_RXACK); |
ioaddr | 1705 | drivers/char/stallion.c | outb((RDCR + portp->uartaddr), ioaddr); |
ioaddr | 1706 | drivers/char/stallion.c | len = inb(ioaddr + EREG_DATA); |
ioaddr | 1709 | drivers/char/stallion.c | outb((RDSR + portp->uartaddr), ioaddr); |
ioaddr | 1710 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), &unwanted[0], len); |
ioaddr | 1716 | drivers/char/stallion.c | outb((RDSR + portp->uartaddr), ioaddr); |
ioaddr | 1717 | drivers/char/stallion.c | insb((ioaddr + EREG_DATA), tty->flip.char_buf_ptr, len); |
ioaddr | 1727 | drivers/char/stallion.c | outb((RDSR + portp->uartaddr), ioaddr); |
ioaddr | 1728 | drivers/char/stallion.c | status = inb(ioaddr + EREG_DATA); |
ioaddr | 1729 | drivers/char/stallion.c | ch = inb(ioaddr + EREG_DATA); |
ioaddr | 1780 | drivers/char/stallion.c | outb((EOSRR + portp->uartaddr), ioaddr); |
ioaddr | 1781 | drivers/char/stallion.c | outb(0, (ioaddr + EREG_DATA)); |
ioaddr | 1792 | drivers/char/stallion.c | static inline void stl_mdmisr(stlpanel_t *panelp, int ioaddr) |
ioaddr | 1802 | drivers/char/stallion.c | ioack = inb(ioaddr + EREG_MDACK); |
ioaddr | 1809 | drivers/char/stallion.c | outb((MISR + portp->uartaddr), ioaddr); |
ioaddr | 1810 | drivers/char/stallion.c | misr = inb(ioaddr + EREG_DATA); |
ioaddr | 1817 | drivers/char/stallion.c | outb((EOSRR + portp->uartaddr), ioaddr); |
ioaddr | 1818 | drivers/char/stallion.c | outb(0, (ioaddr + EREG_DATA)); |
ioaddr | 2474 | drivers/char/stallion.c | int nrchips, uartaddr, ioaddr; |
ioaddr | 2491 | drivers/char/stallion.c | ioaddr = panelp->iobase; |
ioaddr | 2493 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 1)); |
ioaddr | 2496 | drivers/char/stallion.c | outb((GFRCR + uartaddr), ioaddr); |
ioaddr | 2497 | drivers/char/stallion.c | outb(0, (ioaddr + EREG_DATA)); |
ioaddr | 2498 | drivers/char/stallion.c | outb((CCR + uartaddr), ioaddr); |
ioaddr | 2499 | drivers/char/stallion.c | outb(CCR_RESETFULL, (ioaddr + EREG_DATA)); |
ioaddr | 2500 | drivers/char/stallion.c | outb(CCR_RESETFULL, (ioaddr + EREG_DATA)); |
ioaddr | 2501 | drivers/char/stallion.c | outb((GFRCR + uartaddr), ioaddr); |
ioaddr | 2503 | drivers/char/stallion.c | if ((gfrcr = inb(ioaddr + EREG_DATA)) != 0) |
ioaddr | 2511 | drivers/char/stallion.c | outb((PPR + uartaddr), ioaddr); |
ioaddr | 2512 | drivers/char/stallion.c | outb(PPR_SCALAR, (ioaddr + EREG_DATA)); |
ioaddr | 2520 | drivers/char/stallion.c | ioaddr = panelp->iobase; |
ioaddr | 2524 | drivers/char/stallion.c | ioaddr = panelp->iobase; |
ioaddr | 2526 | drivers/char/stallion.c | ioaddr = panelp->iobase + (EREG_BANKSIZE * (i >> 3)); |
ioaddr | 2539 | drivers/char/stallion.c | portp->ioaddr = ioaddr; |
ioaddr | 2644 | drivers/char/stallion.c | int panelnr, ioaddr, i; |
ioaddr | 2707 | drivers/char/stallion.c | ioaddr = brdp->ioaddr2; |
ioaddr | 2714 | drivers/char/stallion.c | ioaddr = brdp->ioaddr2; |
ioaddr | 2716 | drivers/char/stallion.c | status = inb(ioaddr + ECH_PNLSTATUS); |
ioaddr | 2727 | drivers/char/stallion.c | panelp->iobase = ioaddr; |
ioaddr | 2736 | drivers/char/stallion.c | ioaddr += (EREG_BANKSIZE * 2); |
ioaddr | 2742 | drivers/char/stallion.c | ioaddr += EREG_BANKSIZE; |
ioaddr | 2747 | drivers/char/stallion.c | if (ioaddr >= (brdp->ioaddr2 + 0x20)) |
ioaddr | 2818 | drivers/char/stallion.c | unsigned int ioaddr; |
ioaddr | 2860 | drivers/char/stallion.c | if ((rc = pcibios_read_config_dword(busnr, devnr, PCI_BASE_ADDRESS_0, &ioaddr))) { |
ioaddr | 2864 | drivers/char/stallion.c | brdp->ioaddr2 = (ioaddr & PCI_BASE_ADDRESS_IO_MASK); |
ioaddr | 2866 | drivers/char/stallion.c | if ((rc = pcibios_read_config_dword(busnr, devnr, PCI_BASE_ADDRESS_1, &ioaddr))) { |
ioaddr | 2870 | drivers/char/stallion.c | brdp->ioaddr1 = (ioaddr & PCI_BASE_ADDRESS_IO_MASK); |
ioaddr | 2970 | drivers/char/stallion.c | stl_brdstats.ioaddr = brdp->ioaddr1; |
ioaddr | 119 | drivers/net/3c501.c | static int el1_probe1(struct device *dev, int ioaddr); |
ioaddr | 149 | drivers/net/3c501.c | #define RX_STATUS (ioaddr + 0x06) |
ioaddr | 151 | drivers/net/3c501.c | #define TX_STATUS (ioaddr + 0x07) |
ioaddr | 153 | drivers/net/3c501.c | #define GP_LOW (ioaddr + 0x08) |
ioaddr | 154 | drivers/net/3c501.c | #define GP_HIGH (ioaddr + 0x09) |
ioaddr | 155 | drivers/net/3c501.c | #define RX_BUF_CLR (ioaddr + 0x0A) |
ioaddr | 156 | drivers/net/3c501.c | #define RX_LOW (ioaddr + 0x0A) |
ioaddr | 157 | drivers/net/3c501.c | #define RX_HIGH (ioaddr + 0x0B) |
ioaddr | 158 | drivers/net/3c501.c | #define SAPROM (ioaddr + 0x0C) |
ioaddr | 159 | drivers/net/3c501.c | #define AX_STATUS (ioaddr + 0x0E) |
ioaddr | 161 | drivers/net/3c501.c | #define DATAPORT (ioaddr + 0x0F) |
ioaddr | 223 | drivers/net/3c501.c | int ioaddr = netcard_portlist[i]; |
ioaddr | 224 | drivers/net/3c501.c | if (check_region(ioaddr, EL1_IO_EXTENT)) |
ioaddr | 226 | drivers/net/3c501.c | if (el1_probe1(dev, ioaddr) == 0) |
ioaddr | 238 | drivers/net/3c501.c | static int el1_probe1(struct device *dev, int ioaddr) |
ioaddr | 253 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
ioaddr | 254 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
ioaddr | 277 | drivers/net/3c501.c | request_region(ioaddr, EL1_IO_EXTENT,"3c501"); |
ioaddr | 298 | drivers/net/3c501.c | mname, ioaddr); |
ioaddr | 304 | drivers/net/3c501.c | dev->base_addr = ioaddr; |
ioaddr | 358 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 379 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 495 | drivers/net/3c501.c | int ioaddr; |
ioaddr | 504 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
ioaddr | 564 | drivers/net/3c501.c | inw(ioaddr + EL1_DATAPTR), inw(ioaddr + EL1_RXPTR)); |
ioaddr | 676 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 730 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 739 | drivers/net/3c501.c | outb(dev->dev_addr[i], ioaddr + i); |
ioaddr | 755 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 758 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
ioaddr | 788 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 56 | drivers/net/3c503.c | int el2_probe1(struct device *dev, int ioaddr); |
ioaddr | 139 | drivers/net/3c503.c | int ioaddr = netcard_portlist[i]; |
ioaddr | 140 | drivers/net/3c503.c | if (check_region(ioaddr, EL2_IO_EXTENT)) |
ioaddr | 142 | drivers/net/3c503.c | if (el2_probe1(dev, ioaddr) == 0) |
ioaddr | 154 | drivers/net/3c503.c | el2_probe1(struct device *dev, int ioaddr) |
ioaddr | 161 | drivers/net/3c503.c | if (inb(ioaddr + 0x408) == 0xff) { |
ioaddr | 168 | drivers/net/3c503.c | iobase_reg = inb(ioaddr+0x403); |
ioaddr | 169 | drivers/net/3c503.c | membase_reg = inb(ioaddr+0x404); |
ioaddr | 175 | drivers/net/3c503.c | saved_406 = inb_p(ioaddr + 0x406); |
ioaddr | 176 | drivers/net/3c503.c | outb_p(ECNTRL_RESET|ECNTRL_THIN, ioaddr + 0x406); /* Reset it... */ |
ioaddr | 177 | drivers/net/3c503.c | outb_p(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 180 | drivers/net/3c503.c | outb(ECNTRL_SAPROM|ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 181 | drivers/net/3c503.c | vendor_id = inb(ioaddr)*0x10000 + inb(ioaddr + 1)*0x100 + inb(ioaddr + 2); |
ioaddr | 184 | drivers/net/3c503.c | outb(saved_406, ioaddr + 0x406); |
ioaddr | 197 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
ioaddr | 204 | drivers/net/3c503.c | printk("%s: 3c503 at i/o base %#3x, node ", dev->name, ioaddr); |
ioaddr | 208 | drivers/net/3c503.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 211 | drivers/net/3c503.c | outb(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 214 | drivers/net/3c503.c | outb_p(E8390_PAGE0, ioaddr + E8390_CMD); |
ioaddr | 215 | drivers/net/3c503.c | outb_p(0, ioaddr + EN0_DCFG); |
ioaddr | 216 | drivers/net/3c503.c | outb_p(E8390_PAGE2, ioaddr + E8390_CMD); |
ioaddr | 217 | drivers/net/3c503.c | wordlength = inb_p(ioaddr + EN0_DCFG) & ENDCFG_WTS; |
ioaddr | 218 | drivers/net/3c503.c | outb_p(E8390_PAGE0, ioaddr + E8390_CMD); |
ioaddr | 222 | drivers/net/3c503.c | outb(EGACFR_NORM, ioaddr + 0x405); /* Enable RAM */ |
ioaddr | 301 | drivers/net/3c503.c | request_region(ioaddr, EL2_IO_EXTENT, ei_status.name); |
ioaddr | 280 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, int ioaddr); |
ioaddr | 315 | drivers/net/3c507.c | int ioaddr = netcard_portlist[i]; |
ioaddr | 316 | drivers/net/3c507.c | if (check_region(ioaddr, EL16_IO_EXTENT)) |
ioaddr | 318 | drivers/net/3c507.c | if (el16_probe1(dev, ioaddr) == 0) |
ioaddr | 325 | drivers/net/3c507.c | int el16_probe1(struct device *dev, int ioaddr) |
ioaddr | 344 | drivers/net/3c507.c | if (inb(ioaddr) == '*' && inb(ioaddr+1) == '3' |
ioaddr | 345 | drivers/net/3c507.c | && inb(ioaddr+2) == 'C' && inb(ioaddr+3) == 'O') |
ioaddr | 357 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
ioaddr | 362 | drivers/net/3c507.c | irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 371 | drivers/net/3c507.c | request_region(ioaddr, EL16_IO_EXTENT, "3c507"); |
ioaddr | 372 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
ioaddr | 374 | drivers/net/3c507.c | outb(0x01, ioaddr + MISC_CTRL); |
ioaddr | 376 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
ioaddr | 390 | drivers/net/3c507.c | char mem_config = inb(ioaddr + MEM_CONFIG); |
ioaddr | 404 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
ioaddr | 405 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 454 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 476 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 499 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 503 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 520 | drivers/net/3c507.c | int ioaddr, status, boguscount = 0; |
ioaddr | 530 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
ioaddr | 541 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 604 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 607 | drivers/net/3c507.c | outb(0, ioaddr + RESET_IRQ); |
ioaddr | 610 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 618 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 626 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 629 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 706 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 711 | drivers/net/3c507.c | outb(0x20, ioaddr + MISC_CTRL); |
ioaddr | 734 | drivers/net/3c507.c | outb(0xA0, ioaddr + MISC_CTRL); |
ioaddr | 738 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 750 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 754 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 765 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 800 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
ioaddr | 72 | drivers/net/3c509.c | #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD) |
ioaddr | 115 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index); |
ioaddr | 130 | drivers/net/3c509.c | ushort ioaddr, irq, if_port; |
ioaddr | 139 | drivers/net/3c509.c | ioaddr = eisa_addr; |
ioaddr | 143 | drivers/net/3c509.c | if (inw(ioaddr + 0xC80) != 0x6d50) |
ioaddr | 147 | drivers/net/3c509.c | outw(SelectWindow | 0, ioaddr + 0xC80 + EL3_CMD); |
ioaddr | 149 | drivers/net/3c509.c | irq = inw(ioaddr + WN0_IRQ) >> 12; |
ioaddr | 150 | drivers/net/3c509.c | if_port = inw(ioaddr + 6)>>14; |
ioaddr | 152 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
ioaddr | 155 | drivers/net/3c509.c | read_eeprom(ioaddr, 3); |
ioaddr | 167 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
ioaddr | 168 | drivers/net/3c509.c | irq = inw(ioaddr + WN0_IRQ) >> 12; |
ioaddr | 169 | drivers/net/3c509.c | if_port = inw(ioaddr + 6)>>14; |
ioaddr | 171 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
ioaddr | 221 | drivers/net/3c509.c | ioaddr = 0x200 + ((iobase & 0x1f) << 4); |
ioaddr | 226 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
ioaddr | 237 | drivers/net/3c509.c | if (inw(ioaddr) != 0x6d50) |
ioaddr | 241 | drivers/net/3c509.c | outw(0x0f00, ioaddr + WN0_IRQ); |
ioaddr | 243 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
ioaddr | 283 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index) |
ioaddr | 287 | drivers/net/3c509.c | outw(EEPROM_READ + index, ioaddr + 10); |
ioaddr | 291 | drivers/net/3c509.c | return inw(ioaddr + 12); |
ioaddr | 321 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 324 | drivers/net/3c509.c | outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 325 | drivers/net/3c509.c | outw(RxReset, ioaddr + EL3_CMD); |
ioaddr | 326 | drivers/net/3c509.c | outw(SetReadZero | 0x00, ioaddr + EL3_CMD); |
ioaddr | 334 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
ioaddr | 337 | drivers/net/3c509.c | outw(0x0001, ioaddr + 4); |
ioaddr | 341 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ); |
ioaddr | 347 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
ioaddr | 351 | drivers/net/3c509.c | outw(StartCoax, ioaddr + EL3_CMD); |
ioaddr | 355 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) | MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 359 | drivers/net/3c509.c | outw(StatsDisable, ioaddr + EL3_CMD); |
ioaddr | 362 | drivers/net/3c509.c | inb(ioaddr + i); |
ioaddr | 363 | drivers/net/3c509.c | inb(ioaddr + 10); |
ioaddr | 364 | drivers/net/3c509.c | inb(ioaddr + 12); |
ioaddr | 370 | drivers/net/3c509.c | outw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 371 | drivers/net/3c509.c | outw(StatsEnable, ioaddr + EL3_CMD); /* Turn on statistics. */ |
ioaddr | 377 | drivers/net/3c509.c | outw(RxEnable, ioaddr + EL3_CMD); /* Enable the receiver. */ |
ioaddr | 378 | drivers/net/3c509.c | outw(TxEnable, ioaddr + EL3_CMD); /* Enable transmitter. */ |
ioaddr | 380 | drivers/net/3c509.c | outw(SetReadZero | 0xff, ioaddr + EL3_CMD); |
ioaddr | 381 | drivers/net/3c509.c | outw(AckIntr | 0x69, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 382 | drivers/net/3c509.c | outw(SetIntrMask | 0x98, ioaddr + EL3_CMD); /* Set interrupt mask. */ |
ioaddr | 386 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
ioaddr | 396 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 402 | drivers/net/3c509.c | outw(AckIntr | 0x08, ioaddr + EL3_CMD); |
ioaddr | 407 | drivers/net/3c509.c | while (inw(ioaddr + TX_FREE) > 1536) { |
ioaddr | 413 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
ioaddr | 414 | drivers/net/3c509.c | outw(0x00, ioaddr + TX_FIFO); |
ioaddr | 416 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
ioaddr | 425 | drivers/net/3c509.c | outw(SetTxThreshold + 1536, ioaddr + EL3_CMD); |
ioaddr | 431 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
ioaddr | 433 | drivers/net/3c509.c | if (tx_status & 0x30) outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 434 | drivers/net/3c509.c | if (tx_status & 0x3C) outw(TxEnable, ioaddr + EL3_CMD); |
ioaddr | 435 | drivers/net/3c509.c | outb(0x00, ioaddr + TX_STATUS); /* Pop the status stack. */ |
ioaddr | 445 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 467 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
ioaddr | 470 | drivers/net/3c509.c | outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 471 | drivers/net/3c509.c | outw(TxEnable, ioaddr + EL3_CMD); |
ioaddr | 484 | drivers/net/3c509.c | int ioaddr, status; |
ioaddr | 496 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
ioaddr | 497 | drivers/net/3c509.c | status = inw(ioaddr + EL3_STATUS); |
ioaddr | 502 | drivers/net/3c509.c | while ((status = inw(ioaddr + EL3_STATUS)) & 0x91) { |
ioaddr | 511 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 517 | drivers/net/3c509.c | outw(AckIntr | 0xFF, ioaddr + EL3_CMD); |
ioaddr | 521 | drivers/net/3c509.c | outw(AckIntr | 0x41, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 527 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS)); |
ioaddr | 553 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
ioaddr | 560 | drivers/net/3c509.c | outw(StatsDisable, ioaddr + EL3_CMD); |
ioaddr | 563 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
ioaddr | 564 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
ioaddr | 565 | drivers/net/3c509.c | /* Multiple collisions. */ inb(ioaddr + 2); |
ioaddr | 566 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
ioaddr | 567 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
ioaddr | 568 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
ioaddr | 569 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
ioaddr | 570 | drivers/net/3c509.c | /* Rx packets */ inb(ioaddr + 7); |
ioaddr | 571 | drivers/net/3c509.c | /* Tx deferrals */ inb(ioaddr + 8); |
ioaddr | 572 | drivers/net/3c509.c | inw(ioaddr + 10); /* Total Rx and Tx octets. */ |
ioaddr | 573 | drivers/net/3c509.c | inw(ioaddr + 12); |
ioaddr | 577 | drivers/net/3c509.c | outw(StatsEnable, ioaddr + EL3_CMD); |
ioaddr | 585 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 590 | drivers/net/3c509.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS)); |
ioaddr | 591 | drivers/net/3c509.c | while ((rx_status = inw(ioaddr + RX_STATUS)) > 0) { |
ioaddr | 616 | drivers/net/3c509.c | insl(ioaddr+RX_FIFO, skb_put(skb,pkt_len), |
ioaddr | 621 | drivers/net/3c509.c | outw(RxDiscard, ioaddr + EL3_CMD); /* Pop top Rx packet. */ |
ioaddr | 629 | drivers/net/3c509.c | outw(RxDiscard, ioaddr + EL3_CMD); |
ioaddr | 630 | drivers/net/3c509.c | while (inw(ioaddr + EL3_STATUS) & 0x1000) |
ioaddr | 632 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS) ); |
ioaddr | 644 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
ioaddr | 655 | drivers/net/3c509.c | ioaddr + EL3_CMD); |
ioaddr | 659 | drivers/net/3c509.c | outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 662 | drivers/net/3c509.c | outw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 668 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 677 | drivers/net/3c509.c | outw(StatsDisable, ioaddr + EL3_CMD); |
ioaddr | 680 | drivers/net/3c509.c | outw(RxDisable, ioaddr + EL3_CMD); |
ioaddr | 681 | drivers/net/3c509.c | outw(TxDisable, ioaddr + EL3_CMD); |
ioaddr | 685 | drivers/net/3c509.c | outw(StopCoax, ioaddr + EL3_CMD); |
ioaddr | 689 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) & ~MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 696 | drivers/net/3c509.c | outw(0x0f00, ioaddr + WN0_IRQ); |
ioaddr | 698 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 137 | drivers/net/3c59x.c | #define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD) |
ioaddr | 233 | drivers/net/3c59x.c | static int vortex_found_device(struct device *dev, int ioaddr, int irq, |
ioaddr | 359 | drivers/net/3c59x.c | static int ioaddr = 0x1000; |
ioaddr | 360 | drivers/net/3c59x.c | for (ioaddr = 0x1000; ioaddr < 0x9000; ioaddr += 0x1000) { |
ioaddr | 362 | drivers/net/3c59x.c | if (inw(ioaddr + 0xC80) != 0x6d50) |
ioaddr | 365 | drivers/net/3c59x.c | if ((inw(ioaddr + 0xC82) & 0xFFF0) != 0x5970 |
ioaddr | 366 | drivers/net/3c59x.c | && (inw(ioaddr + 0xC82) & 0xFFF0) != 0x5920) |
ioaddr | 368 | drivers/net/3c59x.c | vortex_found_device(dev, ioaddr, inw(ioaddr + 0xC88) >> 12, |
ioaddr | 379 | drivers/net/3c59x.c | static int vortex_found_device(struct device *dev, int ioaddr, int irq, |
ioaddr | 394 | drivers/net/3c59x.c | dev->base_addr = ioaddr; |
ioaddr | 419 | drivers/net/3c59x.c | dev->base_addr = ioaddr; |
ioaddr | 441 | drivers/net/3c59x.c | int ioaddr = dev->base_addr; |
ioaddr | 446 | drivers/net/3c59x.c | vp->product_name, ioaddr); |
ioaddr | 453 | drivers/net/3c59x.c | outw(EEPROM_Read + PhysAddr01 + i, ioaddr + Wn0EepromCmd); |
ioaddr | 457 | drivers/net/3c59x.c | if ((inw(ioaddr + Wn0EepromCmd) & 0x8000) == 0) |
ioaddr | 460 | drivers/net/3c59x.c | phys_addr[i] = htons(inw(ioaddr + 12)); |
ioaddr | 473 | drivers/net/3c59x.c | config.i = inl(ioaddr + Wn3_Config); |
ioaddr | 476 | drivers/net/3c59x.c | config.i, inw(ioaddr + Wn3_Options)); |
ioaddr | 488 | drivers/net/3c59x.c | request_region(ioaddr, VORTEX_TOTAL_SIZE, vp->product_name); |
ioaddr | 507 | drivers/net/3c59x.c | int ioaddr = dev->base_addr; |
ioaddr | 515 | drivers/net/3c59x.c | outb(0x20, ioaddr + Wn3_MAC_Ctrl); /* Set the full-duplex bit. */ |
ioaddr | 516 | drivers/net/3c59x.c | config.i = inl(ioaddr + Wn3_Config); |
ioaddr | 524 | drivers/net/3c59x.c | outl(config.i, ioaddr + Wn3_Config); |
ioaddr | 532 | drivers/net/3c59x.c | outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 534 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 537 | drivers/net/3c59x.c | outw(RxReset, ioaddr + EL3_CMD); |
ioaddr | 540 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 543 | drivers/net/3c59x.c | outw(SetStatusEnb | 0x00, ioaddr + EL3_CMD); |
ioaddr | 562 | drivers/net/3c59x.c | dev->name, dev->irq, inw(ioaddr + Wn4_Media)); |
ioaddr | 568 | drivers/net/3c59x.c | outb(dev->dev_addr[i], ioaddr + i); |
ioaddr | 570 | drivers/net/3c59x.c | outw(0, ioaddr + i); |
ioaddr | 574 | drivers/net/3c59x.c | outw(StartCoax, ioaddr + EL3_CMD); |
ioaddr | 578 | drivers/net/3c59x.c | outw(inw(ioaddr + Wn4_Media) | Media_TP, ioaddr + Wn4_Media); |
ioaddr | 582 | drivers/net/3c59x.c | outw(StatsDisable, ioaddr + EL3_CMD); |
ioaddr | 585 | drivers/net/3c59x.c | inb(ioaddr + i); |
ioaddr | 586 | drivers/net/3c59x.c | inw(ioaddr + 10); |
ioaddr | 587 | drivers/net/3c59x.c | inw(ioaddr + 12); |
ioaddr | 590 | drivers/net/3c59x.c | inb(ioaddr + 12); |
ioaddr | 596 | drivers/net/3c59x.c | outw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 597 | drivers/net/3c59x.c | outw(StatsEnable, ioaddr + EL3_CMD); /* Turn on statistics. */ |
ioaddr | 603 | drivers/net/3c59x.c | outw(RxEnable, ioaddr + EL3_CMD); /* Enable the receiver. */ |
ioaddr | 604 | drivers/net/3c59x.c | outw(TxEnable, ioaddr + EL3_CMD); /* Enable transmitter. */ |
ioaddr | 606 | drivers/net/3c59x.c | outw(SetStatusEnb | 0xff, ioaddr + EL3_CMD); |
ioaddr | 609 | drivers/net/3c59x.c | ioaddr + EL3_CMD); |
ioaddr | 611 | drivers/net/3c59x.c | | DMADone, ioaddr + EL3_CMD); |
ioaddr | 639 | drivers/net/3c59x.c | int ioaddr = dev->base_addr; |
ioaddr | 647 | drivers/net/3c59x.c | dev->name, inb(ioaddr + TxStatus), inw(ioaddr + EL3_STATUS)); |
ioaddr | 650 | drivers/net/3c59x.c | outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 654 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 657 | drivers/net/3c59x.c | outw(TxEnable, ioaddr + EL3_CMD); |
ioaddr | 679 | drivers/net/3c59x.c | outl(skb->len, ioaddr + TX_FIFO); |
ioaddr | 683 | drivers/net/3c59x.c | outl((int)(skb->data), ioaddr + Wn7_MasterAddr); |
ioaddr | 684 | drivers/net/3c59x.c | outw((skb->len + 3) & ~3, ioaddr + Wn7_MasterLen); |
ioaddr | 686 | drivers/net/3c59x.c | outw(StartDMADown, ioaddr + EL3_CMD); |
ioaddr | 689 | drivers/net/3c59x.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
ioaddr | 691 | drivers/net/3c59x.c | if (inw(ioaddr + TxFree) > 1536) { |
ioaddr | 695 | drivers/net/3c59x.c | outw(SetTxThreshold + 1536, ioaddr + EL3_CMD); |
ioaddr | 699 | drivers/net/3c59x.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
ioaddr | 701 | drivers/net/3c59x.c | if (inw(ioaddr + TxFree) > 1536) { |
ioaddr | 705 | drivers/net/3c59x.c | outw(SetTxThreshold + 1536, ioaddr + EL3_CMD); |
ioaddr | 715 | drivers/net/3c59x.c | while (--i > 0 && (tx_status = inb(ioaddr + TxStatus)) > 0) { |
ioaddr | 724 | drivers/net/3c59x.c | outw(TxReset, ioaddr + EL3_CMD); |
ioaddr | 726 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 729 | drivers/net/3c59x.c | outw(TxEnable, ioaddr + EL3_CMD); |
ioaddr | 731 | drivers/net/3c59x.c | outb(0x00, ioaddr + TxStatus); /* Pop the status stack. */ |
ioaddr | 747 | drivers/net/3c59x.c | int ioaddr, status; |
ioaddr | 760 | drivers/net/3c59x.c | ioaddr = dev->base_addr; |
ioaddr | 761 | drivers/net/3c59x.c | latency = inb(ioaddr + Timer); |
ioaddr | 764 | drivers/net/3c59x.c | status = inw(ioaddr + EL3_STATUS); |
ioaddr | 792 | drivers/net/3c59x.c | outw(AckIntr | TxAvailable, ioaddr + EL3_CMD); |
ioaddr | 798 | drivers/net/3c59x.c | outw(0x1000, ioaddr + Wn7_MasterStatus); /* Ack the event. */ |
ioaddr | 807 | drivers/net/3c59x.c | outw(AckIntr | RxEarly, ioaddr + EL3_CMD); |
ioaddr | 813 | drivers/net/3c59x.c | update_stats(ioaddr, dev); |
ioaddr | 817 | drivers/net/3c59x.c | inw(ioaddr + EL3_STATUS) & StatsFull) { |
ioaddr | 825 | drivers/net/3c59x.c | printk(" %2.2x", inb(ioaddr+reg)); |
ioaddr | 828 | drivers/net/3c59x.c | outw(SetIntrEnb | 0x18, ioaddr + EL3_CMD); |
ioaddr | 834 | drivers/net/3c59x.c | outw(RxReset, ioaddr + EL3_CMD); |
ioaddr | 839 | drivers/net/3c59x.c | ioaddr + EL3_CMD); |
ioaddr | 840 | drivers/net/3c59x.c | outw(RxEnable, ioaddr + EL3_CMD); /* Re-enable the receiver. */ |
ioaddr | 841 | drivers/net/3c59x.c | outw(AckIntr | AdapterFailure, ioaddr + EL3_CMD); |
ioaddr | 850 | drivers/net/3c59x.c | outw(SetStatusEnb | ((~status) & 0xFE), ioaddr + EL3_CMD); |
ioaddr | 851 | drivers/net/3c59x.c | outw(AckIntr | 0xFF, ioaddr + EL3_CMD); |
ioaddr | 855 | drivers/net/3c59x.c | outw(AckIntr | IntReq | IntLatch, ioaddr + EL3_CMD); |
ioaddr | 857 | drivers/net/3c59x.c | } while ((status = inw(ioaddr + EL3_STATUS)) & (IntLatch | RxComplete)); |
ioaddr | 870 | drivers/net/3c59x.c | int ioaddr = dev->base_addr; |
ioaddr | 876 | drivers/net/3c59x.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+RxStatus)); |
ioaddr | 877 | drivers/net/3c59x.c | while ((rx_status = inw(ioaddr + RxStatus)) > 0) { |
ioaddr | 879 | drivers/net/3c59x.c | unsigned char rx_error = inb(ioaddr + RxErrors); |
ioaddr | 901 | drivers/net/3c59x.c | insl(ioaddr + RX_FIFO, skb_put(skb, pkt_len), |
ioaddr | 905 | drivers/net/3c59x.c | outw(RxDiscard, ioaddr + EL3_CMD); /* Pop top Rx packet. */ |
ioaddr | 908 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 917 | drivers/net/3c59x.c | outw(RxDiscard, ioaddr + EL3_CMD); |
ioaddr | 920 | drivers/net/3c59x.c | if ( ! inw(ioaddr + EL3_STATUS) & CmdInProgress) |
ioaddr | 930 | drivers/net/3c59x.c | int ioaddr = dev->base_addr; |
ioaddr | 937 | drivers/net/3c59x.c | dev->name, inw(ioaddr + EL3_STATUS), inb(ioaddr + TxStatus)); |
ioaddr | 940 | drivers/net/3c59x.c | outw(StatsDisable, ioaddr + EL3_CMD); |
ioaddr | 943 | drivers/net/3c59x.c | outw(RxDisable, ioaddr + EL3_CMD); |
ioaddr | 944 | drivers/net/3c59x.c | outw(TxDisable, ioaddr + EL3_CMD); |
ioaddr | 948 | drivers/net/3c59x.c | outw(StopCoax, ioaddr + EL3_CMD); |
ioaddr | 952 | drivers/net/3c59x.c | outw(inw(ioaddr + Wn4_Media) & ~Media_TP, ioaddr + Wn4_Media); |
ioaddr | 963 | drivers/net/3c59x.c | update_stats(ioaddr, dev); |
ioaddr | 991 | drivers/net/3c59x.c | static void update_stats(int ioaddr, struct device *dev) |
ioaddr | 998 | drivers/net/3c59x.c | vp->stats.tx_carrier_errors += inb(ioaddr + 0); |
ioaddr | 999 | drivers/net/3c59x.c | vp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
ioaddr | 1000 | drivers/net/3c59x.c | /* Multiple collisions. */ inb(ioaddr + 2); |
ioaddr | 1001 | drivers/net/3c59x.c | vp->stats.collisions += inb(ioaddr + 3); |
ioaddr | 1002 | drivers/net/3c59x.c | vp->stats.tx_window_errors += inb(ioaddr + 4); |
ioaddr | 1003 | drivers/net/3c59x.c | vp->stats.rx_fifo_errors += inb(ioaddr + 5); |
ioaddr | 1004 | drivers/net/3c59x.c | vp->stats.tx_packets += inb(ioaddr + 6); |
ioaddr | 1005 | drivers/net/3c59x.c | vp->stats.tx_packets += (inb(ioaddr + 9)&0x30) << 4; |
ioaddr | 1006 | drivers/net/3c59x.c | /* Rx packets */ inb(ioaddr + 7); /* Must read to clear */ |
ioaddr | 1007 | drivers/net/3c59x.c | /* Tx deferrals */ inb(ioaddr + 8); |
ioaddr | 1011 | drivers/net/3c59x.c | inw(ioaddr + 10); /* Total Rx and Tx octets. */ |
ioaddr | 1012 | drivers/net/3c59x.c | inw(ioaddr + 12); |
ioaddr | 1015 | drivers/net/3c59x.c | inb(ioaddr + 12); |
ioaddr | 1027 | drivers/net/3c59x.c | short ioaddr = dev->base_addr; |
ioaddr | 1030 | drivers/net/3c59x.c | outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 1037 | drivers/net/3c59x.c | ioaddr + EL3_CMD); |
ioaddr | 1039 | drivers/net/3c59x.c | outw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD); |
ioaddr | 560 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 567 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ioaddr | 568 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ioaddr | 569 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ioaddr | 580 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 584 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x18, ioaddr + EN0_RXCR); |
ioaddr | 590 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x08, ioaddr + EN0_RXCR); |
ioaddr | 593 | drivers/net/8390.c | outb_p(E8390_RXCONFIG, ioaddr + EN0_RXCR); |
ioaddr | 71 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev); |
ioaddr | 93 | drivers/net/ac3200.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 95 | drivers/net/ac3200.c | if (ioaddr > 0x1ff) /* Check a single specified location. */ |
ioaddr | 96 | drivers/net/ac3200.c | return ac_probe1(ioaddr, dev); |
ioaddr | 97 | drivers/net/ac3200.c | else if (ioaddr > 0) /* Don't probe at all. */ |
ioaddr | 104 | drivers/net/ac3200.c | for (ioaddr = 0x1000; ioaddr < 0x9000; ioaddr += 0x1000) { |
ioaddr | 105 | drivers/net/ac3200.c | if (check_region(ioaddr, AC_IO_EXTENT)) |
ioaddr | 107 | drivers/net/ac3200.c | if (ac_probe1(ioaddr, dev) == 0) |
ioaddr | 114 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev) |
ioaddr | 119 | drivers/net/ac3200.c | printk("AC3200 ethercard probe at %#3x:", ioaddr); |
ioaddr | 122 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
ioaddr | 127 | drivers/net/ac3200.c | if (inb(ioaddr + AC_SA_PROM + 0) != AC_ADDR0 |
ioaddr | 128 | drivers/net/ac3200.c | || inb(ioaddr + AC_SA_PROM + 1) != AC_ADDR1 |
ioaddr | 129 | drivers/net/ac3200.c | || inb(ioaddr + AC_SA_PROM + 2) != AC_ADDR2 ) { |
ioaddr | 138 | drivers/net/ac3200.c | if (inl(ioaddr + AC_ID_PORT) != AC_EISA_ID) { |
ioaddr | 140 | drivers/net/ac3200.c | inl(ioaddr + AC_EISA_ID), AC_EISA_ID); |
ioaddr | 152 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
ioaddr | 156 | drivers/net/ac3200.c | " EISA ID %02x %02x %02x %02x.\n", inb(ioaddr + AC_CONFIG), |
ioaddr | 157 | drivers/net/ac3200.c | inb(ioaddr + AC_ID_PORT + 0), inb(ioaddr + AC_ID_PORT + 1), |
ioaddr | 158 | drivers/net/ac3200.c | inb(ioaddr + AC_ID_PORT + 2), inb(ioaddr + AC_ID_PORT + 3)); |
ioaddr | 163 | drivers/net/ac3200.c | dev->irq = config2irq(inb(ioaddr + AC_CONFIG)); |
ioaddr | 179 | drivers/net/ac3200.c | request_region(ioaddr, AC_IO_EXTENT, "ac3200"); |
ioaddr | 181 | drivers/net/ac3200.c | dev->base_addr = ioaddr; |
ioaddr | 190 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
ioaddr | 194 | drivers/net/ac3200.c | dev->if_port = inb(ioaddr + AC_CONFIG) >> 6; |
ioaddr | 195 | drivers/net/ac3200.c | dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); |
ioaddr | 207 | drivers/net/ac3200.c | dev->name, ioaddr, dev->irq, port_name[dev->if_port], |
ioaddr | 228 | drivers/net/ac3200.c | int ioaddr = dev->base_addr; |
ioaddr | 243 | drivers/net/ac3200.c | ushort ioaddr = dev->base_addr; |
ioaddr | 245 | drivers/net/ac3200.c | outb(AC_RESET, ioaddr + AC_RESET_PORT); |
ioaddr | 249 | drivers/net/ac3200.c | outb(AC_ENABLE, ioaddr + AC_RESET_PORT); |
ioaddr | 304 | drivers/net/ac3200.c | outb(0x00, ioaddr + 6); /* Disable interrupts. */ |
ioaddr | 253 | drivers/net/apricot.c | short ioaddr = dev->base_addr; |
ioaddr | 257 | drivers/net/apricot.c | outw(0, ioaddr); |
ioaddr | 258 | drivers/net/apricot.c | outw(0, ioaddr); |
ioaddr | 259 | drivers/net/apricot.c | outb(4, ioaddr+0xf); |
ioaddr | 260 | drivers/net/apricot.c | outw(((((int)&lp->scp) & 0xffff) | 2), ioaddr); |
ioaddr | 261 | drivers/net/apricot.c | outw((((int)&lp->scp)>>16) & 0xffff, ioaddr); |
ioaddr | 275 | drivers/net/apricot.c | (void) inb (ioaddr+0x10); |
ioaddr | 276 | drivers/net/apricot.c | outb(4, ioaddr+0xf); |
ioaddr | 277 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 310 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 442 | drivers/net/apricot.c | i596_reset(struct device *dev, struct i596_private *lp, int ioaddr) |
ioaddr | 460 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 485 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 512 | drivers/net/apricot.c | outw (0, ioaddr+4); |
ioaddr | 528 | drivers/net/apricot.c | i596_reset(dev, lp, ioaddr); |
ioaddr | 572 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 590 | drivers/net/apricot.c | i596_reset(dev,lp, ioaddr); |
ioaddr | 596 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 683 | drivers/net/apricot.c | int ioaddr = 0x300; |
ioaddr | 689 | drivers/net/apricot.c | if (check_region(ioaddr, APRICOT_TOTAL_SIZE)) |
ioaddr | 694 | drivers/net/apricot.c | eth_addr[i] = inb(ioaddr+8+i); |
ioaddr | 710 | drivers/net/apricot.c | request_region(ioaddr, APRICOT_TOTAL_SIZE, "apricot"); |
ioaddr | 712 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
ioaddr | 714 | drivers/net/apricot.c | printk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr); |
ioaddr | 719 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
ioaddr | 750 | drivers/net/apricot.c | short ioaddr; |
ioaddr | 766 | drivers/net/apricot.c | ioaddr = dev->base_addr; |
ioaddr | 900 | drivers/net/apricot.c | (void) inb (ioaddr+0x10); |
ioaddr | 901 | drivers/net/apricot.c | outb (4, ioaddr+0xf); |
ioaddr | 902 | drivers/net/apricot.c | outw (0, ioaddr+4); |
ioaddr | 914 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 926 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 379 | drivers/net/arcnet.c | #define INTMASK (ioaddr+0) /* writable */ |
ioaddr | 380 | drivers/net/arcnet.c | #define STATUS (ioaddr+0) /* readable */ |
ioaddr | 381 | drivers/net/arcnet.c | #define COMMAND (ioaddr+1) /* writable, returns random vals on read (?) */ |
ioaddr | 382 | drivers/net/arcnet.c | #define RESET (ioaddr+8) /* software reset writable */ |
ioaddr | 736 | drivers/net/arcnet.c | int count,status,delayval,ioaddr,numprint,airq,retval=-ENODEV, |
ioaddr | 805 | drivers/net/arcnet.c | ioaddr=*port; |
ioaddr | 964 | drivers/net/arcnet.c | ioaddr=*port; |
ioaddr | 1204 | drivers/net/arcnet.c | short ioaddr=dev->base_addr; |
ioaddr | 1310 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
ioaddr | 1399 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
ioaddr | 1461 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
ioaddr | 1577 | drivers/net/arcnet.c | int ioaddr=dev->base_addr,bad; |
ioaddr | 1687 | drivers/net/arcnet.c | int ioaddr=dev->base_addr,maxsegsize=XMTU-4; |
ioaddr | 1841 | drivers/net/arcnet.c | int ioaddr=dev->base_addr; |
ioaddr | 1890 | drivers/net/arcnet.c | int ioaddr; |
ioaddr | 1904 | drivers/net/arcnet.c | ioaddr=dev->base_addr; |
ioaddr | 1924 | drivers/net/arcnet.c | int ioaddr=dev->base_addr, status, boguscount = 3, didsomething; |
ioaddr | 2167 | drivers/net/arcnet.c | int ioaddr = dev->base_addr; |
ioaddr | 2562 | drivers/net/arcnet.c | short ioaddr = dev->base_addr; |
ioaddr | 2564 | drivers/net/arcnet.c | outw(69, ioaddr); /* Enable promiscuous mode */ |
ioaddr | 2566 | drivers/net/arcnet.c | outw(99, ioaddr); /* Disable promiscuous mode, use normal mode */ |
ioaddr | 2766 | drivers/net/arcnet.c | int ioaddr=dev->base_addr,bad; |
ioaddr | 2937 | drivers/net/arcnet.c | int ioaddr=dev->base_addr,bad,length; |
ioaddr | 3235 | drivers/net/arcnet.c | int ioaddr=thiscard.base_addr; |
ioaddr | 3240 | drivers/net/arcnet.c | if (ioaddr) |
ioaddr | 116 | drivers/net/at1700.c | static int at1700_probe1(struct device *dev, short ioaddr); |
ioaddr | 117 | drivers/net/at1700.c | static int read_eeprom(int ioaddr, int location); |
ioaddr | 151 | drivers/net/at1700.c | int ioaddr = at1700_probe_list[i]; |
ioaddr | 152 | drivers/net/at1700.c | if (check_region(ioaddr, AT1700_IO_EXTENT)) |
ioaddr | 154 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
ioaddr | 170 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
ioaddr | 180 | drivers/net/at1700.c | ioaddr, read_eeprom(ioaddr, 4), read_eeprom(ioaddr, 5), |
ioaddr | 181 | drivers/net/at1700.c | read_eeprom(ioaddr, 6), inw(ioaddr + EEPROM_Ctrl)); |
ioaddr | 183 | drivers/net/at1700.c | if (at1700_probe_list[inb(ioaddr + IOCONFIG) & 0x07] != ioaddr |
ioaddr | 184 | drivers/net/at1700.c | || read_eeprom(ioaddr, 4) != 0x0000 |
ioaddr | 185 | drivers/net/at1700.c | || (read_eeprom(ioaddr, 5) & 0xff00) != 0xF400) |
ioaddr | 189 | drivers/net/at1700.c | outb(0, ioaddr + RESET); |
ioaddr | 191 | drivers/net/at1700.c | irq = irqmap[(read_eeprom(ioaddr, 12)&0x04) |
ioaddr | 192 | drivers/net/at1700.c | | (read_eeprom(ioaddr, 0)>>14)]; |
ioaddr | 197 | drivers/net/at1700.c | "IRQ %d.\n", ioaddr, irq); |
ioaddr | 207 | drivers/net/at1700.c | request_region(ioaddr, AT1700_IO_EXTENT, "at1700"); |
ioaddr | 210 | drivers/net/at1700.c | ioaddr, irq); |
ioaddr | 212 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
ioaddr | 217 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
ioaddr | 230 | drivers/net/at1700.c | ushort setup_value = read_eeprom(ioaddr, 12); |
ioaddr | 237 | drivers/net/at1700.c | outb(0xe0, ioaddr + 7); |
ioaddr | 239 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 242 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 244 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 248 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 251 | drivers/net/at1700.c | outb(0xe8, ioaddr + 7); |
ioaddr | 255 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 278 | drivers/net/at1700.c | static int read_eeprom(int ioaddr, int location) |
ioaddr | 282 | drivers/net/at1700.c | short ee_addr = ioaddr + EEPROM_Ctrl; |
ioaddr | 283 | drivers/net/at1700.c | short ee_daddr = ioaddr + EEPROM_Data; |
ioaddr | 322 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 326 | drivers/net/at1700.c | outb(0xe0, ioaddr + CONFIG_1); |
ioaddr | 330 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 333 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 335 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 339 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 342 | drivers/net/at1700.c | outb(0x5a, ioaddr + CONFIG_0); |
ioaddr | 344 | drivers/net/at1700.c | outb(0xe8, ioaddr + CONFIG_1); |
ioaddr | 351 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 352 | drivers/net/at1700.c | outb(0x81, ioaddr + RX_INTR); |
ioaddr | 367 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 376 | drivers/net/at1700.c | inw(ioaddr + STATUS), inb(ioaddr + TX_STATUS) & 0x80 |
ioaddr | 379 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
ioaddr | 380 | drivers/net/at1700.c | inw(ioaddr + 6), inw(ioaddr + 8), inw(ioaddr + 10), |
ioaddr | 381 | drivers/net/at1700.c | inw(ioaddr + 12), inw(ioaddr + 14)); |
ioaddr | 384 | drivers/net/at1700.c | outw(0xffff, ioaddr + 24); |
ioaddr | 385 | drivers/net/at1700.c | outw(0xffff, ioaddr + TX_STATUS); |
ioaddr | 386 | drivers/net/at1700.c | outw(0xe85a, ioaddr + CONFIG_0); |
ioaddr | 387 | drivers/net/at1700.c | outw(0x8100, ioaddr + TX_INTR); |
ioaddr | 412 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 414 | drivers/net/at1700.c | outw(length, ioaddr + DATAPORT); |
ioaddr | 415 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 422 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 433 | drivers/net/at1700.c | outb(0x82, ioaddr + TX_INTR); |
ioaddr | 447 | drivers/net/at1700.c | int ioaddr, status; |
ioaddr | 455 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
ioaddr | 457 | drivers/net/at1700.c | status = inw(ioaddr + TX_STATUS); |
ioaddr | 458 | drivers/net/at1700.c | outw(status, ioaddr + TX_STATUS); |
ioaddr | 463 | drivers/net/at1700.c | || (inb(ioaddr + RX_MODE) & 0x40) == 0) { /* Got a packet(s). */ |
ioaddr | 470 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 479 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 495 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 498 | drivers/net/at1700.c | while ((inb(ioaddr + RX_MODE) & 0x40) == 0) { |
ioaddr | 499 | drivers/net/at1700.c | ushort status = inw(ioaddr + DATAPORT); |
ioaddr | 500 | drivers/net/at1700.c | ushort pkt_len = inw(ioaddr + DATAPORT); |
ioaddr | 504 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
ioaddr | 507 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 526 | drivers/net/at1700.c | inw(ioaddr + DATAPORT); inw(ioaddr + DATAPORT); |
ioaddr | 527 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 536 | drivers/net/at1700.c | inw(ioaddr + DATAPORT); inw(ioaddr + DATAPORT); |
ioaddr | 537 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 544 | drivers/net/at1700.c | insw(ioaddr + DATAPORT, skb_put(skb,pkt_len), (pkt_len + 1) >> 1); |
ioaddr | 559 | drivers/net/at1700.c | if ((inb(ioaddr + RX_MODE) & 0x40) == 0x40) |
ioaddr | 561 | drivers/net/at1700.c | inw(ioaddr + DATAPORT); /* dummy status read */ |
ioaddr | 562 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 567 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
ioaddr | 575 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 581 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 586 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 616 | drivers/net/at1700.c | short ioaddr = dev->base_addr; |
ioaddr | 626 | drivers/net/at1700.c | outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ |
ioaddr | 629 | drivers/net/at1700.c | outb(2, ioaddr + RX_MODE); /* Disable promiscuous, use normal mode */ |
ioaddr | 130 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr); |
ioaddr | 132 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
ioaddr | 135 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int mode); |
ioaddr | 136 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length); |
ioaddr | 140 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *buffer, int data_mode); |
ioaddr | 164 | drivers/net/atp.c | int ioaddr = *port; |
ioaddr | 165 | drivers/net/atp.c | outb(0x57, ioaddr + PAR_DATA); |
ioaddr | 166 | drivers/net/atp.c | if (inb(ioaddr + PAR_DATA) != 0x57) |
ioaddr | 168 | drivers/net/atp.c | if (atp_probe1(dev, ioaddr) == 0) |
ioaddr | 175 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr) |
ioaddr | 179 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 182 | drivers/net/atp.c | saved_ctrl_reg = inb(ioaddr + PAR_CONTROL); |
ioaddr | 184 | drivers/net/atp.c | outb(0x04, ioaddr + PAR_CONTROL); |
ioaddr | 185 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 187 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR1); |
ioaddr | 191 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 194 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR2_h); |
ioaddr | 196 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 200 | drivers/net/atp.c | write_reg_byte(ioaddr, CMR2, 0x01); /* No accept mode, IRQ out. */ |
ioaddr | 201 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); /* Enable Tx and Rx. */ |
ioaddr | 204 | drivers/net/atp.c | if (ioaddr == 0x378) |
ioaddr | 208 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_TxRxOFF); /* Disable Tx and Rx units. */ |
ioaddr | 209 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 211 | drivers/net/atp.c | dev->base_addr = ioaddr; |
ioaddr | 222 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 263 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 267 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_EEPROM); /* Point to the EEPROM control registers. */ |
ioaddr | 271 | drivers/net/atp.c | if (eeprom_op(ioaddr, EE_READ(0)) == 0xffff) |
ioaddr | 276 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
ioaddr | 278 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 293 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
ioaddr | 300 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_LOW); |
ioaddr | 302 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_HIGH); |
ioaddr | 304 | drivers/net/atp.c | if (read_nibble(ioaddr, PROM_DATA) & EE_DATA_READ) |
ioaddr | 308 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, EE_CLK_LOW & ~EE_CS); |
ioaddr | 345 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 348 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 351 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 353 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 357 | drivers/net/atp.c | (read_nibble(ioaddr, CMR2_h) >> 3) & 0x0f); |
ioaddr | 360 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 361 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); |
ioaddr | 364 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 367 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 368 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 378 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length) |
ioaddr | 380 | drivers/net/atp.c | write_reg_byte(ioaddr, TxCNT0, length & 0xff); |
ioaddr | 381 | drivers/net/atp.c | write_reg(ioaddr, TxCNT1, length >> 8); |
ioaddr | 382 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_Xmit); |
ioaddr | 385 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int data_mode) |
ioaddr | 388 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 391 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 393 | drivers/net/atp.c | write_byte_mode0(ioaddr, *packet++); |
ioaddr | 399 | drivers/net/atp.c | outb(Ctrl_LNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 400 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 402 | drivers/net/atp.c | outb((outbyte & 0x0f)|0x40, ioaddr + PAR_DATA); |
ioaddr | 403 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 405 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 406 | drivers/net/atp.c | outb(Ctrl_HNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 408 | drivers/net/atp.c | write_byte_mode1(ioaddr, *packet++); |
ioaddr | 411 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 412 | drivers/net/atp.c | outb(Ctrl_HNibWrite | Ctrl_SelData | Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 419 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 428 | drivers/net/atp.c | inb(ioaddr + PAR_CONTROL) & 0x10 ? "network cable problem" |
ioaddr | 458 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 459 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, 0); |
ioaddr | 462 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
ioaddr | 466 | drivers/net/atp.c | trigger_send(ioaddr, length); |
ioaddr | 475 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 476 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 491 | drivers/net/atp.c | int ioaddr, status, boguscount = 20; |
ioaddr | 500 | drivers/net/atp.c | ioaddr = dev->base_addr; |
ioaddr | 504 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 507 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 508 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 512 | drivers/net/atp.c | status = read_nibble(ioaddr, ISR); |
ioaddr | 516 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_RxOK); /* Clear the Rx interrupt. */ |
ioaddr | 518 | drivers/net/atp.c | int read_status = read_nibble(ioaddr, CMR1); |
ioaddr | 526 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 529 | drivers/net/atp.c | write_reg_high(ioaddr, ISR, ISRh_RxErr); |
ioaddr | 530 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 542 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_TxErr + ISR_TxOK); |
ioaddr | 552 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_ReXmit + CMR1_Xmit); |
ioaddr | 558 | drivers/net/atp.c | trigger_send(ioaddr, lp->saved_tx_size); |
ioaddr | 573 | drivers/net/atp.c | (read_nibble(ioaddr, CMR1) >> 3) & 15); |
ioaddr | 587 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 596 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 598 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 600 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 601 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); /* Hmmm, really needed? */ |
ioaddr | 616 | drivers/net/atp.c | int ioaddr = atp_timed_dev->base_addr; |
ioaddr | 622 | drivers/net/atp.c | if (read_cmd_byte(ioaddr, PAR0 + i) != atp_timed_dev->dev_addr[i]) |
ioaddr | 625 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
ioaddr | 636 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, atp_timed_dev->dev_addr[i]); |
ioaddr | 649 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 657 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 658 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
ioaddr | 683 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb_put(skb,pkt_len), dev->if_port); |
ioaddr | 699 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_NextPkt); |
ioaddr | 703 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
ioaddr | 707 | drivers/net/atp.c | outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 709 | drivers/net/atp.c | ioaddr + PAR_DATA); |
ioaddr | 711 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
ioaddr | 713 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
ioaddr | 715 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
ioaddr | 717 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
ioaddr | 719 | drivers/net/atp.c | outb(EOC+HNib+MAR, ioaddr + PAR_DATA); |
ioaddr | 720 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 728 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 735 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 738 | drivers/net/atp.c | outb(0x00, ioaddr + PAR_CONTROL); |
ioaddr | 743 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 764 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 777 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 107 | drivers/net/atp.h | extern inline unsigned char read_byte_mode0(short ioaddr) |
ioaddr | 111 | drivers/net/atp.h | outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 112 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); |
ioaddr | 113 | drivers/net/atp.h | low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; |
ioaddr | 114 | drivers/net/atp.h | outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 115 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ |
ioaddr | 116 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ |
ioaddr | 117 | drivers/net/atp.h | return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); |
ioaddr | 121 | drivers/net/atp.h | extern inline unsigned char read_byte_mode2(short ioaddr) |
ioaddr | 125 | drivers/net/atp.h | outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 126 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); |
ioaddr | 127 | drivers/net/atp.h | low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; |
ioaddr | 128 | drivers/net/atp.h | outb(Ctrl_HNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 129 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); /* Settling time delay -- needed! */ |
ioaddr | 130 | drivers/net/atp.h | return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); |
ioaddr | 134 | drivers/net/atp.h | extern inline unsigned char read_byte_mode4(short ioaddr) |
ioaddr | 138 | drivers/net/atp.h | outb(RdAddr | MAR, ioaddr + PAR_DATA); |
ioaddr | 139 | drivers/net/atp.h | low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; |
ioaddr | 140 | drivers/net/atp.h | outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); |
ioaddr | 141 | drivers/net/atp.h | return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); |
ioaddr | 145 | drivers/net/atp.h | extern inline unsigned char read_byte_mode6(short ioaddr) |
ioaddr | 149 | drivers/net/atp.h | outb(RdAddr | MAR, ioaddr + PAR_DATA); |
ioaddr | 150 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); |
ioaddr | 151 | drivers/net/atp.h | low_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f; |
ioaddr | 152 | drivers/net/atp.h | outb(RdAddr | HNib | MAR, ioaddr + PAR_DATA); |
ioaddr | 153 | drivers/net/atp.h | inbyte(ioaddr + PAR_STATUS); |
ioaddr | 154 | drivers/net/atp.h | return low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0); |
ioaddr | 222 | drivers/net/atp.h | extern inline void write_byte_mode0(short ioaddr, unsigned char value) |
ioaddr | 224 | drivers/net/atp.h | outb(value & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 225 | drivers/net/atp.h | outb((value>>4) | 0x10, ioaddr + PAR_DATA); |
ioaddr | 228 | drivers/net/atp.h | extern inline void write_byte_mode1(short ioaddr, unsigned char value) |
ioaddr | 230 | drivers/net/atp.h | outb(value & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 231 | drivers/net/atp.h | outb(Ctrl_IRQEN | Ctrl_LNibWrite, ioaddr + PAR_CONTROL); |
ioaddr | 232 | drivers/net/atp.h | outb((value>>4) | 0x10, ioaddr + PAR_DATA); |
ioaddr | 233 | drivers/net/atp.h | outb(Ctrl_IRQEN | Ctrl_HNibWrite, ioaddr + PAR_CONTROL); |
ioaddr | 237 | drivers/net/atp.h | extern inline void write_word_mode0(short ioaddr, unsigned short value) |
ioaddr | 239 | drivers/net/atp.h | outb(value & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 241 | drivers/net/atp.h | outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); |
ioaddr | 243 | drivers/net/atp.h | outb(value & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 245 | drivers/net/atp.h | outb((value & 0x0f) | 0x10, ioaddr + PAR_DATA); |
ioaddr | 591 | drivers/net/de4x5.c | static int mii_rd(u_char phyreg, u_char phyaddr, u_long ioaddr); |
ioaddr | 592 | drivers/net/de4x5.c | static void mii_wr(int data, u_char phyreg, u_char phyaddr, u_long ioaddr); |
ioaddr | 593 | drivers/net/de4x5.c | static int mii_rdata(u_long ioaddr); |
ioaddr | 594 | drivers/net/de4x5.c | static void mii_wdata(int data, int len, u_long ioaddr); |
ioaddr | 595 | drivers/net/de4x5.c | static void mii_ta(u_long rw, u_long ioaddr); |
ioaddr | 597 | drivers/net/de4x5.c | static void mii_address(u_char addr, u_long ioaddr); |
ioaddr | 598 | drivers/net/de4x5.c | static void sendto_mii(u32 command, int data, u_long ioaddr); |
ioaddr | 599 | drivers/net/de4x5.c | static int getfrom_mii(u32 command, u_long ioaddr); |
ioaddr | 600 | drivers/net/de4x5.c | static int mii_get_oui(u_char phyaddr, u_long ioaddr); |
ioaddr | 1504 | drivers/net/de4x5.c | static void eisa_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1513 | drivers/net/de4x5.c | if (!ioaddr && autoprobed) return; /* Been here before ! */ |
ioaddr | 1517 | drivers/net/de4x5.c | if (ioaddr == 0) { /* Autoprobing */ |
ioaddr | 1522 | drivers/net/de4x5.c | iobase = ioaddr; |
ioaddr | 1523 | drivers/net/de4x5.c | i = (ioaddr >> 12); |
ioaddr | 1571 | drivers/net/de4x5.c | static void pci_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1580 | drivers/net/de4x5.c | if (!ioaddr && autoprobed) return; /* Been here before ! */ |
ioaddr | 1586 | drivers/net/de4x5.c | if (ioaddr < 0x1000) { |
ioaddr | 1587 | drivers/net/de4x5.c | pbus = (u_short)(ioaddr >> 8); |
ioaddr | 1588 | drivers/net/de4x5.c | dnum = (u_short)(ioaddr & 0xff); |
ioaddr | 3036 | drivers/net/de4x5.c | static int mii_rd(u_char phyreg, u_char phyaddr, u_long ioaddr) |
ioaddr | 3038 | drivers/net/de4x5.c | mii_wdata(MII_PREAMBLE, 2, ioaddr); /* Start of 34 bit preamble... */ |
ioaddr | 3039 | drivers/net/de4x5.c | mii_wdata(MII_PREAMBLE, 32, ioaddr); /* ...continued */ |
ioaddr | 3040 | drivers/net/de4x5.c | mii_wdata(MII_STRD, 4, ioaddr); /* SFD and Read operation */ |
ioaddr | 3041 | drivers/net/de4x5.c | mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ |
ioaddr | 3042 | drivers/net/de4x5.c | mii_address(phyreg, ioaddr); /* PHY Register to read */ |
ioaddr | 3043 | drivers/net/de4x5.c | mii_ta(MII_STRD, ioaddr); /* Turn around time - 2 MDC */ |
ioaddr | 3045 | drivers/net/de4x5.c | return mii_rdata(ioaddr); /* Read data */ |
ioaddr | 3048 | drivers/net/de4x5.c | static void mii_wr(int data, u_char phyreg, u_char phyaddr, u_long ioaddr) |
ioaddr | 3050 | drivers/net/de4x5.c | mii_wdata(MII_PREAMBLE, 2, ioaddr); /* Start of 34 bit preamble... */ |
ioaddr | 3051 | drivers/net/de4x5.c | mii_wdata(MII_PREAMBLE, 32, ioaddr); /* ...continued */ |
ioaddr | 3052 | drivers/net/de4x5.c | mii_wdata(MII_STWR, 4, ioaddr); /* SFD and Write operation */ |
ioaddr | 3053 | drivers/net/de4x5.c | mii_address(phyaddr, ioaddr); /* PHY address to be accessed */ |
ioaddr | 3054 | drivers/net/de4x5.c | mii_address(phyreg, ioaddr); /* PHY Register to write */ |
ioaddr | 3055 | drivers/net/de4x5.c | mii_ta(MII_STWR, ioaddr); /* Turn around time - 2 MDC */ |
ioaddr | 3057 | drivers/net/de4x5.c | mii_wdata(data, 16, ioaddr); /* Write data */ |
ioaddr | 3062 | drivers/net/de4x5.c | static int mii_rdata(u_long ioaddr) |
ioaddr | 3069 | drivers/net/de4x5.c | tmp |= getfrom_mii(MII_MRD | MII_RD, ioaddr); |
ioaddr | 3075 | drivers/net/de4x5.c | static void mii_wdata(int data, int len, u_long ioaddr) |
ioaddr | 3080 | drivers/net/de4x5.c | sendto_mii(MII_MWR | MII_WR, data, ioaddr); |
ioaddr | 3087 | drivers/net/de4x5.c | static void mii_address(u_char addr, u_long ioaddr) |
ioaddr | 3093 | drivers/net/de4x5.c | sendto_mii(MII_MWR | MII_WR, addr, ioaddr); |
ioaddr | 3100 | drivers/net/de4x5.c | static void mii_ta(u_long rw, u_long ioaddr) |
ioaddr | 3103 | drivers/net/de4x5.c | sendto_mii(MII_MWR | MII_WR, 1, ioaddr); |
ioaddr | 3104 | drivers/net/de4x5.c | getfrom_mii(MII_MRD | MII_RD, ioaddr); |
ioaddr | 3106 | drivers/net/de4x5.c | getfrom_mii(MII_MRD | MII_RD, ioaddr); /* Tri-state MDIO */ |
ioaddr | 3125 | drivers/net/de4x5.c | static void sendto_mii(u32 command, int data, u_long ioaddr) |
ioaddr | 3130 | drivers/net/de4x5.c | outl(command | j, ioaddr); |
ioaddr | 3132 | drivers/net/de4x5.c | outl(command | MII_MDC | j, ioaddr); |
ioaddr | 3138 | drivers/net/de4x5.c | static int getfrom_mii(u32 command, u_long ioaddr) |
ioaddr | 3140 | drivers/net/de4x5.c | outl(command, ioaddr); |
ioaddr | 3142 | drivers/net/de4x5.c | outl(command | MII_MDC, ioaddr); |
ioaddr | 3145 | drivers/net/de4x5.c | return ((inl(ioaddr) >> 19) & 1); |
ioaddr | 3152 | drivers/net/de4x5.c | static int mii_get_oui(u_char phyaddr, u_long ioaddr) |
ioaddr | 3163 | drivers/net/de4x5.c | r2 = mii_rd(MII_ID0, phyaddr, ioaddr); |
ioaddr | 3164 | drivers/net/de4x5.c | r3 = mii_rd(MII_ID1, phyaddr, ioaddr); |
ioaddr | 393 | drivers/net/depca.c | static int depca_hw_init(struct device *dev, u_long ioaddr); |
ioaddr | 401 | drivers/net/depca.c | static int DevicePresent(u_long ioaddr); |
ioaddr | 470 | drivers/net/depca.c | depca_hw_init(struct device *dev, u_long ioaddr) |
ioaddr | 500 | drivers/net/depca.c | dev->base_addr = ioaddr; |
ioaddr | 502 | drivers/net/depca.c | if ((ioaddr&0x0fff)==DEPCA_EISA_IO_PORTS) {/* EISA slot address */ |
ioaddr | 504 | drivers/net/depca.c | dev->name, name, ioaddr, (int)((ioaddr>>12)&0x0f)); |
ioaddr | 506 | drivers/net/depca.c | printk("%s: %s at 0x%04lx", dev->name, name, ioaddr); |
ioaddr | 549 | drivers/net/depca.c | request_region(ioaddr, DEPCA_TOTAL_SIZE, lp->adapter_name); |
ioaddr | 641 | drivers/net/depca.c | if (status) release_region(ioaddr, DEPCA_TOTAL_SIZE); |
ioaddr | 687 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 782 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 844 | drivers/net/depca.c | u_long ioaddr; |
ioaddr | 850 | drivers/net/depca.c | ioaddr = dev->base_addr; |
ioaddr | 995 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1032 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1073 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1090 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1135 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1212 | drivers/net/depca.c | static void isa_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1217 | drivers/net/depca.c | if (!ioaddr && autoprobed) return ; /* Been here before ! */ |
ioaddr | 1218 | drivers/net/depca.c | if (ioaddr > 0x400) return; /* EISA Address */ |
ioaddr | 1221 | drivers/net/depca.c | if (ioaddr == 0) { /* Autoprobing */ |
ioaddr | 1224 | drivers/net/depca.c | ports[i] = ioaddr; |
ioaddr | 1250 | drivers/net/depca.c | static void eisa_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1256 | drivers/net/depca.c | if (!ioaddr && autoprobed) return ; /* Been here before ! */ |
ioaddr | 1257 | drivers/net/depca.c | if ((ioaddr < 0x400) && (ioaddr > 0)) return; /* ISA Address */ |
ioaddr | 1259 | drivers/net/depca.c | if (ioaddr == 0) { /* Autoprobing */ |
ioaddr | 1264 | drivers/net/depca.c | iobase = ioaddr; |
ioaddr | 1265 | drivers/net/depca.c | i = (ioaddr >> 12); |
ioaddr | 1449 | drivers/net/depca.c | static int DevicePresent(u_long ioaddr) |
ioaddr | 1503 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1623 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 1704 | drivers/net/depca.c | u_long ioaddr = dev->base_addr; |
ioaddr | 13 | drivers/net/depca.h | #define DEPCA_NICSR ioaddr+0x00 /* Network interface CSR */ |
ioaddr | 14 | drivers/net/depca.h | #define DEPCA_RBI ioaddr+0x02 /* RAM buffer index (2k buffer mode) */ |
ioaddr | 15 | drivers/net/depca.h | #define DEPCA_DATA ioaddr+0x04 /* LANCE registers' data port */ |
ioaddr | 16 | drivers/net/depca.h | #define DEPCA_ADDR ioaddr+0x06 /* LANCE registers' address port */ |
ioaddr | 17 | drivers/net/depca.h | #define DEPCA_HBASE ioaddr+0x08 /* EISA high memory base address reg. */ |
ioaddr | 18 | drivers/net/depca.h | #define DEPCA_PROM ioaddr+0x0c /* Ethernet address ROM data port */ |
ioaddr | 19 | drivers/net/depca.h | #define DEPCA_CNFG ioaddr+0x0c /* EISA Configuration port */ |
ioaddr | 20 | drivers/net/depca.h | #define DEPCA_RBSA ioaddr+0x0e /* RAM buffer starting address (2k buff.) */ |
ioaddr | 97 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr); |
ioaddr | 138 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr) |
ioaddr | 145 | drivers/net/e2100.c | if (inb(ioaddr + E21_SAPROM + 0) != 0x00 |
ioaddr | 146 | drivers/net/e2100.c | || inb(ioaddr + E21_SAPROM + 1) != 0x00 |
ioaddr | 147 | drivers/net/e2100.c | || inb(ioaddr + E21_SAPROM + 2) != 0x1d) |
ioaddr | 151 | drivers/net/e2100.c | outb(E8390_NODMA + E8390_STOP, ioaddr); |
ioaddr | 153 | drivers/net/e2100.c | status = inb(ioaddr); |
ioaddr | 159 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
ioaddr | 161 | drivers/net/e2100.c | inb(ioaddr + E21_MEDIA); /* Point to media selection. */ |
ioaddr | 162 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); /* and disable the secondary interface. */ |
ioaddr | 173 | drivers/net/e2100.c | printk("%s: E21** at %#3x,", dev->name, ioaddr); |
ioaddr | 198 | drivers/net/e2100.c | request_region(ioaddr, E21_IO_EXTENT, "e2100"); |
ioaddr | 201 | drivers/net/e2100.c | dev->base_addr = ioaddr; |
ioaddr | 216 | drivers/net/e2100.c | inb(ioaddr + E21_MEDIA); /* Turn automatic media detection on. */ |
ioaddr | 218 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
ioaddr | 254 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 262 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_LOW); |
ioaddr | 263 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq & 7)); |
ioaddr | 264 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_HIGH); /* High IRQ bit, and if_port. */ |
ioaddr | 265 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0) |
ioaddr | 267 | drivers/net/e2100.c | inb(ioaddr + E21_MEM_BASE); |
ioaddr | 268 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); |
ioaddr | 278 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 280 | drivers/net/e2100.c | outb(0x01, ioaddr); |
ioaddr | 297 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 300 | drivers/net/e2100.c | mem_on(ioaddr, shared_mem, ring_page); |
ioaddr | 310 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 320 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 323 | drivers/net/e2100.c | mem_on(ioaddr, shared_mem, (ring_offset>>8)); |
ioaddr | 328 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 335 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 341 | drivers/net/e2100.c | mem_on(ioaddr, shared_mem, start_page); |
ioaddr | 344 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 350 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 359 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_LOW); |
ioaddr | 360 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); |
ioaddr | 361 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_HIGH); /* High IRQ bit, and if_port. */ |
ioaddr | 362 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); |
ioaddr | 370 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 135 | drivers/net/eepro.c | static int eepro_probe1(struct device *dev, short ioaddr); |
ioaddr | 145 | drivers/net/eepro.c | static int read_eeprom(int ioaddr, int location); |
ioaddr | 287 | drivers/net/eepro.c | int ioaddr = eepro_portlist[i]; |
ioaddr | 288 | drivers/net/eepro.c | if (check_region(ioaddr, EEPRO_IO_EXTENT)) |
ioaddr | 290 | drivers/net/eepro.c | if (eepro_probe1(dev, ioaddr) == 0) |
ioaddr | 302 | drivers/net/eepro.c | int eepro_probe1(struct device *dev, short ioaddr) |
ioaddr | 314 | drivers/net/eepro.c | if (((id=inb(ioaddr + ID_REG)) & ID_REG_MASK) == ID_REG_SIG) { |
ioaddr | 321 | drivers/net/eepro.c | if (((id=inb(ioaddr+ID_REG)) & R_ROBIN_BITS) == |
ioaddr | 329 | drivers/net/eepro.c | station_addr[0] = read_eeprom(ioaddr, 2); |
ioaddr | 330 | drivers/net/eepro.c | station_addr[1] = read_eeprom(ioaddr, 3); |
ioaddr | 331 | drivers/net/eepro.c | station_addr[2] = read_eeprom(ioaddr, 4); |
ioaddr | 338 | drivers/net/eepro.c | dev->name, ioaddr); |
ioaddr | 343 | drivers/net/eepro.c | dev->name, ioaddr); |
ioaddr | 347 | drivers/net/eepro.c | dev->base_addr = ioaddr; |
ioaddr | 354 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); /* be CAREFUL, BANK 2 now */ |
ioaddr | 355 | drivers/net/eepro.c | id = inb(ioaddr + REG3); |
ioaddr | 361 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 1); |
ioaddr | 390 | drivers/net/eepro.c | i = read_eeprom(ioaddr, 5); |
ioaddr | 400 | drivers/net/eepro.c | request_region(ioaddr, EEPRO_IO_EXTENT, "eepro"); |
ioaddr | 419 | drivers/net/eepro.c | outb(RESET_CMD, ioaddr); /* RESET the 82595 */ |
ioaddr | 442 | drivers/net/eepro.c | int *irqp = irqlist, temp_reg, ioaddr = dev->base_addr; |
ioaddr | 444 | drivers/net/eepro.c | outb(BANK1_SELECT, ioaddr); /* be CAREFUL, BANK 1 now */ |
ioaddr | 447 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG1); |
ioaddr | 448 | drivers/net/eepro.c | outb(temp_reg | INT_ENABLE, ioaddr + REG1); |
ioaddr | 450 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* be CAREFUL, BANK 0 now */ |
ioaddr | 453 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + STATUS_REG); |
ioaddr | 455 | drivers/net/eepro.c | outb(ALL_MASK & ~(EXEC_MASK), ioaddr + INT_MASK_REG); |
ioaddr | 458 | drivers/net/eepro.c | outb(BANK1_SELECT, ioaddr); /* be CAREFUL, BANK 1 now */ |
ioaddr | 460 | drivers/net/eepro.c | temp_reg = inb(ioaddr + INT_NO_REG); |
ioaddr | 461 | drivers/net/eepro.c | outb((temp_reg & 0xf8) | irqrmap[*irqp], ioaddr + INT_NO_REG); |
ioaddr | 463 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Switch back to Bank 0 */ |
ioaddr | 469 | drivers/net/eepro.c | outb(DIAGNOSE_CMD, ioaddr); /* RESET the 82595 */ |
ioaddr | 476 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + STATUS_REG); |
ioaddr | 480 | drivers/net/eepro.c | outb(BANK1_SELECT, ioaddr); /* Switch back to Bank 1 */ |
ioaddr | 483 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG1); |
ioaddr | 484 | drivers/net/eepro.c | outb(temp_reg & 0x7f, ioaddr + REG1); |
ioaddr | 486 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Switch back to Bank 0 */ |
ioaddr | 489 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + INT_MASK_REG); |
ioaddr | 492 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + STATUS_REG); |
ioaddr | 501 | drivers/net/eepro.c | int i, ioaddr = dev->base_addr; |
ioaddr | 525 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); /* be CAREFUL, BANK 2 now */ |
ioaddr | 526 | drivers/net/eepro.c | temp_reg = inb(ioaddr + EEPROM_REG); |
ioaddr | 528 | drivers/net/eepro.c | outb(temp_reg & 0xef, ioaddr + EEPROM_REG); |
ioaddr | 530 | drivers/net/eepro.c | outb(dev->dev_addr[i] , ioaddr + I_ADD_REG0 + i); |
ioaddr | 532 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG1); /* Setup Transmit Chaining */ |
ioaddr | 534 | drivers/net/eepro.c | | RCV_Discard_BadFrame, ioaddr + REG1); |
ioaddr | 536 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG2); /* Match broadcast */ |
ioaddr | 537 | drivers/net/eepro.c | outb(temp_reg | 0x14, ioaddr + REG2); |
ioaddr | 539 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG3); |
ioaddr | 540 | drivers/net/eepro.c | outb(temp_reg & 0x3f, ioaddr + REG3); /* clear test mode */ |
ioaddr | 543 | drivers/net/eepro.c | outb(BANK1_SELECT, ioaddr); /* be CAREFUL, BANK 1 now */ |
ioaddr | 545 | drivers/net/eepro.c | temp_reg = inb(ioaddr + INT_NO_REG); |
ioaddr | 546 | drivers/net/eepro.c | outb((temp_reg & 0xf8) | irqrmap[dev->irq], ioaddr + INT_NO_REG); |
ioaddr | 549 | drivers/net/eepro.c | outb(RCV_LOWER_LIMIT, ioaddr + RCV_LOWER_LIMIT_REG); |
ioaddr | 550 | drivers/net/eepro.c | outb(RCV_UPPER_LIMIT, ioaddr + RCV_UPPER_LIMIT_REG); |
ioaddr | 551 | drivers/net/eepro.c | outb(XMT_LOWER_LIMIT, ioaddr + XMT_LOWER_LIMIT_REG); |
ioaddr | 552 | drivers/net/eepro.c | outb(XMT_UPPER_LIMIT, ioaddr + XMT_UPPER_LIMIT_REG); |
ioaddr | 555 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG1); |
ioaddr | 556 | drivers/net/eepro.c | outb(temp_reg | INT_ENABLE, ioaddr + REG1); |
ioaddr | 558 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Switch back to Bank 0 */ |
ioaddr | 561 | drivers/net/eepro.c | outb(ALL_MASK & ~(RX_MASK | TX_MASK), ioaddr + INT_MASK_REG); |
ioaddr | 563 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + STATUS_REG); |
ioaddr | 566 | drivers/net/eepro.c | outw(RCV_LOWER_LIMIT << 8, ioaddr + RCV_BAR); |
ioaddr | 568 | drivers/net/eepro.c | outw((RCV_UPPER_LIMIT << 8) | 0xfe, ioaddr + RCV_STOP); |
ioaddr | 571 | drivers/net/eepro.c | outw(XMT_LOWER_LIMIT << 8, ioaddr + XMT_BAR); |
ioaddr | 573 | drivers/net/eepro.c | outb(SEL_RESET_CMD, ioaddr); |
ioaddr | 588 | drivers/net/eepro.c | outb(RCV_ENABLE_CMD, ioaddr); |
ioaddr | 598 | drivers/net/eepro.c | int ioaddr = dev->base_addr; |
ioaddr | 614 | drivers/net/eepro.c | outb(SEL_RESET_CMD, ioaddr); |
ioaddr | 626 | drivers/net/eepro.c | outb(RCV_ENABLE_CMD, ioaddr); |
ioaddr | 667 | drivers/net/eepro.c | int ioaddr, status, boguscount = 0; |
ioaddr | 678 | drivers/net/eepro.c | ioaddr = dev->base_addr; |
ioaddr | 681 | drivers/net/eepro.c | status = inb(ioaddr + STATUS_REG); |
ioaddr | 688 | drivers/net/eepro.c | outb(RX_INT, ioaddr + STATUS_REG); |
ioaddr | 698 | drivers/net/eepro.c | outb(TX_INT, ioaddr + STATUS_REG); |
ioaddr | 718 | drivers/net/eepro.c | int ioaddr = dev->base_addr; |
ioaddr | 724 | drivers/net/eepro.c | outb(BANK1_SELECT, ioaddr); /* Switch back to Bank 1 */ |
ioaddr | 727 | drivers/net/eepro.c | temp_reg = inb(ioaddr + REG1); |
ioaddr | 728 | drivers/net/eepro.c | outb(temp_reg & 0x7f, ioaddr + REG1); |
ioaddr | 730 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Switch back to Bank 0 */ |
ioaddr | 733 | drivers/net/eepro.c | outb(STOP_RCV_CMD, ioaddr); |
ioaddr | 738 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + INT_MASK_REG); |
ioaddr | 741 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + STATUS_REG); |
ioaddr | 744 | drivers/net/eepro.c | outb(RESET_CMD, ioaddr); |
ioaddr | 777 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
ioaddr | 791 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); /* be CAREFUL, BANK 2 now */ |
ioaddr | 792 | drivers/net/eepro.c | mode = inb(ioaddr + REG2); |
ioaddr | 793 | drivers/net/eepro.c | outb(mode | PRMSC_Mode, ioaddr + REG2); |
ioaddr | 794 | drivers/net/eepro.c | mode = inb(ioaddr + REG3); |
ioaddr | 795 | drivers/net/eepro.c | outb(mode, ioaddr + REG3); /* writing reg. 3 to complete the update */ |
ioaddr | 796 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Return to BANK 0 now */ |
ioaddr | 801 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); /* be CAREFUL, BANK 2 now */ |
ioaddr | 802 | drivers/net/eepro.c | mode = inb(ioaddr + REG2); |
ioaddr | 803 | drivers/net/eepro.c | outb(mode & 0xd6, ioaddr + REG2); /* Turn off Multi-IA and PRMSC_Mode bits */ |
ioaddr | 804 | drivers/net/eepro.c | mode = inb(ioaddr + REG3); |
ioaddr | 805 | drivers/net/eepro.c | outb(mode, ioaddr + REG3); /* writing reg. 3 to complete the update */ |
ioaddr | 806 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Return to BANK 0 now */ |
ioaddr | 816 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + INT_MASK_REG); |
ioaddr | 818 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); /* be CAREFUL, BANK 2 now */ |
ioaddr | 819 | drivers/net/eepro.c | mode = inb(ioaddr + REG2); |
ioaddr | 820 | drivers/net/eepro.c | outb(mode | Multi_IA, ioaddr + REG2); |
ioaddr | 821 | drivers/net/eepro.c | mode = inb(ioaddr + REG3); |
ioaddr | 822 | drivers/net/eepro.c | outb(mode, ioaddr + REG3); /* writing reg. 3 to complete the update */ |
ioaddr | 823 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); /* Return to BANK 0 now */ |
ioaddr | 824 | drivers/net/eepro.c | outw(lp->tx_end, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 825 | drivers/net/eepro.c | outw(MC_SETUP, ioaddr + IO_PORT); |
ioaddr | 826 | drivers/net/eepro.c | outw(0, ioaddr + IO_PORT); |
ioaddr | 827 | drivers/net/eepro.c | outw(0, ioaddr + IO_PORT); |
ioaddr | 828 | drivers/net/eepro.c | outw(6*(dev->mc_count + 1), ioaddr + IO_PORT); |
ioaddr | 833 | drivers/net/eepro.c | outw(*eaddrs++, ioaddr + IO_PORT); |
ioaddr | 834 | drivers/net/eepro.c | outw(*eaddrs++, ioaddr + IO_PORT); |
ioaddr | 835 | drivers/net/eepro.c | outw(*eaddrs++, ioaddr + IO_PORT); |
ioaddr | 838 | drivers/net/eepro.c | outw(eaddrs[0], ioaddr + IO_PORT); |
ioaddr | 839 | drivers/net/eepro.c | outw(eaddrs[1], ioaddr + IO_PORT); |
ioaddr | 840 | drivers/net/eepro.c | outw(eaddrs[2], ioaddr + IO_PORT); |
ioaddr | 841 | drivers/net/eepro.c | outw(lp->tx_end, ioaddr + XMT_BAR); |
ioaddr | 842 | drivers/net/eepro.c | outb(MC_SETUP, ioaddr); |
ioaddr | 850 | drivers/net/eepro.c | outw(lp->tx_last + XMT_CHAIN, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 851 | drivers/net/eepro.c | outw(i, ioaddr + IO_PORT); |
ioaddr | 852 | drivers/net/eepro.c | outw(lp->tx_last + XMT_COUNT, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 853 | drivers/net/eepro.c | status = inw(ioaddr + IO_PORT); |
ioaddr | 854 | drivers/net/eepro.c | outw(status | CHAIN_BIT, ioaddr + IO_PORT); |
ioaddr | 863 | drivers/net/eepro.c | if (inb(ioaddr + STATUS_REG) & 0x08) |
ioaddr | 865 | drivers/net/eepro.c | i = inb(ioaddr); |
ioaddr | 866 | drivers/net/eepro.c | outb(0x08, ioaddr + STATUS_REG); |
ioaddr | 880 | drivers/net/eepro.c | outb(ALL_MASK & ~(RX_MASK | TX_MASK), ioaddr + INT_MASK_REG); |
ioaddr | 883 | drivers/net/eepro.c | outb(RCV_ENABLE_CMD, ioaddr); |
ioaddr | 894 | drivers/net/eepro.c | read_eeprom(int ioaddr, int location) |
ioaddr | 898 | drivers/net/eepro.c | short ee_addr = ioaddr + EEPROM_REG; |
ioaddr | 902 | drivers/net/eepro.c | outb(BANK2_SELECT, ioaddr); |
ioaddr | 929 | drivers/net/eepro.c | outb(BANK0_SELECT, ioaddr); |
ioaddr | 937 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
ioaddr | 955 | drivers/net/eepro.c | outb(ALL_MASK, ioaddr + INT_MASK_REG); |
ioaddr | 974 | drivers/net/eepro.c | outw(last, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 975 | drivers/net/eepro.c | outw(XMT_CMD, ioaddr + IO_PORT); |
ioaddr | 976 | drivers/net/eepro.c | outw(0, ioaddr + IO_PORT); |
ioaddr | 977 | drivers/net/eepro.c | outw(end, ioaddr + IO_PORT); |
ioaddr | 978 | drivers/net/eepro.c | outw(length, ioaddr + IO_PORT); |
ioaddr | 979 | drivers/net/eepro.c | outsw(ioaddr + IO_PORT, buf, (length + 1) >> 1); |
ioaddr | 985 | drivers/net/eepro.c | outw(lp->tx_last + XMT_CHAIN, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 986 | drivers/net/eepro.c | outw(last, ioaddr + IO_PORT); |
ioaddr | 988 | drivers/net/eepro.c | outw(lp->tx_last + XMT_COUNT, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 989 | drivers/net/eepro.c | status = inw(ioaddr + IO_PORT); |
ioaddr | 990 | drivers/net/eepro.c | outw(status | CHAIN_BIT, ioaddr + IO_PORT); |
ioaddr | 994 | drivers/net/eepro.c | status = inw(ioaddr + IO_PORT); |
ioaddr | 997 | drivers/net/eepro.c | outb(ALL_MASK & ~(RX_MASK | TX_MASK), ioaddr + INT_MASK_REG); |
ioaddr | 1000 | drivers/net/eepro.c | outw(last, ioaddr + XMT_BAR); |
ioaddr | 1001 | drivers/net/eepro.c | outb(XMT_CMD, ioaddr); |
ioaddr | 1004 | drivers/net/eepro.c | else outb(RESUME_XMT_CMD, ioaddr); |
ioaddr | 1027 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
ioaddr | 1036 | drivers/net/eepro.c | outw(rcv_car, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 1037 | drivers/net/eepro.c | rcv_event = inw(ioaddr + IO_PORT); |
ioaddr | 1040 | drivers/net/eepro.c | rcv_status = inw(ioaddr + IO_PORT); |
ioaddr | 1041 | drivers/net/eepro.c | rcv_next_frame = inw(ioaddr + IO_PORT); |
ioaddr | 1042 | drivers/net/eepro.c | rcv_size = inw(ioaddr + IO_PORT); |
ioaddr | 1058 | drivers/net/eepro.c | insw(ioaddr+IO_PORT, skb_put(skb,rcv_size), (rcv_size + 1) >> 1); |
ioaddr | 1083 | drivers/net/eepro.c | outw(rcv_next_frame, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 1084 | drivers/net/eepro.c | rcv_event = inw(ioaddr + IO_PORT); |
ioaddr | 1089 | drivers/net/eepro.c | outw(rcv_car - 1, ioaddr + RCV_STOP); |
ioaddr | 1099 | drivers/net/eepro.c | short ioaddr = dev->base_addr; |
ioaddr | 1105 | drivers/net/eepro.c | outw(lp->tx_start, ioaddr + HOST_ADDRESS_REG); |
ioaddr | 1106 | drivers/net/eepro.c | xmt_status = inw(ioaddr+IO_PORT); |
ioaddr | 1108 | drivers/net/eepro.c | xmt_status = inw(ioaddr+IO_PORT); |
ioaddr | 1109 | drivers/net/eepro.c | lp->tx_start = inw(ioaddr+IO_PORT); |
ioaddr | 240 | drivers/net/eexpress.c | static int eexp_hw_probe (struct device *dev,unsigned short ioaddr); |
ioaddr | 241 | drivers/net/eexpress.c | static unsigned short eexp_hw_readeeprom(unsigned short ioaddr, unsigned char location); |
ioaddr | 264 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 266 | drivers/net/eexpress.c | if (ioaddr&0xfe00) |
ioaddr | 267 | drivers/net/eexpress.c | return eexp_hw_probe(dev,ioaddr); |
ioaddr | 268 | drivers/net/eexpress.c | else if (ioaddr) |
ioaddr | 294 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 309 | drivers/net/eexpress.c | request_region(ioaddr, EEXP_IO_EXTENT, "eexpress"); |
ioaddr | 323 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 329 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[irq],ioaddr+SET_IRQ); |
ioaddr | 331 | drivers/net/eexpress.c | outw(SCB_CUsuspend|SCB_RUsuspend,ioaddr+SCB_CMD); |
ioaddr | 332 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 335 | drivers/net/eexpress.c | outb(i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 336 | drivers/net/eexpress.c | release_region(ioaddr,16); |
ioaddr | 365 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 371 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 386 | drivers/net/eexpress.c | dev->name,inw(ioaddr+SCB_STATUS)); |
ioaddr | 389 | drivers/net/eexpress.c | outw(lp->tx_link,ioaddr+SCB_CBL); |
ioaddr | 390 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 391 | drivers/net/eexpress.c | outw(SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 392 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 393 | drivers/net/eexpress.c | while (!SCB_complete(rsst=inw(ioaddr+SCB_STATUS))) |
ioaddr | 400 | drivers/net/eexpress.c | outw(lp->tx_link,ioaddr+SCB_CBL); |
ioaddr | 401 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 402 | drivers/net/eexpress.c | outw(SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 403 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 411 | drivers/net/eexpress.c | unsigned short status = inw(ioaddr+SCB_STATUS); |
ioaddr | 438 | drivers/net/eexpress.c | unsigned short status = inw(ioaddr+SCB_STATUS); |
ioaddr | 450 | drivers/net/eexpress.c | unsigned short status = inw(ioaddr+SCB_STATUS); |
ioaddr | 460 | drivers/net/eexpress.c | outb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 474 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 476 | drivers/net/eexpress.c | outb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 479 | drivers/net/eexpress.c | outb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 494 | drivers/net/eexpress.c | unsigned short ioaddr,status,ack_cmd; |
ioaddr | 510 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
ioaddr | 512 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[irq],ioaddr+SET_IRQ); |
ioaddr | 513 | drivers/net/eexpress.c | old_rp = inw(ioaddr+READ_PTR); |
ioaddr | 514 | drivers/net/eexpress.c | old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 515 | drivers/net/eexpress.c | status = inw(ioaddr+SCB_STATUS); |
ioaddr | 521 | drivers/net/eexpress.c | while (SCB_CUstat(inw(ioaddr+SCB_STATUS))==2); |
ioaddr | 523 | drivers/net/eexpress.c | outw(lp->tx_link,ioaddr+SCB_CBL); |
ioaddr | 524 | drivers/net/eexpress.c | outw(PRIV(dev)->rx_buf_start,ioaddr+SCB_RFA); |
ioaddr | 544 | drivers/net/eexpress.c | outw(PRIV(dev)->rx_buf_start,ioaddr+SCB_RFA); |
ioaddr | 550 | drivers/net/eexpress.c | outw(ack_cmd,ioaddr+SCB_CMD); |
ioaddr | 551 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 552 | drivers/net/eexpress.c | outw(old_rp,ioaddr+READ_PTR); |
ioaddr | 553 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 554 | drivers/net/eexpress.c | outb(SIRQ_en|irqrmap[irq],ioaddr+SET_IRQ); |
ioaddr | 571 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 572 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 573 | drivers/net/eexpress.c | unsigned short old_rp = inw(ioaddr+READ_PTR); |
ioaddr | 581 | drivers/net/eexpress.c | while (outw(rx_block,ioaddr+READ_PTR),boguscount--) |
ioaddr | 583 | drivers/net/eexpress.c | unsigned short status = inw(ioaddr); |
ioaddr | 584 | drivers/net/eexpress.c | unsigned short rfd_cmd = inw(ioaddr); |
ioaddr | 585 | drivers/net/eexpress.c | unsigned short rx_next = inw(ioaddr); |
ioaddr | 586 | drivers/net/eexpress.c | unsigned short pbuf = inw(ioaddr); |
ioaddr | 591 | drivers/net/eexpress.c | outw(pbuf,ioaddr+READ_PTR); |
ioaddr | 592 | drivers/net/eexpress.c | pkt_len = inw(ioaddr); |
ioaddr | 631 | drivers/net/eexpress.c | outw(pbuf+10,ioaddr+READ_PTR); |
ioaddr | 632 | drivers/net/eexpress.c | insw(ioaddr,skb_put(skb,pkt_len),(pkt_len+1)>>1); |
ioaddr | 637 | drivers/net/eexpress.c | outw(rx_block,ioaddr+WRITE_PTR); |
ioaddr | 638 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 639 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 643 | drivers/net/eexpress.c | outw(old_rp,ioaddr+READ_PTR); |
ioaddr | 644 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 657 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 658 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 660 | drivers/net/eexpress.c | outw(lp->tx_head,ioaddr+WRITE_PTR); |
ioaddr | 661 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 662 | drivers/net/eexpress.c | outw(Cmd_INT|Cmd_Xmit,ioaddr); |
ioaddr | 663 | drivers/net/eexpress.c | outw(lp->tx_head+0x08,ioaddr); |
ioaddr | 664 | drivers/net/eexpress.c | outw(lp->tx_head+0x0e,ioaddr); |
ioaddr | 665 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 666 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 667 | drivers/net/eexpress.c | outw(lp->tx_head+0x08,ioaddr); |
ioaddr | 668 | drivers/net/eexpress.c | outw(0x8000|len,ioaddr); |
ioaddr | 669 | drivers/net/eexpress.c | outw(-1,ioaddr); |
ioaddr | 670 | drivers/net/eexpress.c | outw(lp->tx_head+0x16,ioaddr); |
ioaddr | 671 | drivers/net/eexpress.c | outw(0,ioaddr); |
ioaddr | 672 | drivers/net/eexpress.c | outsw(ioaddr,buf,(len+1)>>1); |
ioaddr | 673 | drivers/net/eexpress.c | outw(lp->tx_tail+0x0c,ioaddr+WRITE_PTR); |
ioaddr | 674 | drivers/net/eexpress.c | outw(lp->tx_head,ioaddr); |
ioaddr | 683 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 694 | drivers/net/eexpress.c | static int eexp_hw_probe(struct device *dev, unsigned short ioaddr) |
ioaddr | 700 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x, ",dev->name,ioaddr); |
ioaddr | 702 | drivers/net/eexpress.c | hw_addr[0] = eexp_hw_readeeprom(ioaddr,2); |
ioaddr | 703 | drivers/net/eexpress.c | hw_addr[1] = eexp_hw_readeeprom(ioaddr,3); |
ioaddr | 704 | drivers/net/eexpress.c | hw_addr[2] = eexp_hw_readeeprom(ioaddr,4); |
ioaddr | 713 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
ioaddr | 721 | drivers/net/eexpress.c | unsigned short setupval = eexp_hw_readeeprom(ioaddr,0); |
ioaddr | 725 | drivers/net/eexpress.c | eexp_hw_readeeprom(ioaddr,5) & 0x1 ? TP : BNC; |
ioaddr | 729 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 730 | drivers/net/eexpress.c | outb(0,ioaddr+SET_IRQ); |
ioaddr | 746 | drivers/net/eexpress.c | old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 747 | drivers/net/eexpress.c | old_rp = inw(ioaddr+READ_PTR); |
ioaddr | 748 | drivers/net/eexpress.c | outw(0x8000+i586mso,ioaddr+READ_PTR); |
ioaddr | 749 | drivers/net/eexpress.c | old_a1 = inw(ioaddr); |
ioaddr | 750 | drivers/net/eexpress.c | outw(i586mso,ioaddr+READ_PTR); |
ioaddr | 751 | drivers/net/eexpress.c | old_a0 = inw(ioaddr); |
ioaddr | 752 | drivers/net/eexpress.c | outw(i586mso,ioaddr+WRITE_PTR); |
ioaddr | 753 | drivers/net/eexpress.c | outw(0x55aa,ioaddr); |
ioaddr | 754 | drivers/net/eexpress.c | outw(i586mso,ioaddr+READ_PTR); |
ioaddr | 755 | drivers/net/eexpress.c | a0_0 = inw(ioaddr); |
ioaddr | 756 | drivers/net/eexpress.c | outw(0x8000+i586mso,ioaddr+WRITE_PTR); |
ioaddr | 757 | drivers/net/eexpress.c | outw(0x5a5a,ioaddr); |
ioaddr | 758 | drivers/net/eexpress.c | outw(0x8000+i586mso,ioaddr+READ_PTR); |
ioaddr | 759 | drivers/net/eexpress.c | a1_0 = inw(ioaddr); |
ioaddr | 760 | drivers/net/eexpress.c | outw(i586mso,ioaddr+READ_PTR); |
ioaddr | 761 | drivers/net/eexpress.c | a0_1 = inw(ioaddr); |
ioaddr | 762 | drivers/net/eexpress.c | outw(i586mso,ioaddr+WRITE_PTR); |
ioaddr | 763 | drivers/net/eexpress.c | outw(0x1234,ioaddr); |
ioaddr | 764 | drivers/net/eexpress.c | outw(0x8000+i586mso,ioaddr+READ_PTR); |
ioaddr | 765 | drivers/net/eexpress.c | a1_1 = inw(ioaddr); |
ioaddr | 782 | drivers/net/eexpress.c | outw(0x8000+i586mso,ioaddr+WRITE_PTR); |
ioaddr | 783 | drivers/net/eexpress.c | outw(old_a1,ioaddr); |
ioaddr | 784 | drivers/net/eexpress.c | outw(i586mso,ioaddr+WRITE_PTR); |
ioaddr | 785 | drivers/net/eexpress.c | outw(old_a0,ioaddr); |
ioaddr | 786 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 787 | drivers/net/eexpress.c | outw(old_rp,ioaddr+READ_PTR); |
ioaddr | 803 | drivers/net/eexpress.c | static unsigned short eexp_hw_readeeprom(unsigned short ioaddr, unsigned char location) |
ioaddr | 809 | drivers/net/eexpress.c | outb(EC_CS|i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 817 | drivers/net/eexpress.c | outb(wval,ioaddr+EEPROM_Ctrl); |
ioaddr | 818 | drivers/net/eexpress.c | outb(wval|EC_Clk,ioaddr+EEPROM_Ctrl); |
ioaddr | 820 | drivers/net/eexpress.c | outb(wval,ioaddr+EEPROM_Ctrl); |
ioaddr | 824 | drivers/net/eexpress.c | outb(wval,ioaddr+EEPROM_Ctrl); |
ioaddr | 827 | drivers/net/eexpress.c | outb(wval|EC_Clk,ioaddr+EEPROM_Ctrl); |
ioaddr | 829 | drivers/net/eexpress.c | if (inb(ioaddr+EEPROM_Ctrl)&EC_Rd) |
ioaddr | 831 | drivers/net/eexpress.c | outb(wval,ioaddr+EEPROM_Ctrl); |
ioaddr | 835 | drivers/net/eexpress.c | outb(wval|EC_Clk,ioaddr+EEPROM_Ctrl); |
ioaddr | 837 | drivers/net/eexpress.c | outb(wval,ioaddr+EEPROM_Ctrl); |
ioaddr | 855 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 856 | drivers/net/eexpress.c | unsigned short old_rp = inw(ioaddr+READ_PTR); |
ioaddr | 857 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 866 | drivers/net/eexpress.c | outw(tx_block,ioaddr+READ_PTR); |
ioaddr | 867 | drivers/net/eexpress.c | status = inw(ioaddr); |
ioaddr | 871 | drivers/net/eexpress.c | outw(old_rp,ioaddr+READ_PTR); |
ioaddr | 872 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 901 | drivers/net/eexpress.c | outw(old_rp,ioaddr+READ_PTR); |
ioaddr | 902 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 917 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 920 | drivers/net/eexpress.c | outw(lp->tx_link,ioaddr+SCB_CBL); |
ioaddr | 921 | drivers/net/eexpress.c | outw(SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 922 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 923 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 927 | drivers/net/eexpress.c | while (!inw(ioaddr+SCB_STATUS)) |
ioaddr | 934 | drivers/net/eexpress.c | dev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD)); |
ioaddr | 935 | drivers/net/eexpress.c | outw(lp->tx_link,ioaddr+SCB_CBL); |
ioaddr | 936 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 937 | drivers/net/eexpress.c | outw(SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 938 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 970 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 971 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 977 | drivers/net/eexpress.c | outw(tx_block,ioaddr+WRITE_PTR); |
ioaddr | 978 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 979 | drivers/net/eexpress.c | outw(Cmd_INT|Cmd_Xmit,ioaddr); |
ioaddr | 980 | drivers/net/eexpress.c | outw(tx_block+0x08,ioaddr); |
ioaddr | 981 | drivers/net/eexpress.c | outw(tx_block+0x0e,ioaddr); |
ioaddr | 982 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 983 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 984 | drivers/net/eexpress.c | outw(tx_block+0x08,ioaddr); |
ioaddr | 985 | drivers/net/eexpress.c | outw(0x8000,ioaddr); |
ioaddr | 986 | drivers/net/eexpress.c | outw(-1,ioaddr); |
ioaddr | 987 | drivers/net/eexpress.c | outw(tx_block+0x16,ioaddr); |
ioaddr | 988 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 996 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 1018 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 1019 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 1027 | drivers/net/eexpress.c | outw(rx_block,ioaddr+WRITE_PTR); |
ioaddr | 1028 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1029 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1030 | drivers/net/eexpress.c | outw(rx_block+RX_BUF_SIZE,ioaddr); |
ioaddr | 1031 | drivers/net/eexpress.c | outw(rx_block+0x16,ioaddr); |
ioaddr | 1032 | drivers/net/eexpress.c | outsw(ioaddr, rx_words, sizeof(rx_words)>>1); |
ioaddr | 1033 | drivers/net/eexpress.c | outw(0x8000,ioaddr); |
ioaddr | 1034 | drivers/net/eexpress.c | outw(-1,ioaddr); |
ioaddr | 1035 | drivers/net/eexpress.c | outw(rx_block+0x20,ioaddr); |
ioaddr | 1036 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1037 | drivers/net/eexpress.c | outw(0x8000|(RX_BUF_SIZE-0x20),ioaddr); |
ioaddr | 1042 | drivers/net/eexpress.c | outw(lp->rx_last+4,ioaddr+WRITE_PTR); |
ioaddr | 1043 | drivers/net/eexpress.c | outw(lp->rx_first,ioaddr); |
ioaddr | 1045 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 1057 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 1058 | drivers/net/eexpress.c | unsigned short old_wp = inw(ioaddr+WRITE_PTR); |
ioaddr | 1060 | drivers/net/eexpress.c | outw(rx_buf,ioaddr+WRITE_PTR); |
ioaddr | 1061 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1062 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1063 | drivers/net/eexpress.c | outw((rx_buf==lp->rx_last)?lp->rx_first:(rx_buf+RX_BUF_SIZE),ioaddr); |
ioaddr | 1064 | drivers/net/eexpress.c | outw(rx_buf+0x16,ioaddr); |
ioaddr | 1065 | drivers/net/eexpress.c | outsw(ioaddr, rx_words, sizeof(rx_words)>>1); |
ioaddr | 1066 | drivers/net/eexpress.c | outw(0x8000,ioaddr); |
ioaddr | 1067 | drivers/net/eexpress.c | outw(-1,ioaddr); |
ioaddr | 1068 | drivers/net/eexpress.c | outw(rx_buf+0x20,ioaddr); |
ioaddr | 1069 | drivers/net/eexpress.c | outw(0x0000,ioaddr); |
ioaddr | 1070 | drivers/net/eexpress.c | outw(0x8000|(RX_BUF_SIZE-0x20),ioaddr); |
ioaddr | 1071 | drivers/net/eexpress.c | outw(old_wp,ioaddr+WRITE_PTR); |
ioaddr | 1086 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 1091 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 1092 | drivers/net/eexpress.c | outb(i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 1097 | drivers/net/eexpress.c | outw(0,ioaddr+WRITE_PTR); |
ioaddr | 1099 | drivers/net/eexpress.c | outw(0,ioaddr); |
ioaddr | 1102 | drivers/net/eexpress.c | outw(lp->rx_buf_end,ioaddr+WRITE_PTR); |
ioaddr | 1103 | drivers/net/eexpress.c | outsw(ioaddr, start_code, sizeof(start_code)>>1); |
ioaddr | 1104 | drivers/net/eexpress.c | outw(CONF_HW_ADDR,ioaddr+WRITE_PTR); |
ioaddr | 1105 | drivers/net/eexpress.c | outsw(ioaddr,dev->dev_addr,3); |
ioaddr | 1108 | drivers/net/eexpress.c | outw(0,ioaddr+WRITE_PTR); |
ioaddr | 1109 | drivers/net/eexpress.c | outw(1,ioaddr); |
ioaddr | 1110 | drivers/net/eexpress.c | outb(0,ioaddr+EEPROM_Ctrl); |
ioaddr | 1111 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_CMD); |
ioaddr | 1112 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 1115 | drivers/net/eexpress.c | while (outw(0,ioaddr+READ_PTR),inw(ioaddr)) |
ioaddr | 1121 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_CMD); |
ioaddr | 1122 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 1134 | drivers/net/eexpress.c | outw(CONF_LINK,ioaddr+SCB_CBL); |
ioaddr | 1135 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 1136 | drivers/net/eexpress.c | outw(0xf000|SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 1137 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 1140 | drivers/net/eexpress.c | while (!inw(ioaddr+SCB_STATUS)) |
ioaddr | 1147 | drivers/net/eexpress.c | dev->name, inw(ioaddr+SCB_STATUS), inw(ioaddr+SCB_CMD)); |
ioaddr | 1148 | drivers/net/eexpress.c | outw(CONF_LINK,ioaddr+SCB_CBL); |
ioaddr | 1149 | drivers/net/eexpress.c | outw(0,ioaddr+SCB_STATUS); |
ioaddr | 1150 | drivers/net/eexpress.c | outw(0xf000|SCB_CUstart,ioaddr+SCB_CMD); |
ioaddr | 1151 | drivers/net/eexpress.c | outb(0,ioaddr+SIGNAL_CA); |
ioaddr | 1163 | drivers/net/eexpress.c | outb(SIRQ_en|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 1179 | drivers/net/eexpress.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 1182 | drivers/net/eexpress.c | outb(SIRQ_dis|irqrmap[dev->irq],ioaddr+SET_IRQ); |
ioaddr | 1188 | drivers/net/eexpress.c | outb(ASIC_RST|i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 1193 | drivers/net/eexpress.c | outw(0,ioaddr+WRITE_PTR); |
ioaddr | 1194 | drivers/net/eexpress.c | outw(wrval,ioaddr); |
ioaddr | 1195 | drivers/net/eexpress.c | outw(0,ioaddr+READ_PTR); |
ioaddr | 1196 | drivers/net/eexpress.c | if (wrval++ == inw(ioaddr)) |
ioaddr | 1207 | drivers/net/eexpress.c | outb(ASIC_RST|i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 1211 | drivers/net/eexpress.c | outb(i586_RST,ioaddr+EEPROM_Ctrl); |
ioaddr | 102 | drivers/net/eth16i.c | #define BITSET(ioaddr, bnum) ((outb(((inb(ioaddr)) | (bnum)), ioaddr))) |
ioaddr | 103 | drivers/net/eth16i.c | #define BITCLR(ioaddr, bnum) ((outb(((inb(ioaddr)) & (~(bnum))), ioaddr))) |
ioaddr | 315 | drivers/net/eth16i.c | static int eth16i_probe1(struct device *dev, short ioaddr); |
ioaddr | 316 | drivers/net/eth16i.c | static int eth16i_check_signature(short ioaddr); |
ioaddr | 317 | drivers/net/eth16i.c | static int eth16i_probe_port(short ioaddr); |
ioaddr | 318 | drivers/net/eth16i.c | static void eth16i_set_port(short ioaddr, int porttype); |
ioaddr | 319 | drivers/net/eth16i.c | static int eth16i_send_probe_packet(short ioaddr, unsigned char *b, int l); |
ioaddr | 320 | drivers/net/eth16i.c | static int eth16i_receive_probe_packet(short ioaddr); |
ioaddr | 321 | drivers/net/eth16i.c | static int eth16i_get_irq(short ioaddr); |
ioaddr | 322 | drivers/net/eth16i.c | static int eth16i_read_eeprom(int ioaddr, int offset); |
ioaddr | 323 | drivers/net/eth16i.c | static int eth16i_read_eeprom_word(int ioaddr); |
ioaddr | 324 | drivers/net/eth16i.c | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command); |
ioaddr | 331 | drivers/net/eth16i.c | static void eth16i_select_regbank(unsigned char regbank, short ioaddr); |
ioaddr | 346 | drivers/net/eth16i.c | int ioaddr; |
ioaddr | 358 | drivers/net/eth16i.c | for(i = 0; (ioaddr = eth16i_portlist[i]) ; i++) { |
ioaddr | 359 | drivers/net/eth16i.c | if(check_region(ioaddr, ETH16I_IO_EXTENT)) |
ioaddr | 361 | drivers/net/eth16i.c | if(eth16i_probe1(dev, ioaddr) == 0) |
ioaddr | 366 | drivers/net/eth16i.c | for(i = 0; (ioaddr = eth32i_portlist[i]) ; i++) { |
ioaddr | 367 | drivers/net/eth16i.c | if(check_region(ioaddr, ETH16I_IO_EXTENT)) |
ioaddr | 369 | drivers/net/eth16i.c | if(eth16i_probe1(dev, ioaddr) == 0) |
ioaddr | 377 | drivers/net/eth16i.c | static int eth16i_probe1(struct device *dev, short ioaddr) |
ioaddr | 390 | drivers/net/eth16i.c | if(ioaddr < 0x1000) { |
ioaddr | 391 | drivers/net/eth16i.c | if(eth16i_portlist[(inb(ioaddr + JUMPERLESS_CONFIG) & 0x07)] != ioaddr) |
ioaddr | 397 | drivers/net/eth16i.c | if(eth16i_check_signature(ioaddr) != 0) /* Can we find the signature here */ |
ioaddr | 408 | drivers/net/eth16i.c | eth16i_select_regbank(TRANSCEIVER_MODE_RB, ioaddr); |
ioaddr | 409 | drivers/net/eth16i.c | outb(0x00, ioaddr + TRANSCEIVER_MODE_REG); |
ioaddr | 411 | drivers/net/eth16i.c | outb(0x00, ioaddr + RESET); /* Will reset some parts of chip */ |
ioaddr | 412 | drivers/net/eth16i.c | BITSET(ioaddr + CONFIG_REG_0, BIT(7)); /* This will disable the data link */ |
ioaddr | 420 | drivers/net/eth16i.c | dev->base_addr = ioaddr; |
ioaddr | 422 | drivers/net/eth16i.c | irq = eth16i_get_irq(ioaddr); |
ioaddr | 428 | drivers/net/eth16i.c | conflict on IRQ %d.\n", dev->name, cardname, ioaddr, irq); |
ioaddr | 433 | drivers/net/eth16i.c | dev->name, cardname, ioaddr, dev->irq); |
ioaddr | 436 | drivers/net/eth16i.c | request_region(ioaddr, ETH16I_IO_EXTENT, "eth16i"); |
ioaddr | 439 | drivers/net/eth16i.c | eth16i_select_regbank(TRANSCEIVER_MODE_RB, ioaddr); |
ioaddr | 440 | drivers/net/eth16i.c | outb(0x38, ioaddr + TRANSCEIVER_MODE_REG); |
ioaddr | 445 | drivers/net/eth16i.c | BITCLR(ioaddr + CONFIG_REG_1, POWERUP); |
ioaddr | 469 | drivers/net/eth16i.c | short ioaddr = dev->base_addr; |
ioaddr | 474 | drivers/net/eth16i.c | eth16i_select_regbank(NODE_ID_RB, ioaddr); |
ioaddr | 476 | drivers/net/eth16i.c | unsigned short node_val = eth16i_read_eeprom(ioaddr, E_NODEID_0 + i); |
ioaddr | 481 | drivers/net/eth16i.c | outb( ((unsigned char *)dev->dev_addr)[i], ioaddr + NODE_ID_0 + i); |
ioaddr | 483 | drivers/net/eth16i.c | printk("%02x", inb(ioaddr + NODE_ID_0 + i)); |
ioaddr | 490 | drivers/net/eth16i.c | eth16i_select_regbank(HASH_TABLE_RB, ioaddr); |
ioaddr | 492 | drivers/net/eth16i.c | outb(0x00, ioaddr + HASH_TABLE_0 + i); |
ioaddr | 500 | drivers/net/eth16i.c | eth16i_select_regbank(2, ioaddr); |
ioaddr | 503 | drivers/net/eth16i.c | node_w = eth16i_read_eeprom(ioaddr, E_PRODUCT_CFG); |
ioaddr | 515 | drivers/net/eth16i.c | outb(node_byte, ioaddr + CONFIG_REG_0); |
ioaddr | 518 | drivers/net/eth16i.c | outb(RETRANS_AND_HALT_ON_16, ioaddr + COL_16_REG); |
ioaddr | 524 | drivers/net/eth16i.c | ushort ptype = eth16i_read_eeprom(ioaddr, E_PORT_SELECT); |
ioaddr | 530 | drivers/net/eth16i.c | ptype = eth16i_probe_port(ioaddr); |
ioaddr | 532 | drivers/net/eth16i.c | eth16i_set_port(ioaddr, ptype); |
ioaddr | 536 | drivers/net/eth16i.c | outb(MODE_2, ioaddr + RECEIVE_MODE_REG); |
ioaddr | 539 | drivers/net/eth16i.c | static int eth16i_probe_port(short ioaddr) |
ioaddr | 546 | drivers/net/eth16i.c | outb(0xc0 | POWERUP, ioaddr + CONFIG_REG_1); |
ioaddr | 548 | drivers/net/eth16i.c | BITSET(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 550 | drivers/net/eth16i.c | eth16i_select_regbank(NODE_ID_RB, ioaddr); |
ioaddr | 553 | drivers/net/eth16i.c | dummy_packet[i] = inb(ioaddr + NODE_ID_0 + i); |
ioaddr | 554 | drivers/net/eth16i.c | dummy_packet[i+6] = inb(ioaddr + NODE_ID_0 + i); |
ioaddr | 560 | drivers/net/eth16i.c | eth16i_select_regbank(2, ioaddr); |
ioaddr | 563 | drivers/net/eth16i.c | BITSET(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 564 | drivers/net/eth16i.c | BITCLR(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 565 | drivers/net/eth16i.c | eth16i_set_port(ioaddr, i); |
ioaddr | 570 | drivers/net/eth16i.c | retcode = eth16i_send_probe_packet(ioaddr, dummy_packet, 64); |
ioaddr | 572 | drivers/net/eth16i.c | retcode = eth16i_receive_probe_packet(ioaddr); |
ioaddr | 591 | drivers/net/eth16i.c | static void eth16i_set_port(short ioaddr, int porttype) |
ioaddr | 595 | drivers/net/eth16i.c | eth16i_select_regbank(TRANSCEIVER_MODE_RB, ioaddr); |
ioaddr | 596 | drivers/net/eth16i.c | outb(LOOPBACK_CONTROL, ioaddr + TRANSMIT_MODE_REG); |
ioaddr | 611 | drivers/net/eth16i.c | BITSET(ioaddr + TRANSMIT_MODE_REG, CONTROL_OUTPUT); |
ioaddr | 614 | drivers/net/eth16i.c | outb(temp, ioaddr + TRANSCEIVER_MODE_REG); |
ioaddr | 617 | drivers/net/eth16i.c | printk("TRANSMIT_MODE_REG = %x\n", inb(ioaddr + TRANSMIT_MODE_REG)); |
ioaddr | 618 | drivers/net/eth16i.c | printk("TRANSCEIVER_MODE_REG = %x\n", inb(ioaddr+TRANSCEIVER_MODE_REG)); |
ioaddr | 622 | drivers/net/eth16i.c | static int eth16i_send_probe_packet(short ioaddr, unsigned char *b, int l) |
ioaddr | 626 | drivers/net/eth16i.c | outb(0xff, ioaddr + TX_STATUS_REG); |
ioaddr | 628 | drivers/net/eth16i.c | outw(l, ioaddr + DATAPORT); |
ioaddr | 629 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, (unsigned short *)b, (l + 1) >> 1); |
ioaddr | 632 | drivers/net/eth16i.c | outb(TX_START | 1, ioaddr + TRANSMIT_START_REG); |
ioaddr | 634 | drivers/net/eth16i.c | while( (inb(ioaddr + TX_STATUS_REG) & 0x80) == 0) { |
ioaddr | 643 | drivers/net/eth16i.c | static int eth16i_receive_probe_packet(short ioaddr) |
ioaddr | 649 | drivers/net/eth16i.c | while((inb(ioaddr + TX_STATUS_REG) & 0x20) == 0) { |
ioaddr | 655 | drivers/net/eth16i.c | while((inb(ioaddr + RX_STATUS_REG) & 0x80) == 0) { |
ioaddr | 670 | drivers/net/eth16i.c | printk("TRANSMIT_PACKET_RECEIVED %x\n", inb(ioaddr + TX_STATUS_REG)); |
ioaddr | 671 | drivers/net/eth16i.c | printk("RX_STATUS_REG = %x\n", inb(ioaddr + RX_STATUS_REG)); |
ioaddr | 677 | drivers/net/eth16i.c | static int eth16i_get_irq(short ioaddr) |
ioaddr | 681 | drivers/net/eth16i.c | if( ioaddr < 0x1000) { |
ioaddr | 682 | drivers/net/eth16i.c | cbyte = inb(ioaddr + JUMPERLESS_CONFIG); |
ioaddr | 686 | drivers/net/eth16i.c | cbyte = inb(ioaddr + EISA_IRQ_REG); |
ioaddr | 695 | drivers/net/eth16i.c | static int eth16i_check_signature(short ioaddr) |
ioaddr | 702 | drivers/net/eth16i.c | creg[i] = inb(ioaddr + TRANSMIT_MODE_REG + i); |
ioaddr | 706 | drivers/net/eth16i.c | ioaddr + TRANSMIT_MODE_REG + i); |
ioaddr | 732 | drivers/net/eth16i.c | if(eth16i_read_eeprom(ioaddr, E_NODEID_0) != 0) |
ioaddr | 734 | drivers/net/eth16i.c | if((eth16i_read_eeprom(ioaddr, E_NODEID_1) & 0xFF00) != 0x4B00) |
ioaddr | 740 | drivers/net/eth16i.c | static int eth16i_read_eeprom(int ioaddr, int offset) |
ioaddr | 744 | drivers/net/eth16i.c | eth16i_eeprom_cmd(ioaddr, EEPROM_READ | offset); |
ioaddr | 745 | drivers/net/eth16i.c | outb(CS_1, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 746 | drivers/net/eth16i.c | data = eth16i_read_eeprom_word(ioaddr); |
ioaddr | 747 | drivers/net/eth16i.c | outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 752 | drivers/net/eth16i.c | static int eth16i_read_eeprom_word(int ioaddr) |
ioaddr | 758 | drivers/net/eth16i.c | outb(CS_1 | SK_0, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 760 | drivers/net/eth16i.c | outb(CS_1 | SK_1, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 762 | drivers/net/eth16i.c | data = (data << 1) | ((inb(ioaddr + EEPROM_DATA_REG) & DI_1) ? 1 : 0); |
ioaddr | 769 | drivers/net/eth16i.c | static void eth16i_eeprom_cmd(int ioaddr, unsigned char command) |
ioaddr | 773 | drivers/net/eth16i.c | outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 774 | drivers/net/eth16i.c | outb(DI_0, ioaddr + EEPROM_DATA_REG); |
ioaddr | 775 | drivers/net/eth16i.c | outb(CS_1 | SK_0, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 776 | drivers/net/eth16i.c | outb(DI_1, ioaddr + EEPROM_DATA_REG); |
ioaddr | 777 | drivers/net/eth16i.c | outb(CS_1 | SK_1, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 781 | drivers/net/eth16i.c | outb(cmd, ioaddr + EEPROM_DATA_REG); |
ioaddr | 782 | drivers/net/eth16i.c | outb(CS_1 | SK_0, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 784 | drivers/net/eth16i.c | outb(CS_1 | SK_1, ioaddr + EEPROM_CTRL_REG); |
ioaddr | 792 | drivers/net/eth16i.c | int ioaddr = dev->base_addr; |
ioaddr | 797 | drivers/net/eth16i.c | outb(0xc0 | POWERUP, ioaddr + CONFIG_REG_1); |
ioaddr | 809 | drivers/net/eth16i.c | BITCLR(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 812 | drivers/net/eth16i.c | eth16i_select_regbank(2, ioaddr); |
ioaddr | 820 | drivers/net/eth16i.c | outw(ETH16I_INTR_ON, ioaddr + TX_INTR_REG); |
ioaddr | 836 | drivers/net/eth16i.c | int ioaddr = dev->base_addr; |
ioaddr | 844 | drivers/net/eth16i.c | BITSET(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 847 | drivers/net/eth16i.c | outb(0xff, ioaddr + RESET); |
ioaddr | 850 | drivers/net/eth16i.c | BITCLR(ioaddr + CONFIG_REG_1, POWERUP); |
ioaddr | 862 | drivers/net/eth16i.c | int ioaddr = dev->base_addr; |
ioaddr | 875 | drivers/net/eth16i.c | inw(ioaddr + TX_STATUS_REG), |
ioaddr | 876 | drivers/net/eth16i.c | (inb(ioaddr + TX_STATUS_REG) & TX_DONE) ? |
ioaddr | 882 | drivers/net/eth16i.c | dev->name, inb(ioaddr + 0), inb(ioaddr + 1), inb(ioaddr + 2), |
ioaddr | 883 | drivers/net/eth16i.c | inb(ioaddr + 3), inb(ioaddr + 4), inb(ioaddr + 5), |
ioaddr | 884 | drivers/net/eth16i.c | inb(ioaddr + 6), inb(ioaddr + 7)); |
ioaddr | 897 | drivers/net/eth16i.c | BITSET(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 898 | drivers/net/eth16i.c | outw(0xffff, ioaddr + RESET); |
ioaddr | 900 | drivers/net/eth16i.c | outw(0xffff, ioaddr + TX_STATUS_REG); |
ioaddr | 901 | drivers/net/eth16i.c | BITCLR(ioaddr + CONFIG_REG_0, DLC_EN); |
ioaddr | 907 | drivers/net/eth16i.c | outw(ETH16I_INTR_ON, ioaddr + TX_INTR_REG); |
ioaddr | 927 | drivers/net/eth16i.c | outw(ETH16I_INTR_OFF, ioaddr + TX_INTR_REG); |
ioaddr | 935 | drivers/net/eth16i.c | outw(length, ioaddr + DATAPORT); |
ioaddr | 937 | drivers/net/eth16i.c | if( ioaddr < 0x1000 ) |
ioaddr | 938 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 942 | drivers/net/eth16i.c | outsl(ioaddr + DATAPORT, buf, length >> 2); |
ioaddr | 945 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, (buf + (length & 0xFFFC)), 1); |
ioaddr | 947 | drivers/net/eth16i.c | outsw(ioaddr + DATAPORT, (buf + (length & 0xFFFC) + 2), 1); |
ioaddr | 956 | drivers/net/eth16i.c | outb(TX_START | lp->tx_queue, ioaddr + TRANSMIT_START_REG); |
ioaddr | 968 | drivers/net/eth16i.c | outw(ETH16I_INTR_ON, ioaddr + TX_INTR_REG); |
ioaddr | 981 | drivers/net/eth16i.c | int ioaddr = dev->base_addr; |
ioaddr | 985 | drivers/net/eth16i.c | while( (inb(ioaddr + RECEIVE_MODE_REG) & RX_BUFFER_EMPTY) == 0) { |
ioaddr | 988 | drivers/net/eth16i.c | ushort status = inw(ioaddr + DATAPORT); |
ioaddr | 992 | drivers/net/eth16i.c | dev->name, inb(ioaddr + RECEIVE_MODE_REG), status); |
ioaddr | 1006 | drivers/net/eth16i.c | ushort pkt_len = inw(ioaddr + DATAPORT); |
ioaddr | 1011 | drivers/net/eth16i.c | outb(RX_BUF_SKIP_PACKET, ioaddr + FILTER_SELF_RX_REG); |
ioaddr | 1020 | drivers/net/eth16i.c | outb(RX_BUF_SKIP_PACKET, ioaddr + FILTER_SELF_RX_REG); |
ioaddr | 1033 | drivers/net/eth16i.c | if( ioaddr < 0x1000) |
ioaddr | 1034 | drivers/net/eth16i.c | insw(ioaddr + DATAPORT, skb_put(skb, pkt_len), (pkt_len + 1) >> 1); |
ioaddr | 1039 | drivers/net/eth16i.c | insl(ioaddr + DATAPORT, buf, pkt_len >> 2); |
ioaddr | 1043 | drivers/net/eth16i.c | rest[0] = inw( ioaddr + DATAPORT ); |
ioaddr | 1045 | drivers/net/eth16i.c | rest[1] = inw( ioaddr + DATAPORT ); |
ioaddr | 1075 | drivers/net/eth16i.c | if( (inb(ioaddr+RECEIVE_MODE_REG) & RX_BUFFER_EMPTY) == RX_BUFFER_EMPTY) |
ioaddr | 1077 | drivers/net/eth16i.c | inw(ioaddr + DATAPORT); |
ioaddr | 1078 | drivers/net/eth16i.c | outb(RX_BUF_SKIP_PACKET, ioaddr + FILTER_SELF_RX_REG); |
ioaddr | 1093 | drivers/net/eth16i.c | int ioaddr = 0, |
ioaddr | 1102 | drivers/net/eth16i.c | outw(ETH16I_INTR_OFF, ioaddr + TX_INTR_REG); |
ioaddr | 1106 | drivers/net/eth16i.c | ioaddr = dev->base_addr; |
ioaddr | 1108 | drivers/net/eth16i.c | status = inw(ioaddr + TX_STATUS_REG); /* Get the status */ |
ioaddr | 1109 | drivers/net/eth16i.c | outw(status, ioaddr + TX_STATUS_REG); /* Clear status bits */ |
ioaddr | 1122 | drivers/net/eth16i.c | outb(TX_START | lp->tx_queue, ioaddr + TRANSMIT_START_REG); |
ioaddr | 1138 | drivers/net/eth16i.c | ( (inb(ioaddr + RECEIVE_MODE_REG) & RX_BUFFER_EMPTY) == 0) ) { |
ioaddr | 1145 | drivers/net/eth16i.c | outw(ETH16I_INTR_ON, ioaddr + TX_INTR_REG); |
ioaddr | 1152 | drivers/net/eth16i.c | short ioaddr = dev->base_addr; |
ioaddr | 1157 | drivers/net/eth16i.c | outb(3, ioaddr + RECEIVE_MODE_REG); |
ioaddr | 1159 | drivers/net/eth16i.c | outb(2, ioaddr + RECEIVE_MODE_REG); |
ioaddr | 1170 | drivers/net/eth16i.c | static void eth16i_select_regbank(unsigned char banknbr, short ioaddr) |
ioaddr | 1174 | drivers/net/eth16i.c | data = inb(ioaddr + CONFIG_REG_1); |
ioaddr | 1175 | drivers/net/eth16i.c | outb( ((data & 0xF3) | ( (banknbr & 0x03) << 2)), ioaddr + CONFIG_REG_1); |
ioaddr | 50 | drivers/net/eth82586.h | #define set_loopback outb(inb(ioaddr+Config)|0x02,ioaddr+Config) |
ioaddr | 51 | drivers/net/eth82586.h | #define clear_loopback outb(inb(ioaddr+Config)&0xfd,ioaddr+Config) |
ioaddr | 1292 | drivers/net/ewrk3.c | static void isa_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1297 | drivers/net/ewrk3.c | if (!ioaddr && autoprobed) return ; /* Been here before ! */ |
ioaddr | 1298 | drivers/net/ewrk3.c | if (ioaddr >= 0x400) return; /* Not ISA */ |
ioaddr | 1300 | drivers/net/ewrk3.c | if (ioaddr == 0) { /* Autoprobing */ |
ioaddr | 1304 | drivers/net/ewrk3.c | iobase = ioaddr; |
ioaddr | 1330 | drivers/net/ewrk3.c | static void eisa_probe(struct device *dev, u_long ioaddr) |
ioaddr | 1336 | drivers/net/ewrk3.c | if (!ioaddr && autoprobed) return ; /* Been here before ! */ |
ioaddr | 1337 | drivers/net/ewrk3.c | if (ioaddr < 0x1000) return; /* Not EISA */ |
ioaddr | 1339 | drivers/net/ewrk3.c | if (ioaddr == 0) { /* Autoprobing */ |
ioaddr | 1344 | drivers/net/ewrk3.c | iobase = ioaddr; |
ioaddr | 1345 | drivers/net/ewrk3.c | i = (ioaddr >> 12); |
ioaddr | 110 | drivers/net/fmv18x.c | static int fmv18x_probe1(struct device *dev, short ioaddr); |
ioaddr | 144 | drivers/net/fmv18x.c | int ioaddr = fmv18x_probe_list[i]; |
ioaddr | 145 | drivers/net/fmv18x.c | if (check_region(ioaddr, FMV18X_IO_EXTENT)) |
ioaddr | 147 | drivers/net/fmv18x.c | if (fmv18x_probe1(dev, ioaddr) == 0) |
ioaddr | 163 | drivers/net/fmv18x.c | int fmv18x_probe1(struct device *dev, short ioaddr) |
ioaddr | 173 | drivers/net/fmv18x.c | if (fmv18x_probe_list[inb(ioaddr + FJ_CONFIG0) & 0x07] != ioaddr |
ioaddr | 174 | drivers/net/fmv18x.c | || inb(ioaddr+FJ_MACADDR ) != 0x00 |
ioaddr | 175 | drivers/net/fmv18x.c | || inb(ioaddr+FJ_MACADDR+1) != 0x00 |
ioaddr | 176 | drivers/net/fmv18x.c | || inb(ioaddr+FJ_MACADDR+2) != 0x0e) |
ioaddr | 179 | drivers/net/fmv18x.c | irq = irqmap[(inb(ioaddr + FJ_CONFIG0)>>6) & 0x03]; |
ioaddr | 184 | drivers/net/fmv18x.c | "IRQ %d.\n", ioaddr, irq); |
ioaddr | 194 | drivers/net/fmv18x.c | request_region(ioaddr, FMV18X_IO_EXTENT, "fmv18x"); |
ioaddr | 197 | drivers/net/fmv18x.c | ioaddr, irq); |
ioaddr | 199 | drivers/net/fmv18x.c | dev->base_addr = ioaddr; |
ioaddr | 204 | drivers/net/fmv18x.c | unsigned char val = inb(ioaddr + FJ_MACADDR + i); |
ioaddr | 217 | drivers/net/fmv18x.c | ushort setup_value = inb(ioaddr + FJ_STATUS0); |
ioaddr | 229 | drivers/net/fmv18x.c | outb(0xda, ioaddr + CONFIG_0); /* Initialize LAN Controller */ |
ioaddr | 230 | drivers/net/fmv18x.c | outb(0x00, ioaddr + CONFIG_1); /* Stand by mode */ |
ioaddr | 231 | drivers/net/fmv18x.c | outb(0x00, ioaddr + FJ_CONFIG1); /* Disable IRQ of LAN Card */ |
ioaddr | 232 | drivers/net/fmv18x.c | outb(0x00, ioaddr + FJ_BUFCNTL); /* Reset ? I'm not sure (TAMIYA) */ |
ioaddr | 238 | drivers/net/fmv18x.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 240 | drivers/net/fmv18x.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 243 | drivers/net/fmv18x.c | outb(0x04, ioaddr + CONFIG_1); |
ioaddr | 245 | drivers/net/fmv18x.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 248 | drivers/net/fmv18x.c | outb(0x08, ioaddr + CONFIG_1); |
ioaddr | 249 | drivers/net/fmv18x.c | outb(dev->if_port, ioaddr + MODE13); |
ioaddr | 276 | drivers/net/fmv18x.c | int ioaddr = dev->base_addr; |
ioaddr | 280 | drivers/net/fmv18x.c | outb(0x5a, ioaddr + CONFIG_0); |
ioaddr | 283 | drivers/net/fmv18x.c | outb(0xe8, ioaddr + CONFIG_1); |
ioaddr | 290 | drivers/net/fmv18x.c | outb(0xff, ioaddr + TX_STATUS); |
ioaddr | 291 | drivers/net/fmv18x.c | outb(0xff, ioaddr + RX_STATUS); |
ioaddr | 299 | drivers/net/fmv18x.c | outb(0x80, ioaddr + FJ_CONFIG1); |
ioaddr | 302 | drivers/net/fmv18x.c | outw(0x8182, ioaddr+TX_INTR); |
ioaddr | 313 | drivers/net/fmv18x.c | int ioaddr = dev->base_addr; |
ioaddr | 322 | drivers/net/fmv18x.c | htons(inw(ioaddr + TX_STATUS)), |
ioaddr | 323 | drivers/net/fmv18x.c | inb(ioaddr + TX_STATUS) & 0x80 |
ioaddr | 326 | drivers/net/fmv18x.c | dev->name, htons(inw(ioaddr + 0)), |
ioaddr | 327 | drivers/net/fmv18x.c | htons(inw(ioaddr + 2)), htons(inw(ioaddr + 4)), |
ioaddr | 328 | drivers/net/fmv18x.c | htons(inw(ioaddr + 6)), htons(inw(ioaddr + 8)), |
ioaddr | 329 | drivers/net/fmv18x.c | htons(inw(ioaddr +10)), htons(inw(ioaddr +12)), |
ioaddr | 330 | drivers/net/fmv18x.c | htons(inw(ioaddr +14))); |
ioaddr | 332 | drivers/net/fmv18x.c | htons(inw(ioaddr+FJ_STATUS0)), |
ioaddr | 333 | drivers/net/fmv18x.c | htons(inw(ioaddr+FJ_CONFIG0))); |
ioaddr | 339 | drivers/net/fmv18x.c | outb(0xda, ioaddr + CONFIG_0); /* Initialize LAN Controller */ |
ioaddr | 340 | drivers/net/fmv18x.c | outb(0x00, ioaddr + CONFIG_1); /* Stand by mode */ |
ioaddr | 341 | drivers/net/fmv18x.c | outb(0x00, ioaddr + FJ_CONFIG1); /* Disable IRQ of LAN Card */ |
ioaddr | 342 | drivers/net/fmv18x.c | outb(0x00, ioaddr + FJ_BUFCNTL); /* Reset ? I'm not sure */ |
ioaddr | 376 | drivers/net/fmv18x.c | outw(0x0000, ioaddr + TX_INTR); |
ioaddr | 378 | drivers/net/fmv18x.c | outw(length, ioaddr + DATAPORT); |
ioaddr | 379 | drivers/net/fmv18x.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 386 | drivers/net/fmv18x.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 397 | drivers/net/fmv18x.c | outw(0x8182, ioaddr + TX_INTR); |
ioaddr | 411 | drivers/net/fmv18x.c | int ioaddr, status; |
ioaddr | 419 | drivers/net/fmv18x.c | ioaddr = dev->base_addr; |
ioaddr | 423 | drivers/net/fmv18x.c | outw(0x0000, ioaddr + TX_INTR); |
ioaddr | 425 | drivers/net/fmv18x.c | status = inw(ioaddr + TX_STATUS); |
ioaddr | 426 | drivers/net/fmv18x.c | outw(status, ioaddr + TX_STATUS); |
ioaddr | 431 | drivers/net/fmv18x.c | || (inb(ioaddr + RX_MODE) & 0x40) == 0) { /* Got a packet(s). */ |
ioaddr | 438 | drivers/net/fmv18x.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 454 | drivers/net/fmv18x.c | outb(0x02, ioaddr + COL16CNTL); |
ioaddr | 459 | drivers/net/fmv18x.c | outw(0x8182, ioaddr + TX_INTR); |
ioaddr | 468 | drivers/net/fmv18x.c | int ioaddr = dev->base_addr; |
ioaddr | 471 | drivers/net/fmv18x.c | while ((inb(ioaddr + RX_MODE) & 0x40) == 0) { |
ioaddr | 474 | drivers/net/fmv18x.c | ushort status = inw(ioaddr + DATAPORT); |
ioaddr | 478 | drivers/net/fmv18x.c | dev->name, inb(ioaddr + RX_MODE), status); |
ioaddr | 481 | drivers/net/fmv18x.c | outb(0x05, ioaddr + 14); |
ioaddr | 493 | drivers/net/fmv18x.c | ushort pkt_len = inw(ioaddr + DATAPORT); |
ioaddr | 500 | drivers/net/fmv18x.c | outb(0x05, ioaddr + 14); |
ioaddr | 508 | drivers/net/fmv18x.c | outb(0x05, ioaddr + 14); |
ioaddr | 515 | drivers/net/fmv18x.c | insw(ioaddr + DATAPORT, skb_put(skb,pkt_len), (pkt_len + 1) >> 1); |
ioaddr | 539 | drivers/net/fmv18x.c | if ((inb(ioaddr + RX_MODE) & 0x40) == 0x40) |
ioaddr | 541 | drivers/net/fmv18x.c | (void)inw(ioaddr + DATAPORT); /* dummy status read */ |
ioaddr | 542 | drivers/net/fmv18x.c | outb(0x05, ioaddr + 14); |
ioaddr | 547 | drivers/net/fmv18x.c | dev->name, inb(ioaddr + RX_MODE), i); |
ioaddr | 556 | drivers/net/fmv18x.c | int ioaddr = dev->base_addr; |
ioaddr | 564 | drivers/net/fmv18x.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 569 | drivers/net/fmv18x.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 574 | drivers/net/fmv18x.c | outb(0x00, ioaddr + FJ_CONFIG1); |
ioaddr | 602 | drivers/net/fmv18x.c | short ioaddr = dev->base_addr; |
ioaddr | 612 | drivers/net/fmv18x.c | outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ |
ioaddr | 615 | drivers/net/fmv18x.c | outb(2, ioaddr + RX_MODE); /* Disable promiscuous, use normal mode */ |
ioaddr | 96 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr); |
ioaddr | 135 | drivers/net/hp-plus.c | int ioaddr = hpplus_portlist[i]; |
ioaddr | 136 | drivers/net/hp-plus.c | if (check_region(ioaddr, HP_IO_EXTENT)) |
ioaddr | 138 | drivers/net/hp-plus.c | if (hpp_probe1(dev, ioaddr) == 0) |
ioaddr | 147 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr) |
ioaddr | 156 | drivers/net/hp-plus.c | if (inw(ioaddr + HP_ID) != 0x4850 |
ioaddr | 157 | drivers/net/hp-plus.c | || (inw(ioaddr + HP_PAGING) & 0xfff0) != 0x5300) |
ioaddr | 169 | drivers/net/hp-plus.c | printk("%s: %s at %#3x,", dev->name, name, ioaddr); |
ioaddr | 172 | drivers/net/hp-plus.c | outw(MAC_Page, ioaddr + HP_PAGING); |
ioaddr | 175 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
ioaddr | 180 | drivers/net/hp-plus.c | checksum += inb(ioaddr + 14); |
ioaddr | 187 | drivers/net/hp-plus.c | outw(ID_Page, ioaddr + HP_PAGING); |
ioaddr | 188 | drivers/net/hp-plus.c | printk(" ID %4.4x", inw(ioaddr + 12)); |
ioaddr | 198 | drivers/net/hp-plus.c | request_region(ioaddr, HP_IO_EXTENT,"hp-plus"); |
ioaddr | 201 | drivers/net/hp-plus.c | outw(HW_Page, ioaddr + HP_PAGING); |
ioaddr | 203 | drivers/net/hp-plus.c | int irq = inb(ioaddr + 13) & 0x0f; |
ioaddr | 204 | drivers/net/hp-plus.c | int option = inw(ioaddr + HPP_OPTION); |
ioaddr | 208 | drivers/net/hp-plus.c | mem_start = inw(ioaddr + 9) << 8; |
ioaddr | 217 | drivers/net/hp-plus.c | outw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14); |
ioaddr | 220 | drivers/net/hp-plus.c | dev->base_addr = ioaddr + NIC_OFFSET; |
ioaddr | 247 | drivers/net/hp-plus.c | outw(Perf_Page, ioaddr + HP_PAGING); |
ioaddr | 250 | drivers/net/hp-plus.c | outw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION); |
ioaddr | 258 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 266 | drivers/net/hp-plus.c | option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 267 | drivers/net/hp-plus.c | outw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 270 | drivers/net/hp-plus.c | outw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 273 | drivers/net/hp-plus.c | outw(HW_Page, ioaddr + HP_PAGING); |
ioaddr | 274 | drivers/net/hp-plus.c | outw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14); |
ioaddr | 277 | drivers/net/hp-plus.c | outw(Perf_Page, ioaddr + HP_PAGING); |
ioaddr | 287 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 288 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 294 | drivers/net/hp-plus.c | ioaddr + HPP_OPTION); |
ioaddr | 303 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 304 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 308 | drivers/net/hp-plus.c | outw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 313 | drivers/net/hp-plus.c | outw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 318 | drivers/net/hp-plus.c | if ((inb_p(ioaddr+NIC_OFFSET+EN0_ISR) & ENISR_RESET) == 0) |
ioaddr | 331 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 333 | drivers/net/hp-plus.c | outw((ring_page<<8), ioaddr + HPP_IN_ADDR); |
ioaddr | 334 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); |
ioaddr | 342 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 345 | drivers/net/hp-plus.c | outw(ring_offset, ioaddr + HPP_IN_ADDR); |
ioaddr | 346 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
ioaddr | 348 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
ioaddr | 356 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 357 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 359 | drivers/net/hp-plus.c | outw((ring_page<<8), ioaddr + HPP_IN_ADDR); |
ioaddr | 360 | drivers/net/hp-plus.c | outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION); |
ioaddr | 362 | drivers/net/hp-plus.c | outw(option_reg, ioaddr + HPP_OPTION); |
ioaddr | 369 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 370 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 372 | drivers/net/hp-plus.c | outw(ring_offset, ioaddr + HPP_IN_ADDR); |
ioaddr | 374 | drivers/net/hp-plus.c | outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION); |
ioaddr | 381 | drivers/net/hp-plus.c | outw(option_reg, ioaddr + HPP_OPTION); |
ioaddr | 390 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 391 | drivers/net/hp-plus.c | outw(start_page << 8, ioaddr + HPP_OUT_ADDR); |
ioaddr | 392 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
ioaddr | 400 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 401 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 403 | drivers/net/hp-plus.c | outw(start_page << 8, ioaddr + HPP_OUT_ADDR); |
ioaddr | 404 | drivers/net/hp-plus.c | outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION); |
ioaddr | 406 | drivers/net/hp-plus.c | outw(option_reg, ioaddr + HPP_OPTION); |
ioaddr | 465 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 468 | drivers/net/hp-plus.c | release_region(ioaddr, HP_IO_EXTENT); |
ioaddr | 58 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr); |
ioaddr | 96 | drivers/net/hp.c | int ioaddr = hppclan_portlist[i]; |
ioaddr | 97 | drivers/net/hp.c | if (check_region(ioaddr, HP_IO_EXTENT)) |
ioaddr | 99 | drivers/net/hp.c | if (hp_probe1(dev, ioaddr) == 0) |
ioaddr | 107 | drivers/net/hp.c | int hp_probe1(struct device *dev, int ioaddr) |
ioaddr | 116 | drivers/net/hp.c | if (inb(ioaddr) != 0x08 |
ioaddr | 117 | drivers/net/hp.c | || inb(ioaddr+1) != 0x00 |
ioaddr | 118 | drivers/net/hp.c | || inb(ioaddr+2) != 0x09 |
ioaddr | 119 | drivers/net/hp.c | || inb(ioaddr+14) == 0x57) |
ioaddr | 124 | drivers/net/hp.c | if ((board_id = inb(ioaddr + HP_ID)) & 0x80) { |
ioaddr | 141 | drivers/net/hp.c | printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); |
ioaddr | 144 | drivers/net/hp.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 156 | drivers/net/hp.c | outb_p(irqmap[irq] | HP_RUN, ioaddr + HP_CONFIGURE); |
ioaddr | 157 | drivers/net/hp.c | outb_p( 0x00 | HP_RUN, ioaddr + HP_CONFIGURE); |
ioaddr | 187 | drivers/net/hp.c | request_region(ioaddr, HP_IO_EXTENT,"hp"); |
ioaddr | 190 | drivers/net/hp.c | dev->base_addr = ioaddr + NIC_OFFSET; |
ioaddr | 431 | drivers/net/hp.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 436 | drivers/net/hp.c | release_region(ioaddr, HP_IO_EXTENT); |
ioaddr | 190 | drivers/net/hp100.c | static int hp100_probe1( struct device *dev, int ioaddr, int bus ); |
ioaddr | 197 | drivers/net/hp100.c | static void hp100_clear_stats( int ioaddr ); |
ioaddr | 215 | drivers/net/hp100.c | int ioaddr; |
ioaddr | 255 | drivers/net/hp100.c | PCI_BASE_ADDRESS_0, &ioaddr ); |
ioaddr | 257 | drivers/net/hp100.c | ioaddr &= ~3; /* remove I/O space marker in bit 0. */ |
ioaddr | 259 | drivers/net/hp100.c | if ( check_region( ioaddr, HP100_REGION_SIZE ) ) continue; |
ioaddr | 273 | drivers/net/hp100.c | printk( "hp100: PCI adapter found at 0x%x\n", ioaddr ); |
ioaddr | 275 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_PCI ) == 0 ) return 0; |
ioaddr | 283 | drivers/net/hp100.c | for ( ioaddr = 0x1c38; EISA_bus && ioaddr < 0x10000; ioaddr += 0x400 ) |
ioaddr | 285 | drivers/net/hp100.c | if ( check_region( ioaddr, HP100_REGION_SIZE ) ) continue; |
ioaddr | 286 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_EISA ) == 0 ) return 0; |
ioaddr | 291 | drivers/net/hp100.c | for ( ioaddr = 0x100; ioaddr < 0x400; ioaddr += 0x20 ) |
ioaddr | 293 | drivers/net/hp100.c | if ( check_region( ioaddr, HP100_REGION_SIZE ) ) continue; |
ioaddr | 294 | drivers/net/hp100.c | if ( hp100_probe1( dev, ioaddr, HP100_BUS_ISA ) == 0 ) return 0; |
ioaddr | 300 | drivers/net/hp100.c | static int hp100_probe1( struct device *dev, int ioaddr, int bus ) |
ioaddr | 319 | drivers/net/hp100.c | if ( inb( ioaddr + 0 ) != HP100_HW_ID_0 || |
ioaddr | 320 | drivers/net/hp100.c | inb( ioaddr + 1 ) != HP100_HW_ID_1 || |
ioaddr | 321 | drivers/net/hp100.c | ( inb( ioaddr + 2 ) & 0xf0 ) != HP100_HW_ID_2_REVA || |
ioaddr | 322 | drivers/net/hp100.c | inb( ioaddr + 3 ) != HP100_HW_ID_3 ) |
ioaddr | 325 | drivers/net/hp100.c | dev -> base_addr = ioaddr; |
ioaddr | 328 | drivers/net/hp100.c | printk( "hp100_probe1: card found at port 0x%x\n", ioaddr ); |
ioaddr | 347 | drivers/net/hp100.c | printk( "hp100_probe: bad EISA ID checksum at base port 0x%x\n", ioaddr ); |
ioaddr | 356 | drivers/net/hp100.c | printk( "hp100_probe1: card at port 0x%x isn't known (id = 0x%x)\n", ioaddr, eisa_id ); |
ioaddr | 363 | drivers/net/hp100.c | eid -> name, ioaddr ); |
ioaddr | 372 | drivers/net/hp100.c | eid -> name, ioaddr ); |
ioaddr | 420 | drivers/net/hp100.c | dev -> base_addr = ioaddr; |
ioaddr | 439 | drivers/net/hp100.c | hp100_clear_stats( ioaddr ); |
ioaddr | 446 | drivers/net/hp100.c | dev -> name, lp -> id -> name, ioaddr, dev -> irq ); |
ioaddr | 488 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 550 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 577 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 681 | drivers/net/hp100.c | outsl( ioaddr + HP100_REG_DATA32, skb -> data, ( skb -> len + 3 ) >> 2 ); |
ioaddr | 707 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 775 | drivers/net/hp100.c | insl( ioaddr + HP100_REG_DATA32, ptr, ( pkt_len + 3 ) >> 2 ); |
ioaddr | 803 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 813 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 830 | drivers/net/hp100.c | static void hp100_clear_stats( int ioaddr ) |
ioaddr | 851 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 897 | drivers/net/hp100.c | int ioaddr; |
ioaddr | 901 | drivers/net/hp100.c | ioaddr = dev -> base_addr; |
ioaddr | 939 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 963 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 984 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 999 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 1023 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 1048 | drivers/net/hp100.c | int ioaddr = dev -> base_addr; |
ioaddr | 341 | drivers/net/hp100.h | inb( ioaddr + HP100_REG_##reg ) |
ioaddr | 343 | drivers/net/hp100.h | inw( ioaddr + HP100_REG_##reg ) |
ioaddr | 345 | drivers/net/hp100.h | inl( ioaddr + HP100_REG_##reg ) |
ioaddr | 347 | drivers/net/hp100.h | outb( data, ioaddr + HP100_REG_##reg ) |
ioaddr | 349 | drivers/net/hp100.h | outw( data, ioaddr + HP100_REG_##reg ) |
ioaddr | 351 | drivers/net/hp100.h | outl( data, ioaddr + HP100_REG_##reg ) |
ioaddr | 353 | drivers/net/hp100.h | outb( inb( ioaddr + HP100_REG_##reg ) | (data), ioaddr + HP100_REG_##reg ) |
ioaddr | 355 | drivers/net/hp100.h | outw( inw( ioaddr + HP100_REG_##reg ) | (data), ioaddr + HP100_REG_##reg ) |
ioaddr | 357 | drivers/net/hp100.h | outb( inb( ioaddr + HP100_REG_##reg ) & (data), ioaddr + HP100_REG_##reg ) |
ioaddr | 359 | drivers/net/hp100.h | outw( inw( ioaddr + HP100_REG_##reg ) & (data), ioaddr + HP100_REG_##reg ) |
ioaddr | 362 | drivers/net/hp100.h | outw( HP100_PAGE_##page, ioaddr + HP100_REG_PAGING ) |
ioaddr | 364 | drivers/net/hp100.h | outw( HP100_INT_EN | HP100_RESET_LB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 366 | drivers/net/hp100.h | outw( HP100_INT_EN | HP100_SET_LB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 368 | drivers/net/hp100.h | outw( HP100_MMAP_DIS | HP100_RESET_HB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 370 | drivers/net/hp100.h | outw( HP100_MMAP_DIS | HP100_SET_HB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 372 | drivers/net/hp100.h | outw( HP100_HW_RST | HP100_RESET_LB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 374 | drivers/net/hp100.h | outw( HP100_HW_RST | HP100_SET_LB, ioaddr + HP100_REG_OPTION_LSW ) |
ioaddr | 57 | drivers/net/lance.c | void lance_probe1(int ioaddr); |
ioaddr | 338 | drivers/net/lance.c | int ioaddr = *port; |
ioaddr | 340 | drivers/net/lance.c | if ( check_region(ioaddr, LANCE_TOTAL_SIZE) == 0) { |
ioaddr | 343 | drivers/net/lance.c | char offset15, offset14 = inb(ioaddr + 14); |
ioaddr | 346 | drivers/net/lance.c | ((offset15 = inb(ioaddr + 15)) == 0x57 || offset15 == 0x44)) |
ioaddr | 347 | drivers/net/lance.c | lance_probe1(ioaddr); |
ioaddr | 354 | drivers/net/lance.c | void lance_probe1(int ioaddr) |
ioaddr | 376 | drivers/net/lance.c | && ioaddr_table[inb(hp_port) & 3] == ioaddr) |
ioaddr | 380 | drivers/net/lance.c | hpJ2405A = (inb(ioaddr) == 0x08 && inb(ioaddr+1) == 0x00 |
ioaddr | 381 | drivers/net/lance.c | && inb(ioaddr+2) == 0x09); |
ioaddr | 384 | drivers/net/lance.c | reset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */ |
ioaddr | 389 | drivers/net/lance.c | outw(reset_val, ioaddr+LANCE_RESET); |
ioaddr | 391 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */ |
ioaddr | 392 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) != 0x0004) |
ioaddr | 396 | drivers/net/lance.c | outw(88, ioaddr+LANCE_ADDR); |
ioaddr | 397 | drivers/net/lance.c | if (inw(ioaddr+LANCE_ADDR) != 88) { |
ioaddr | 400 | drivers/net/lance.c | int chip_version = inw(ioaddr+LANCE_DATA); |
ioaddr | 401 | drivers/net/lance.c | outw(89, ioaddr+LANCE_ADDR); |
ioaddr | 402 | drivers/net/lance.c | chip_version |= inw(ioaddr+LANCE_DATA) << 16; |
ioaddr | 416 | drivers/net/lance.c | printk("%s: %s at %#3x,", dev->name, chipname, ioaddr); |
ioaddr | 421 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 423 | drivers/net/lance.c | dev->base_addr = ioaddr; |
ioaddr | 424 | drivers/net/lance.c | request_region(ioaddr, LANCE_TOTAL_SIZE, chip_table[lance_version].name); |
ioaddr | 448 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 449 | drivers/net/lance.c | inw(ioaddr+LANCE_ADDR); |
ioaddr | 450 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 451 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 452 | drivers/net/lance.c | inw(ioaddr+LANCE_ADDR); |
ioaddr | 453 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 454 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 455 | drivers/net/lance.c | inw(ioaddr+LANCE_ADDR); |
ioaddr | 470 | drivers/net/lance.c | short reset_val = inw(ioaddr+LANCE_RESET); |
ioaddr | 476 | drivers/net/lance.c | outw(8, ioaddr+LANCE_ADDR); |
ioaddr | 477 | drivers/net/lance.c | bus_info = inw(ioaddr+LANCE_BUS_IF); |
ioaddr | 501 | drivers/net/lance.c | outw(0x0041, ioaddr+LANCE_DATA); |
ioaddr | 513 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0100) |
ioaddr | 535 | drivers/net/lance.c | outw(0x7f04, ioaddr+LANCE_DATA); /* Clear the memory error bits. */ |
ioaddr | 542 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 544 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0900) |
ioaddr | 546 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0100) { |
ioaddr | 564 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 565 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 586 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 600 | drivers/net/lance.c | inw(ioaddr+LANCE_RESET); |
ioaddr | 610 | drivers/net/lance.c | outw(0, ioaddr+LANCE_RESET); |
ioaddr | 614 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 615 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 625 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 626 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 627 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 628 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 630 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_ADDR); |
ioaddr | 631 | drivers/net/lance.c | outw(0x0915, ioaddr+LANCE_DATA); |
ioaddr | 633 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 634 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 641 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0100) |
ioaddr | 647 | drivers/net/lance.c | outw(0x0042, ioaddr+LANCE_DATA); |
ioaddr | 651 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
ioaddr | 731 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 740 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 742 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 743 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); |
ioaddr | 779 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 781 | drivers/net/lance.c | inw(ioaddr+LANCE_DATA)); |
ioaddr | 782 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); |
ioaddr | 833 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 834 | drivers/net/lance.c | outw(0x0048, ioaddr+LANCE_DATA); |
ioaddr | 856 | drivers/net/lance.c | int csr0, ioaddr, boguscnt=10; |
ioaddr | 864 | drivers/net/lance.c | ioaddr = dev->base_addr; |
ioaddr | 972 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
ioaddr | 1059 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 1066 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 1067 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 1069 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 1073 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 1077 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); |
ioaddr | 1093 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 1100 | drivers/net/lance.c | saved_addr = inw(ioaddr+LANCE_ADDR); |
ioaddr | 1101 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 1102 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 1103 | drivers/net/lance.c | outw(saved_addr, ioaddr+LANCE_ADDR); |
ioaddr | 1115 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 1117 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 1118 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); /* Temporarily stop the lance. */ |
ioaddr | 1123 | drivers/net/lance.c | outw(15, ioaddr+LANCE_ADDR); |
ioaddr | 1124 | drivers/net/lance.c | outw(0x8000, ioaddr+LANCE_DATA); /* Set promiscuous mode */ |
ioaddr | 1134 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
ioaddr | 1135 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
ioaddr | 1137 | drivers/net/lance.c | outw(15, ioaddr+LANCE_ADDR); |
ioaddr | 1138 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); /* Unset promiscuous mode */ |
ioaddr | 100 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr); |
ioaddr | 191 | drivers/net/ne.c | int ioaddr = netcard_portlist[i]; |
ioaddr | 192 | drivers/net/ne.c | if (check_region(ioaddr, NE_IO_EXTENT)) |
ioaddr | 194 | drivers/net/ne.c | if (ne_probe1(dev, ioaddr) == 0) |
ioaddr | 202 | drivers/net/ne.c | static int ne_probe1(struct device *dev, int ioaddr) |
ioaddr | 210 | drivers/net/ne.c | int reg0 = inb_p(ioaddr); |
ioaddr | 218 | drivers/net/ne.c | outb_p(E8390_NODMA+E8390_PAGE1+E8390_STOP, ioaddr + E8390_CMD); |
ioaddr | 219 | drivers/net/ne.c | regd = inb_p(ioaddr + 0x0d); |
ioaddr | 220 | drivers/net/ne.c | outb_p(0xff, ioaddr + 0x0d); |
ioaddr | 221 | drivers/net/ne.c | outb_p(E8390_NODMA+E8390_PAGE0, ioaddr + E8390_CMD); |
ioaddr | 222 | drivers/net/ne.c | inb_p(ioaddr + EN0_COUNTER0); /* Clear the counter by reading. */ |
ioaddr | 223 | drivers/net/ne.c | if (inb_p(ioaddr + EN0_COUNTER0) != 0) { |
ioaddr | 224 | drivers/net/ne.c | outb_p(reg0, ioaddr); |
ioaddr | 225 | drivers/net/ne.c | outb_p(regd, ioaddr + 0x0d); /* Restore the old values. */ |
ioaddr | 233 | drivers/net/ne.c | printk("NE*000 ethercard probe at %#3x:", ioaddr); |
ioaddr | 239 | drivers/net/ne.c | outb(inb(ioaddr + NE_RESET), ioaddr + NE_RESET); |
ioaddr | 241 | drivers/net/ne.c | while ((inb_p(ioaddr + EN0_ISR) & ENISR_RESET) == 0) |
ioaddr | 247 | drivers/net/ne.c | outb_p(0xff, ioaddr + EN0_ISR); /* Ack all intr. */ |
ioaddr | 271 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
ioaddr | 275 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
ioaddr | 276 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
ioaddr | 283 | drivers/net/ne.c | outb_p(0x49, ioaddr + EN0_DCFG); |
ioaddr | 346 | drivers/net/ne.c | outb_p(0x50, ioaddr + EN0_IMR); /* Enable one interrupt. */ |
ioaddr | 347 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_RCNTLO); |
ioaddr | 348 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_RCNTHI); |
ioaddr | 349 | drivers/net/ne.c | outb_p(E8390_RREAD+E8390_START, ioaddr); /* Trigger it... */ |
ioaddr | 350 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_IMR); /* Mask it again. */ |
ioaddr | 374 | drivers/net/ne.c | dev->base_addr = ioaddr; |
ioaddr | 383 | drivers/net/ne.c | request_region(ioaddr, NE_IO_EXTENT, name); |
ioaddr | 391 | drivers/net/ne.c | dev->name, name, ioaddr, dev->irq); |
ioaddr | 190 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr); |
ioaddr | 377 | drivers/net/ni52.c | int ioaddr = *port; |
ioaddr | 378 | drivers/net/ni52.c | if (check_region(ioaddr, NI52_TOTAL_SIZE)) |
ioaddr | 380 | drivers/net/ni52.c | if( !(inb(ioaddr+NI52_MAGIC1) == NI52_MAGICVAL1) || |
ioaddr | 381 | drivers/net/ni52.c | !(inb(ioaddr+NI52_MAGIC2) == NI52_MAGICVAL2)) |
ioaddr | 384 | drivers/net/ni52.c | dev->base_addr = ioaddr; |
ioaddr | 385 | drivers/net/ni52.c | if (ni52_probe1(dev, ioaddr) == 0) |
ioaddr | 392 | drivers/net/ni52.c | int ioaddr = dev->base_addr; |
ioaddr | 393 | drivers/net/ni52.c | if (check_region(ioaddr, NI52_TOTAL_SIZE)) |
ioaddr | 395 | drivers/net/ni52.c | if( !(inb(ioaddr+NI52_MAGIC1) == NI52_MAGICVAL1) || |
ioaddr | 396 | drivers/net/ni52.c | !(inb(ioaddr+NI52_MAGIC2) == NI52_MAGICVAL2)) |
ioaddr | 398 | drivers/net/ni52.c | if (ni52_probe1(dev, ioaddr) == 0) |
ioaddr | 409 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr) |
ioaddr | 422 | drivers/net/ni52.c | request_region(ioaddr,NI52_TOTAL_SIZE,"ni5210"); |
ioaddr | 200 | drivers/net/ni65.c | int ioaddr = *port; |
ioaddr | 202 | drivers/net/ni65.c | if (check_region(ioaddr, NI65_TOTAL_SIZE)) |
ioaddr | 204 | drivers/net/ni65.c | if( !(inb(ioaddr+L_EBASE+6) == NI65_ID0) || |
ioaddr | 205 | drivers/net/ni65.c | !(inb(ioaddr+L_EBASE+7) == NI65_ID1) ) |
ioaddr | 207 | drivers/net/ni65.c | if (ni65_probe1(&dev, ioaddr) == 0) |
ioaddr | 220 | drivers/net/ni65.c | static int ni65_probe1(struct device **dev1,int ioaddr) |
ioaddr | 227 | drivers/net/ni65.c | if(inb(ioaddr+L_EBASE+0) != NI65_ADDR0 || inb(ioaddr+L_EBASE+1) != NI65_ADDR1 |
ioaddr | 228 | drivers/net/ni65.c | || inb(ioaddr+L_EBASE+2) != NI65_ADDR2) |
ioaddr | 238 | drivers/net/ni65.c | dev->base_addr = ioaddr; |
ioaddr | 270 | drivers/net/ni65.c | request_region(ioaddr,NI65_TOTAL_SIZE,"ni6510"); |
ioaddr | 940 | drivers/net/pi2.c | static int hw_probe(int ioaddr) |
ioaddr | 949 | drivers/net/pi2.c | base = ioaddr & 0x3f0; |
ioaddr | 1212 | drivers/net/pi2.c | int ioaddr = 0; |
ioaddr | 1221 | drivers/net/pi2.c | ioaddr = *port; |
ioaddr | 1223 | drivers/net/pi2.c | if (check_region(ioaddr, PI_TOTAL_SIZE) == 0) { |
ioaddr | 1224 | drivers/net/pi2.c | printk("PI: Probing for card at address %#3x\n",ioaddr); |
ioaddr | 1225 | drivers/net/pi2.c | card_type = hw_probe(ioaddr); |
ioaddr | 1231 | drivers/net/pi2.c | printk("PI: Found a PI card at address %#3x\n", ioaddr); |
ioaddr | 1234 | drivers/net/pi2.c | printk("PI: Found a PI2 card at address %#3x\n", ioaddr); |
ioaddr | 1252 | drivers/net/pi2.c | pi0a.base_addr = ioaddr + 2; |
ioaddr | 1257 | drivers/net/pi2.c | pi0b.base_addr = ioaddr; |
ioaddr | 1302 | drivers/net/pi2.c | short ioaddr; |
ioaddr | 1308 | drivers/net/pi2.c | ioaddr = dev->base_addr; |
ioaddr | 1410 | drivers/net/pi2.c | request_region(ioaddr & 0x3f0, PI_TOTAL_SIZE, "pi2" ); |
ioaddr | 134 | drivers/net/pt.c | static int hw_probe(int ioaddr); |
ioaddr | 519 | drivers/net/pt.c | int ioaddr = 0; |
ioaddr | 528 | drivers/net/pt.c | ioaddr = *port; |
ioaddr | 530 | drivers/net/pt.c | if (check_region(ioaddr, PT_TOTAL_SIZE) == 0) { |
ioaddr | 531 | drivers/net/pt.c | printk("PT: Probing for card at address %#3x\n", ioaddr); |
ioaddr | 532 | drivers/net/pt.c | card_type = hw_probe(ioaddr); |
ioaddr | 536 | drivers/net/pt.c | printk("PT: Found a PT at address %#3x\n",ioaddr); |
ioaddr | 555 | drivers/net/pt.c | pt0a.base_addr = ioaddr + CHANA; |
ioaddr | 563 | drivers/net/pt.c | pt0b.base_addr = ioaddr + CHANB; |
ioaddr | 578 | drivers/net/pt.c | static int hw_probe(int ioaddr) |
ioaddr | 585 | drivers/net/pt.c | inb_p(ioaddr + TMR1CLR); |
ioaddr | 586 | drivers/net/pt.c | inb_p(ioaddr + TMR2CLR); |
ioaddr | 589 | drivers/net/pt.c | outb_p(SC0 | LSB_MSB | MODE3, ioaddr + TMRCMD); |
ioaddr | 590 | drivers/net/pt.c | outb_p(0x00, ioaddr + TMR0); |
ioaddr | 591 | drivers/net/pt.c | outb_p(0x18, ioaddr + TMR0); |
ioaddr | 594 | drivers/net/pt.c | outb_p(SC1 | LSB_MSB | MODE0, ioaddr + TMRCMD); |
ioaddr | 595 | drivers/net/pt.c | outb_p((time << 1) & 0xff, ioaddr + TMR1); |
ioaddr | 596 | drivers/net/pt.c | outb_p((time >> 7) & 0xff, ioaddr + TMR1); |
ioaddr | 601 | drivers/net/pt.c | outb_p(SC1, ioaddr + TMRCMD); |
ioaddr | 602 | drivers/net/pt.c | a = inb_p(ioaddr + TMR1); |
ioaddr | 603 | drivers/net/pt.c | b = inb_p(ioaddr + TMR1); |
ioaddr | 609 | drivers/net/pt.c | outb_p(SC1, ioaddr + TMRCMD); |
ioaddr | 610 | drivers/net/pt.c | a = inb_p(ioaddr + TMR1); |
ioaddr | 611 | drivers/net/pt.c | b = inb_p(ioaddr + TMR1); |
ioaddr | 616 | drivers/net/pt.c | inb_p(ioaddr + TMR1CLR); |
ioaddr | 624 | drivers/net/pt.c | inb_p(ioaddr + TMR1CLR); |
ioaddr | 625 | drivers/net/pt.c | inb_p(ioaddr + TMR2CLR); |
ioaddr | 627 | drivers/net/pt.c | outb_p(SC1 | LSB_MSB | MODE0, ioaddr + TMRCMD); |
ioaddr | 628 | drivers/net/pt.c | inb_p(ioaddr + TMR1CLR); |
ioaddr | 630 | drivers/net/pt.c | outb_p(SC2 | LSB_MSB | MODE0, ioaddr + TMRCMD); |
ioaddr | 632 | drivers/net/pt.c | inb_p(ioaddr + TMR1CLR); |
ioaddr | 769 | drivers/net/pt.c | short ioaddr; |
ioaddr | 775 | drivers/net/pt.c | ioaddr = dev->base_addr; |
ioaddr | 880 | drivers/net/pt.c | request_region(ioaddr & 0x3f0, PT_TOTAL_SIZE, "pt" ); |
ioaddr | 81 | drivers/net/seeq8005.c | static int seeq8005_probe1(struct device *dev, int ioaddr); |
ioaddr | 121 | drivers/net/seeq8005.c | int ioaddr = seeq8005_portlist[i]; |
ioaddr | 122 | drivers/net/seeq8005.c | if (check_region(ioaddr, SEEQ8005_IO_EXTENT)) |
ioaddr | 124 | drivers/net/seeq8005.c | if (seeq8005_probe1(dev, ioaddr) == 0) |
ioaddr | 136 | drivers/net/seeq8005.c | static int seeq8005_probe1(struct device *dev, int ioaddr) |
ioaddr | 148 | drivers/net/seeq8005.c | printk("seeq8005: probing at 0x%x\n",ioaddr); |
ioaddr | 279 | drivers/net/seeq8005.c | printk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr); |
ioaddr | 282 | drivers/net/seeq8005.c | dev->base_addr = ioaddr; |
ioaddr | 317 | drivers/net/seeq8005.c | request_region(ioaddr, SEEQ8005_IO_EXTENT,"seeq8005"); |
ioaddr | 376 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 425 | drivers/net/seeq8005.c | int ioaddr, status, boguscount = 0; |
ioaddr | 436 | drivers/net/seeq8005.c | ioaddr = dev->base_addr; |
ioaddr | 478 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 574 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 618 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 636 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 695 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 740 | drivers/net/seeq8005.c | int ioaddr = dev->base_addr; |
ioaddr | 15 | drivers/net/seeq8005.h | #define SEEQ_B (ioaddr) |
ioaddr | 158 | drivers/net/sk_g16.c | #define SK_POS0 ioaddr /* Card-ID Low (R) */ |
ioaddr | 159 | drivers/net/sk_g16.c | #define SK_POS1 ioaddr+1 /* Card-ID High (R) */ |
ioaddr | 160 | drivers/net/sk_g16.c | #define SK_POS2 ioaddr+2 /* Card-Enable, Boot-ROM Disable (RW) */ |
ioaddr | 161 | drivers/net/sk_g16.c | #define SK_POS3 ioaddr+3 /* Base address of RAM */ |
ioaddr | 162 | drivers/net/sk_g16.c | #define SK_POS4 ioaddr+4 /* IRQ */ |
ioaddr | 330 | drivers/net/sk_g16.c | #define check_region(ioaddr, size) 0 |
ioaddr | 331 | drivers/net/sk_g16.c | #define request_region(ioaddr, size,name) do ; while (0) |
ioaddr | 485 | drivers/net/sk_g16.c | static int SK_probe(struct device *dev, short ioaddr); |
ioaddr | 551 | drivers/net/sk_g16.c | int ioaddr = 0; /* I/O port address used for POS regs */ |
ioaddr | 581 | drivers/net/sk_g16.c | ioaddr = *port; /* we need ioaddr for accessing POS regs */ |
ioaddr | 585 | drivers/net/sk_g16.c | if (check_region(ioaddr, ETHERCARD_TOTAL_SIZE)) |
ioaddr | 598 | drivers/net/sk_g16.c | dev->base_addr = ioaddr; /* Set I/O Port Address */ |
ioaddr | 600 | drivers/net/sk_g16.c | if (SK_probe(dev, ioaddr) == 0) |
ioaddr | 633 | drivers/net/sk_g16.c | int SK_probe(struct device *dev, short ioaddr) |
ioaddr | 782 | drivers/net/sk_g16.c | request_region(ioaddr, ETHERCARD_TOTAL_SIZE,"sk_g16"); |
ioaddr | 864 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
ioaddr | 1997 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
ioaddr | 100 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr); |
ioaddr | 111 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
ioaddr | 141 | drivers/net/skeleton.c | int ioaddr = netcard_portlist[i]; |
ioaddr | 142 | drivers/net/skeleton.c | if (check_region(ioaddr, NETCARD_IO_EXTENT)) |
ioaddr | 144 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
ioaddr | 157 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, int ioaddr) |
ioaddr | 167 | drivers/net/skeleton.c | if (inb(ioaddr + 0) != SA_ADDR0 |
ioaddr | 168 | drivers/net/skeleton.c | || inb(ioaddr + 1) != SA_ADDR1 |
ioaddr | 169 | drivers/net/skeleton.c | || inb(ioaddr + 2) != SA_ADDR2) { |
ioaddr | 188 | drivers/net/skeleton.c | printk(KERN_INFO "%s: %s found at %#3x, ", dev->name, cardname, ioaddr); |
ioaddr | 191 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
ioaddr | 195 | drivers/net/skeleton.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 249 | drivers/net/skeleton.c | outw(0x1234, ioaddr + 8); |
ioaddr | 285 | drivers/net/skeleton.c | request_region(ioaddr, NETCARD_IO_EXTENT, cardname); |
ioaddr | 311 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 331 | drivers/net/skeleton.c | outb(0x00, ioaddr); |
ioaddr | 347 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 383 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
ioaddr | 389 | drivers/net/skeleton.c | if (inw(ioaddr) == /*RU*/81) |
ioaddr | 404 | drivers/net/skeleton.c | int ioaddr, status, boguscount = 0; |
ioaddr | 412 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
ioaddr | 414 | drivers/net/skeleton.c | status = inw(ioaddr + 0); |
ioaddr | 441 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 445 | drivers/net/skeleton.c | int status = inw(ioaddr); |
ioaddr | 446 | drivers/net/skeleton.c | int pkt_len = inw(ioaddr); |
ioaddr | 474 | drivers/net/skeleton.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 494 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 506 | drivers/net/skeleton.c | outw(0x00, ioaddr+0); /* Release the physical interrupt line. */ |
ioaddr | 529 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 533 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
ioaddr | 549 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 553 | drivers/net/skeleton.c | outw(MULTICAST|PROMISC, ioaddr); |
ioaddr | 560 | drivers/net/skeleton.c | outw(MULTICAST, ioaddr); |
ioaddr | 567 | drivers/net/skeleton.c | outw(MULTICAST, ioaddr); |
ioaddr | 570 | drivers/net/skeleton.c | outw(0, ioaddr); |
ioaddr | 66 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr); |
ioaddr | 107 | drivers/net/smc-ultra.c | int ioaddr = ultra_portlist[i]; |
ioaddr | 108 | drivers/net/smc-ultra.c | if (check_region(ioaddr, ULTRA_IO_EXTENT)) |
ioaddr | 110 | drivers/net/smc-ultra.c | if (ultra_probe1(dev, ioaddr) == 0) |
ioaddr | 118 | drivers/net/smc-ultra.c | int ultra_probe1(struct device *dev, int ioaddr) |
ioaddr | 127 | drivers/net/smc-ultra.c | unsigned char idreg = inb(ioaddr + 7); |
ioaddr | 128 | drivers/net/smc-ultra.c | unsigned char reg4 = inb(ioaddr + 4) & 0x7f; |
ioaddr | 136 | drivers/net/smc-ultra.c | outb(reg4, ioaddr + 4); |
ioaddr | 139 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
ioaddr | 154 | drivers/net/smc-ultra.c | printk("%s: %s at %#3x,", dev->name, model_name, ioaddr); |
ioaddr | 157 | drivers/net/smc-ultra.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
ioaddr | 161 | drivers/net/smc-ultra.c | outb(0x80 | reg4, ioaddr + 4); |
ioaddr | 164 | drivers/net/smc-ultra.c | outb(0x80 | inb(ioaddr + 0x0c), ioaddr + 0x0c); |
ioaddr | 165 | drivers/net/smc-ultra.c | irqreg = inb(ioaddr + 0xd); |
ioaddr | 166 | drivers/net/smc-ultra.c | addr = inb(ioaddr + 0xb); |
ioaddr | 170 | drivers/net/smc-ultra.c | outb(reg4, ioaddr + 4); |
ioaddr | 194 | drivers/net/smc-ultra.c | request_region(ioaddr, ULTRA_IO_EXTENT, model_name); |
ioaddr | 197 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr+ULTRA_NIC_OFFSET; |
ioaddr | 234 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */ |
ioaddr | 239 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, ioaddr); /* Enable memory, 16 bit mode. */ |
ioaddr | 240 | drivers/net/smc-ultra.c | outb(0x80, ioaddr + 5); |
ioaddr | 241 | drivers/net/smc-ultra.c | outb(0x01, ioaddr + 6); /* Enable interrupts and memory. */ |
ioaddr | 324 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */ |
ioaddr | 332 | drivers/net/smc-ultra.c | outb(0x00, ioaddr + 6); /* Disable interrupts. */ |
ioaddr | 400 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; |
ioaddr | 403 | drivers/net/smc-ultra.c | release_region(ioaddr, ULTRA_IO_EXTENT); |
ioaddr | 287 | drivers/net/smc9194.c | static int smc_probe( int ioaddr ); |
ioaddr | 295 | drivers/net/smc9194.c | static int smc_initcard( struct device *, int ioaddr ); |
ioaddr | 316 | drivers/net/smc9194.c | static void smc_reset( int ioaddr ); |
ioaddr | 319 | drivers/net/smc9194.c | static void smc_enable( int ioaddr ); |
ioaddr | 322 | drivers/net/smc9194.c | static void smc_shutdown( int ioaddr ); |
ioaddr | 327 | drivers/net/smc9194.c | static int smc_findirq( int ioaddr ); |
ioaddr | 335 | drivers/net/smc9194.c | static void smc_setmulticast( int ioaddr, int count, struct dev_mc_list * ); |
ioaddr | 361 | drivers/net/smc9194.c | static void smc_reset( int ioaddr ) |
ioaddr | 366 | drivers/net/smc9194.c | outw( RCR_SOFTRESET, ioaddr + RCR ); |
ioaddr | 373 | drivers/net/smc9194.c | outw( RCR_CLEAR, ioaddr + RCR ); |
ioaddr | 374 | drivers/net/smc9194.c | outw( TCR_CLEAR, ioaddr + TCR ); |
ioaddr | 380 | drivers/net/smc9194.c | outw( inw( ioaddr + CONTROL ) | CTL_AUTO_RELEASE , ioaddr + CONTROL ); |
ioaddr | 384 | drivers/net/smc9194.c | outw( MC_RESET, ioaddr + MMU_CMD ); |
ioaddr | 390 | drivers/net/smc9194.c | outb( 0, ioaddr + INT_MASK ); |
ioaddr | 401 | drivers/net/smc9194.c | static void smc_enable( int ioaddr ) |
ioaddr | 405 | drivers/net/smc9194.c | outw( TCR_NORMAL, ioaddr + TCR ); |
ioaddr | 406 | drivers/net/smc9194.c | outw( RCR_NORMAL, ioaddr + RCR ); |
ioaddr | 410 | drivers/net/smc9194.c | outb( SMC_INTERRUPT_MASK, ioaddr + INT_MASK ); |
ioaddr | 427 | drivers/net/smc9194.c | static void smc_shutdown( int ioaddr ) |
ioaddr | 431 | drivers/net/smc9194.c | outb( 0, ioaddr + INT_MASK ); |
ioaddr | 435 | drivers/net/smc9194.c | outb( RCR_CLEAR, ioaddr + RCR ); |
ioaddr | 436 | drivers/net/smc9194.c | outb( TCR_CLEAR, ioaddr + TCR ); |
ioaddr | 440 | drivers/net/smc9194.c | outw( inw( ioaddr + CONTROL ), CTL_POWERDOWN, ioaddr + CONTROL ); |
ioaddr | 464 | drivers/net/smc9194.c | static void smc_setmulticast( int ioaddr, int count, struct dev_mc_list * addrs ) { |
ioaddr | 498 | drivers/net/smc9194.c | outb( multicast_table[i], ioaddr + MULTICAST1 + i ); |
ioaddr | 550 | drivers/net/smc9194.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 585 | drivers/net/smc9194.c | outw( MC_ALLOC | numPages, ioaddr + MMU_CMD ); |
ioaddr | 602 | drivers/net/smc9194.c | status = inb( ioaddr + INTERRUPT ); |
ioaddr | 605 | drivers/net/smc9194.c | outb( IM_ALLOC_INT, ioaddr + INTERRUPT ); |
ioaddr | 647 | drivers/net/smc9194.c | unsigned short ioaddr; |
ioaddr | 650 | drivers/net/smc9194.c | ioaddr = dev->base_addr; |
ioaddr | 660 | drivers/net/smc9194.c | packet_no = inb( ioaddr + PNR_ARR + 1 ); |
ioaddr | 671 | drivers/net/smc9194.c | outb( packet_no, ioaddr + PNR_ARR ); |
ioaddr | 674 | drivers/net/smc9194.c | outw( PTR_AUTOINC , ioaddr + POINTER ); |
ioaddr | 684 | drivers/net/smc9194.c | outl( (length +6 ) << 16 , ioaddr + DATA_1 ); |
ioaddr | 686 | drivers/net/smc9194.c | outw( 0, ioaddr + DATA_1 ); |
ioaddr | 688 | drivers/net/smc9194.c | outb( (length+6) & 0xFF,ioaddr + DATA_1 ); |
ioaddr | 689 | drivers/net/smc9194.c | outb( (length+6) >> 8 , ioaddr + DATA_1 ); |
ioaddr | 701 | drivers/net/smc9194.c | outsl(ioaddr + DATA_1, buf, length >> 2 ); |
ioaddr | 702 | drivers/net/smc9194.c | outw( *((word *)(buf + (length & 0xFFFFFFFC))),ioaddr +DATA_1); |
ioaddr | 705 | drivers/net/smc9194.c | outsl(ioaddr + DATA_1, buf, length >> 2 ); |
ioaddr | 707 | drivers/net/smc9194.c | outsw(ioaddr + DATA_1 , buf, (length ) >> 1); |
ioaddr | 712 | drivers/net/smc9194.c | outw( 0, ioaddr + DATA_1 ); |
ioaddr | 714 | drivers/net/smc9194.c | outb( buf[length -1 ], ioaddr + DATA_1 ); |
ioaddr | 715 | drivers/net/smc9194.c | outb( 0x20, ioaddr + DATA_1); |
ioaddr | 722 | drivers/net/smc9194.c | outw( MC_ENQUEUE , ioaddr + MMU_CMD ); |
ioaddr | 774 | drivers/net/smc9194.c | int ioaddr = smc_portlist[i]; |
ioaddr | 777 | drivers/net/smc9194.c | if (check_region( ioaddr , SMC_IO_EXTENT)) |
ioaddr | 781 | drivers/net/smc9194.c | if ( smc_probe( ioaddr ) == 0) { |
ioaddr | 782 | drivers/net/smc9194.c | return smc_initcard( dev, ioaddr ); |
ioaddr | 798 | drivers/net/smc9194.c | int smc_findirq( int ioaddr ) |
ioaddr | 819 | drivers/net/smc9194.c | outb( IM_ALLOC_INT, ioaddr + INT_MASK ); |
ioaddr | 825 | drivers/net/smc9194.c | outw( MC_ALLOC | 1, ioaddr + MMU_CMD ); |
ioaddr | 833 | drivers/net/smc9194.c | int_status = inb( ioaddr + INTERRUPT ); |
ioaddr | 854 | drivers/net/smc9194.c | outb( 0, ioaddr + INT_MASK ); |
ioaddr | 880 | drivers/net/smc9194.c | static int smc_probe( int ioaddr ) |
ioaddr | 887 | drivers/net/smc9194.c | bank = inw( ioaddr + BANK_SELECT ); |
ioaddr | 893 | drivers/net/smc9194.c | outw( 0x0, ioaddr + BANK_SELECT ); |
ioaddr | 894 | drivers/net/smc9194.c | bank = inw( ioaddr + BANK_SELECT ); |
ioaddr | 902 | drivers/net/smc9194.c | base_address_register = inw( ioaddr + BASE ); |
ioaddr | 903 | drivers/net/smc9194.c | if ( ioaddr != ( base_address_register >> 3 & 0x3E0 ) ) { |
ioaddr | 906 | drivers/net/smc9194.c | ioaddr, base_address_register >> 3 & 0x3E0 ); |
ioaddr | 916 | drivers/net/smc9194.c | revision_register = inw( ioaddr + REVISION ); |
ioaddr | 920 | drivers/net/smc9194.c | " %x, Contact author. \n", ioaddr, revision_register ); |
ioaddr | 945 | drivers/net/smc9194.c | static int smc_initcard(struct device *dev, int ioaddr) |
ioaddr | 981 | drivers/net/smc9194.c | dev->base_addr = ioaddr; |
ioaddr | 990 | drivers/net/smc9194.c | address = inw( ioaddr + ADDR0 + i ); |
ioaddr | 998 | drivers/net/smc9194.c | memory_info_register = inw( ioaddr + MIR ); |
ioaddr | 999 | drivers/net/smc9194.c | memory_cfg_register = inw( ioaddr + MCR ); |
ioaddr | 1009 | drivers/net/smc9194.c | revision_register = inw( ioaddr + REVISION ); |
ioaddr | 1019 | drivers/net/smc9194.c | configuration_register = inw( ioaddr + CONFIG ); |
ioaddr | 1028 | drivers/net/smc9194.c | smc_reset( ioaddr ); |
ioaddr | 1052 | drivers/net/smc9194.c | dev->irq = smc_findirq( ioaddr ); |
ioaddr | 1056 | drivers/net/smc9194.c | smc_reset( ioaddr ); |
ioaddr | 1080 | drivers/net/smc9194.c | version_string, revision_register & 0xF, ioaddr, dev->irq, |
ioaddr | 1113 | drivers/net/smc9194.c | request_region(ioaddr, SMC_IO_EXTENT, CARDNAME); |
ioaddr | 1171 | drivers/net/smc9194.c | int ioaddr = dev->base_addr; |
ioaddr | 1187 | drivers/net/smc9194.c | smc_reset( ioaddr ); |
ioaddr | 1188 | drivers/net/smc9194.c | smc_enable( ioaddr ); |
ioaddr | 1194 | drivers/net/smc9194.c | outw( inw( ioaddr + CONFIG ) & ~CFG_AUI_SELECT, |
ioaddr | 1195 | drivers/net/smc9194.c | ioaddr + CONFIG ); |
ioaddr | 1198 | drivers/net/smc9194.c | outw( inw( ioaddr + CONFIG ) | CFG_AUI_SELECT, |
ioaddr | 1199 | drivers/net/smc9194.c | ioaddr + CONFIG ); |
ioaddr | 1213 | drivers/net/smc9194.c | outw( address, ioaddr + ADDR0 + i ); |
ioaddr | 1285 | drivers/net/smc9194.c | int ioaddr = dev->base_addr; |
ioaddr | 1314 | drivers/net/smc9194.c | saved_bank = inw( ioaddr + BANK_SELECT ); |
ioaddr | 1317 | drivers/net/smc9194.c | saved_pointer = inw( ioaddr + POINTER ); |
ioaddr | 1319 | drivers/net/smc9194.c | mask = inb( ioaddr + INT_MASK ); |
ioaddr | 1321 | drivers/net/smc9194.c | outb( 0, ioaddr + INT_MASK ); |
ioaddr | 1330 | drivers/net/smc9194.c | status = inb( ioaddr + INTERRUPT ) & mask; |
ioaddr | 1346 | drivers/net/smc9194.c | outb(IM_TX_INT, ioaddr + INTERRUPT ); |
ioaddr | 1350 | drivers/net/smc9194.c | card_stats = inw( ioaddr + COUNTER ); |
ioaddr | 1367 | drivers/net/smc9194.c | outb( IM_TX_EMPTY_INT, ioaddr + INTERRUPT ); |
ioaddr | 1390 | drivers/net/smc9194.c | outb( IM_RX_OVRN_INT, ioaddr + INTERRUPT ); |
ioaddr | 1395 | drivers/net/smc9194.c | outb( IM_ERCV_INT, ioaddr + INTERRUPT ); |
ioaddr | 1402 | drivers/net/smc9194.c | outb( mask, ioaddr + INT_MASK ); |
ioaddr | 1405 | drivers/net/smc9194.c | outw( saved_pointer, ioaddr + POINTER ); |
ioaddr | 1429 | drivers/net/smc9194.c | int ioaddr = dev->base_addr; |
ioaddr | 1436 | drivers/net/smc9194.c | packet_number = inw( ioaddr + FIFO_PORTS ); |
ioaddr | 1446 | drivers/net/smc9194.c | outw( PTR_READ | PTR_RCV | PTR_AUTOINC, ioaddr + POINTER ); |
ioaddr | 1449 | drivers/net/smc9194.c | status = inw( ioaddr + DATA_1 ); |
ioaddr | 1450 | drivers/net/smc9194.c | packet_length = inw( ioaddr + DATA_1 ); |
ioaddr | 1509 | drivers/net/smc9194.c | insl(ioaddr + DATA_1 , data, packet_length >> 2 ); |
ioaddr | 1511 | drivers/net/smc9194.c | insb( ioaddr + DATA_1, data + (packet_length & 0xFFFFFC), |
ioaddr | 1517 | drivers/net/smc9194.c | *(data++) = inb( ioaddr + DATA_1 ); |
ioaddr | 1518 | drivers/net/smc9194.c | insw(ioaddr + DATA_1 , data, (packet_length + 1 ) >> 1); |
ioaddr | 1521 | drivers/net/smc9194.c | *((data++) = inb( ioaddr + DATA_1 ); |
ioaddr | 1543 | drivers/net/smc9194.c | outw( MC_RELEASE, ioaddr + MMU_CMD ); |
ioaddr | 1567 | drivers/net/smc9194.c | int ioaddr = dev->base_addr; |
ioaddr | 1576 | drivers/net/smc9194.c | saved_packet = inb( ioaddr + PNR_ARR ); |
ioaddr | 1577 | drivers/net/smc9194.c | packet_no = inw( ioaddr + FIFO_PORTS ); |
ioaddr | 1581 | drivers/net/smc9194.c | outb( packet_no, ioaddr + PNR_ARR ); |
ioaddr | 1584 | drivers/net/smc9194.c | outw( PTR_AUTOINC | PTR_READ, ioaddr + POINTER ); |
ioaddr | 1586 | drivers/net/smc9194.c | tx_status = inw( ioaddr + DATA_1 ); |
ioaddr | 1605 | drivers/net/smc9194.c | outw( inw( ioaddr + TCR ) | TCR_ENABLE, ioaddr + TCR ); |
ioaddr | 1609 | drivers/net/smc9194.c | outw( MC_FREEPKT, ioaddr + MMU_CMD ); |
ioaddr | 1614 | drivers/net/smc9194.c | outb( saved_packet, ioaddr + PNR_ARR ); |
ioaddr | 1667 | drivers/net/smc9194.c | short ioaddr = dev->base_addr; |
ioaddr | 1675 | drivers/net/smc9194.c | outw( inw(ioaddr + RCR ) | RCR_PROMISC, ioaddr + RCR ); |
ioaddr | 1691 | drivers/net/smc9194.c | outw( inw(ioaddr + RCR ) | RCR_ALMUL, ioaddr + RCR ); |
ioaddr | 1703 | drivers/net/smc9194.c | outw( inw( ioaddr + RCR ) & ~RCR_PROMISC, ioaddr + RCR ); |
ioaddr | 1711 | drivers/net/smc9194.c | outw( inw( ioaddr + RCR ) & ~(RCR_PROMISC | RCR_ALMUL), |
ioaddr | 1712 | drivers/net/smc9194.c | ioaddr + RCR ); |
ioaddr | 1715 | drivers/net/smc9194.c | smc_setmulticast( ioaddr, dev->mc_count, dev->mc_list ); |
ioaddr | 1719 | drivers/net/smc9194.c | outw( inw( ioaddr + RCR ) & ~(RCR_PROMISC | RCR_ALMUL), |
ioaddr | 1720 | drivers/net/smc9194.c | ioaddr + RCR ); |
ioaddr | 1727 | drivers/net/smc9194.c | outw( 0, ioaddr + MULTICAST1 ); |
ioaddr | 1728 | drivers/net/smc9194.c | outw( 0, ioaddr + MULTICAST2 ); |
ioaddr | 1729 | drivers/net/smc9194.c | outw( 0, ioaddr + MULTICAST3 ); |
ioaddr | 1730 | drivers/net/smc9194.c | outw( 0, ioaddr + MULTICAST4 ); |
ioaddr | 203 | drivers/net/smc9194.h | #define SMC_SELECT_BANK(x) { outw( x, ioaddr + BANK_SELECT ); } |
ioaddr | 206 | drivers/net/smc9194.h | #define SMC_DELAY() { inw( ioaddr + RCR );\ |
ioaddr | 207 | drivers/net/smc9194.h | inw( ioaddr + RCR );\ |
ioaddr | 208 | drivers/net/smc9194.h | inw( ioaddr + RCR ); } |
ioaddr | 214 | drivers/net/smc9194.h | mask = inb( ioaddr + INT_MASK );\ |
ioaddr | 216 | drivers/net/smc9194.h | outb( mask, ioaddr + INT_MASK ); \ |
ioaddr | 224 | drivers/net/smc9194.h | mask = inb( ioaddr + INT_MASK );\ |
ioaddr | 226 | drivers/net/smc9194.h | outb( mask, ioaddr + INT_MASK ); \ |
ioaddr | 153 | drivers/net/tulip.c | static void tulip_probe1(int ioaddr, int irq); |
ioaddr | 208 | drivers/net/tulip.c | static void tulip_probe1(int ioaddr, int irq) |
ioaddr | 220 | drivers/net/tulip.c | printk("%s: DEC 21040 Tulip at %#3x,", dev->name, ioaddr); |
ioaddr | 223 | drivers/net/tulip.c | outl(inl(ioaddr + CSR6) & ~0x2002, ioaddr + CSR6); |
ioaddr | 225 | drivers/net/tulip.c | inl(ioaddr + CSR8) & 0xffff; |
ioaddr | 231 | drivers/net/tulip.c | outl(0, ioaddr + CSR9); /* Reset the pointer with a dummy write. */ |
ioaddr | 235 | drivers/net/tulip.c | value = inl(ioaddr + CSR9); |
ioaddr | 242 | drivers/net/tulip.c | request_region(ioaddr, TULIP_TOTAL_SIZE, "DEC Tulip Ethernet"); |
ioaddr | 244 | drivers/net/tulip.c | dev->base_addr = ioaddr; |
ioaddr | 268 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
ioaddr | 271 | drivers/net/tulip.c | outl(0xfff80001, ioaddr + CSR0); |
ioaddr | 281 | drivers/net/tulip.c | outl(0xfff84800, ioaddr + CSR0); |
ioaddr | 319 | drivers/net/tulip.c | outl((int)tp->rx_ring, ioaddr + CSR3); |
ioaddr | 320 | drivers/net/tulip.c | outl((int)tp->tx_ring, ioaddr + CSR4); |
ioaddr | 323 | drivers/net/tulip.c | outl(0x00000000, ioaddr + CSR13); |
ioaddr | 324 | drivers/net/tulip.c | outl(0x00000004, ioaddr + CSR13); |
ioaddr | 327 | drivers/net/tulip.c | outl(0xfffe2002, ioaddr + CSR6); |
ioaddr | 330 | drivers/net/tulip.c | outl(0, ioaddr + CSR1); |
ioaddr | 337 | drivers/net/tulip.c | outl(0xFFFFFFFF, ioaddr + CSR7); |
ioaddr | 341 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR0), inl(ioaddr + CSR13)); |
ioaddr | 379 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
ioaddr | 389 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5), inl(ioaddr + CSR12), |
ioaddr | 390 | drivers/net/tulip.c | inl(ioaddr + CSR13), inl(ioaddr + CSR14), inl(ioaddr + CSR15)); |
ioaddr | 438 | drivers/net/tulip.c | outl(0, ioaddr + CSR1); |
ioaddr | 451 | drivers/net/tulip.c | int csr5, ioaddr, boguscnt=10; |
ioaddr | 458 | drivers/net/tulip.c | ioaddr = dev->base_addr; |
ioaddr | 466 | drivers/net/tulip.c | csr5 = inl(ioaddr + CSR5); |
ioaddr | 468 | drivers/net/tulip.c | outl(csr5 & 0x0001ffff, ioaddr + CSR5); |
ioaddr | 538 | drivers/net/tulip.c | lp->stats.rx_missed_errors += inl(ioaddr + CSR8) & 0xffff; |
ioaddr | 550 | drivers/net/tulip.c | outl(0x0001ffff, ioaddr + CSR5); |
ioaddr | 557 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
ioaddr | 637 | drivers/net/tulip.c | int ioaddr = dev->base_addr; |
ioaddr | 645 | drivers/net/tulip.c | dev->name, inl(ioaddr + CSR5)); |
ioaddr | 648 | drivers/net/tulip.c | outl(0x00000000, ioaddr + CSR7); |
ioaddr | 650 | drivers/net/tulip.c | outl(inl(ioaddr + CSR6) & ~0x2002, ioaddr + CSR6); |
ioaddr | 652 | drivers/net/tulip.c | tp->stats.rx_missed_errors += inl(ioaddr + CSR8) & 0xffff; |
ioaddr | 665 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
ioaddr | 667 | drivers/net/tulip.c | tp->stats.rx_missed_errors += inl(ioaddr + CSR8) & 0xffff; |
ioaddr | 678 | drivers/net/tulip.c | short ioaddr = dev->base_addr; |
ioaddr | 679 | drivers/net/tulip.c | int csr6 = inl(ioaddr + CSR6) & ~0x00D5; |
ioaddr | 683 | drivers/net/tulip.c | outl(csr6 | 0x00C0, ioaddr + CSR6); |
ioaddr | 690 | drivers/net/tulip.c | outl(csr6 | 0x0080, ioaddr + CSR6); |
ioaddr | 703 | drivers/net/tulip.c | outl(csr6 | 0x0000, ioaddr + CSR6); |
ioaddr | 127 | drivers/net/wavelan.c | hasr_read(unsigned short ioaddr) |
ioaddr | 129 | drivers/net/wavelan.c | return inw(HASR(ioaddr)); |
ioaddr | 134 | drivers/net/wavelan.c | hacr_write(unsigned short ioaddr, int hacr) |
ioaddr | 136 | drivers/net/wavelan.c | outw(hacr, HACR(ioaddr)); |
ioaddr | 141 | drivers/net/wavelan.c | hacr_write_slow(unsigned short ioaddr, int hacr) |
ioaddr | 143 | drivers/net/wavelan.c | hacr_write(ioaddr, hacr); |
ioaddr | 153 | drivers/net/wavelan.c | set_chan_attn(unsigned short ioaddr, unsigned short current_hacr) |
ioaddr | 155 | drivers/net/wavelan.c | hacr_write(ioaddr, current_hacr | HACR_CA); |
ioaddr | 163 | drivers/net/wavelan.c | wavelan_reset(unsigned short ioaddr) |
ioaddr | 165 | drivers/net/wavelan.c | hacr_write_slow(ioaddr, HACR_RESET); |
ioaddr | 166 | drivers/net/wavelan.c | hacr_write(ioaddr, HACR_DEFAULT); |
ioaddr | 171 | drivers/net/wavelan.c | wavelan_16_off(unsigned short ioaddr, unsigned short hacr) |
ioaddr | 175 | drivers/net/wavelan.c | hacr_write(ioaddr, hacr); |
ioaddr | 180 | drivers/net/wavelan.c | wavelan_16_on(unsigned short ioaddr, unsigned short hacr) |
ioaddr | 184 | drivers/net/wavelan.c | hacr_write(ioaddr, hacr); |
ioaddr | 191 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 195 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 201 | drivers/net/wavelan.c | hacr_write(ioaddr, lp->hacr); |
ioaddr | 210 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 214 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 220 | drivers/net/wavelan.c | hacr_write(ioaddr, lp->hacr); |
ioaddr | 230 | drivers/net/wavelan.c | psa_read(unsigned short ioaddr, unsigned short hacr, int o, unsigned char *b, int n) |
ioaddr | 232 | drivers/net/wavelan.c | wavelan_16_off(ioaddr, hacr); |
ioaddr | 236 | drivers/net/wavelan.c | outw(o, PIOR2(ioaddr)); |
ioaddr | 238 | drivers/net/wavelan.c | *b++ = inb(PIOP2(ioaddr)); |
ioaddr | 241 | drivers/net/wavelan.c | wavelan_16_on(ioaddr, hacr); |
ioaddr | 250 | drivers/net/wavelan.c | psa_write(unsigned short ioaddr, unsigned short hacr, int o, unsigned char *b, int n) |
ioaddr | 252 | drivers/net/wavelan.c | wavelan_16_off(ioaddr, hacr); |
ioaddr | 256 | drivers/net/wavelan.c | outw(o, PIOR2(ioaddr)); |
ioaddr | 258 | drivers/net/wavelan.c | outb(*b, PIOP2(ioaddr)); |
ioaddr | 262 | drivers/net/wavelan.c | wavelan_16_on(ioaddr, hacr); |
ioaddr | 271 | drivers/net/wavelan.c | obram_read(unsigned short ioaddr, unsigned short o, unsigned char *b, int n) |
ioaddr | 275 | drivers/net/wavelan.c | outw(o, PIOR1(ioaddr)); |
ioaddr | 277 | drivers/net/wavelan.c | insw(PIOP1(ioaddr), (unsigned short *)b, n); |
ioaddr | 285 | drivers/net/wavelan.c | obram_write(unsigned short ioaddr, unsigned short o, unsigned char *b, int n) |
ioaddr | 289 | drivers/net/wavelan.c | outw(o, PIOR1(ioaddr)); |
ioaddr | 291 | drivers/net/wavelan.c | outsw(PIOP1(ioaddr), (unsigned short *)b, n); |
ioaddr | 299 | drivers/net/wavelan.c | mmc_read(unsigned short ioaddr, unsigned short o, unsigned char *b, int n) |
ioaddr | 303 | drivers/net/wavelan.c | while (inw(HASR(ioaddr)) & HASR_MMC_BUSY) |
ioaddr | 306 | drivers/net/wavelan.c | outw(o << 1, MMCR(ioaddr)); |
ioaddr | 309 | drivers/net/wavelan.c | while (inw(HASR(ioaddr)) & HASR_MMC_BUSY) |
ioaddr | 312 | drivers/net/wavelan.c | *b++ = (unsigned char)(inw(MMCR(ioaddr)) >> 8); |
ioaddr | 321 | drivers/net/wavelan.c | mmc_write(unsigned short ioaddr, unsigned short o, unsigned char *b, int n) |
ioaddr | 325 | drivers/net/wavelan.c | while (inw(HASR(ioaddr)) & HASR_MMC_BUSY) |
ioaddr | 328 | drivers/net/wavelan.c | outw((unsigned short)(((unsigned short)*b << 8) | (o << 1) | 1), MMCR(ioaddr)); |
ioaddr | 381 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 386 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 451 | drivers/net/wavelan.c | mmc_write(ioaddr, 0, (unsigned char *)&m, sizeof(m)); |
ioaddr | 458 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 463 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 466 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_status), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 472 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 474 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 478 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 497 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 503 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 507 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cmd, sizeof(scb_cmd)); |
ioaddr | 509 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 513 | drivers/net/wavelan.c | obram_read(ioaddr, OFFSET_CU, (unsigned char *)&cb, sizeof(cb)); |
ioaddr | 523 | drivers/net/wavelan.c | wavelan_scb_show(ioaddr); |
ioaddr | 536 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 550 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 555 | drivers/net/wavelan.c | wavelan_reset(ioaddr); |
ioaddr | 567 | drivers/net/wavelan.c | obram_write(ioaddr, i, &zeroes[0], sizeof(zeroes)); |
ioaddr | 570 | drivers/net/wavelan.c | psa_read(ioaddr, lp->hacr, 0, (unsigned char *)&psa, sizeof(psa)); |
ioaddr | 581 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_SCP, (unsigned char *)&scp, sizeof(scp)); |
ioaddr | 586 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_ISCP, (unsigned char *)&iscp, sizeof(iscp)); |
ioaddr | 592 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_SCB, (unsigned char *)&scb, sizeof(scb)); |
ioaddr | 594 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 598 | drivers/net/wavelan.c | obram_read(ioaddr, OFFSET_ISCP, (unsigned char *)&iscp, sizeof(iscp)); |
ioaddr | 616 | drivers/net/wavelan.c | obram_read(ioaddr, OFFSET_SCB, (unsigned char *)&scb, sizeof(scb)); |
ioaddr | 637 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_CU, (unsigned char *)&cb, sizeof(cb)); |
ioaddr | 646 | drivers/net/wavelan.c | obram_read(ioaddr, OFFSET_CU, (unsigned char *)&cb, sizeof(cb)); |
ioaddr | 709 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_CU, (unsigned char *)&cfg, sizeof(cfg)); |
ioaddr | 723 | drivers/net/wavelan.c | obram_write(ioaddr, OFFSET_CU, (unsigned char *)&ias, sizeof(ias)); |
ioaddr | 736 | drivers/net/wavelan.c | wavelan_scb_show(ioaddr); |
ioaddr | 856 | drivers/net/wavelan.c | wavelan_probe1(device *dev, unsigned short ioaddr) |
ioaddr | 865 | drivers/net/wavelan.c | printk("%s: ->wavelan_probe1(dev=0x%x, ioaddr=0x%x)\n", dev->name, (unsigned int)dev, ioaddr); |
ioaddr | 867 | drivers/net/wavelan.c | wavelan_reset(ioaddr); |
ioaddr | 869 | drivers/net/wavelan.c | psa_read(ioaddr, HACR_DEFAULT, 0, (unsigned char *)&psa, sizeof(psa)); |
ioaddr | 889 | drivers/net/wavelan.c | printk("%s: WaveLAN at %#x,", dev->name, ioaddr); |
ioaddr | 903 | drivers/net/wavelan.c | psa_write(ioaddr, HACR_DEFAULT, (char *)&psa.psa_int_req_no - (char *)&psa, (unsigned char *)&psa.psa_int_req_no, sizeof(psa.psa_int_req_no)); |
ioaddr | 904 | drivers/net/wavelan.c | wavelan_reset(ioaddr); |
ioaddr | 919 | drivers/net/wavelan.c | request_region(ioaddr, sizeof(ha_t), "wavelan"); |
ioaddr | 920 | drivers/net/wavelan.c | dev->base_addr = ioaddr; |
ioaddr | 1072 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1081 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1084 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_status), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 1098 | drivers/net/wavelan.c | obram_write(ioaddr, rx, (unsigned char *)&fd, sizeof(fd)); |
ioaddr | 1105 | drivers/net/wavelan.c | obram_write(ioaddr, rx + sizeof(fd), (unsigned char *)&rbd, sizeof(rbd)); |
ioaddr | 1110 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_rfa_offset), (unsigned char *)&lp->rx_head, sizeof(lp->rx_head)); |
ioaddr | 1113 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 1115 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 1119 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 1139 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1146 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1176 | drivers/net/wavelan.c | obram_write(ioaddr, tx_addr, (unsigned char *)&tx, sizeof(tx)); |
ioaddr | 1181 | drivers/net/wavelan.c | obram_write(ioaddr, nop_addr, (unsigned char *)&nop, sizeof(nop)); |
ioaddr | 1187 | drivers/net/wavelan.c | obram_write(ioaddr, tbd_addr, (unsigned char *)&tbd, sizeof(tbd)); |
ioaddr | 1191 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_cbl_offset), (unsigned char *)&first_nop, sizeof(first_nop)); |
ioaddr | 1194 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 1196 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 1200 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cs, sizeof(scb_cs)); |
ioaddr | 1218 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1226 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1281 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1294 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1323 | drivers/net/wavelan.c | obram_write(ioaddr, toff(ac_tx_t, tx_addr, tx_h.ac_status), (unsigned char *)&tx.tx_h.ac_status, sizeof(tx.tx_h.ac_status)); |
ioaddr | 1329 | drivers/net/wavelan.c | obram_write(ioaddr, toff(ac_nop_t, nop_addr, nop_h.ac_status), (unsigned char *)&nop.nop_h.ac_status, sizeof(nop.nop_h.ac_status)); |
ioaddr | 1331 | drivers/net/wavelan.c | obram_write(ioaddr, toff(ac_nop_t, nop_addr, nop_h.ac_link), (unsigned char *)&nop.nop_h.ac_link, sizeof(nop.nop_h.ac_link)); |
ioaddr | 1340 | drivers/net/wavelan.c | obram_write(ioaddr, tbd_addr, (unsigned char *)&tbd, sizeof(tbd)); |
ioaddr | 1345 | drivers/net/wavelan.c | obram_write(ioaddr, buf_addr, buf, length); |
ioaddr | 1353 | drivers/net/wavelan.c | obram_write(ioaddr, toff(ac_nop_t, nop_addr, nop_h.ac_status), (unsigned char *)&nop.nop_h.ac_status, sizeof(nop.nop_h.ac_status)); |
ioaddr | 1355 | drivers/net/wavelan.c | obram_write(ioaddr, toff(ac_nop_t, nop_addr, nop_h.ac_link), (unsigned char *)&nop.nop_h.ac_link, sizeof(nop.nop_h.ac_link)); |
ioaddr | 1391 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1393 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1414 | drivers/net/wavelan.c | wavelan_scb_show(ioaddr); |
ioaddr | 1483 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1487 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1499 | drivers/net/wavelan.c | obram_read(ioaddr, lp->rx_head, (unsigned char *)&fd, sizeof(fd)); |
ioaddr | 1566 | drivers/net/wavelan.c | obram_read(ioaddr, fd.fd_rbd_offset, (unsigned char *)&rbd, sizeof(rbd)); |
ioaddr | 1585 | drivers/net/wavelan.c | obram_read(ioaddr, rbd.rbd_bufl + sizeof(addr), &addr[0], sizeof(addr)); |
ioaddr | 1622 | drivers/net/wavelan.c | obram_read(ioaddr, rbd.rbd_bufl, &addr[0], sizeof(addr)); |
ioaddr | 1628 | drivers/net/wavelan.c | obram_read(ioaddr, rbd.rbd_bufl + sizeof(addr), &addr[0], sizeof(addr)); |
ioaddr | 1634 | drivers/net/wavelan.c | obram_read(ioaddr, rbd.rbd_bufl + sizeof(addr) * 2, (unsigned char *)<ype, sizeof(ltype)); |
ioaddr | 1649 | drivers/net/wavelan.c | obram_read(ioaddr, rbd.rbd_bufl, skb_put(skb,pkt_len), pkt_len); |
ioaddr | 1686 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_status), (unsigned char *)&fd.fd_status, sizeof(fd.fd_status)); |
ioaddr | 1689 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_head, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
ioaddr | 1692 | drivers/net/wavelan.c | obram_write(ioaddr, fdoff(lp->rx_last, fd_command), (unsigned char *)&fd.fd_command, sizeof(fd.fd_command)); |
ioaddr | 1710 | drivers/net/wavelan.c | wavelan_complete(device *dev, unsigned short ioaddr, net_local *lp) |
ioaddr | 1723 | drivers/net/wavelan.c | obram_read(ioaddr, acoff(lp->tx_first_in_use, ac_status), (unsigned char *)&tx_status, sizeof(tx_status)); |
ioaddr | 1818 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1825 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1843 | drivers/net/wavelan.c | nreaped = wavelan_complete(dev, ioaddr, lp); |
ioaddr | 1862 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1874 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1879 | drivers/net/wavelan.c | if ((hasr = hasr_read(ioaddr)) & HASR_MMC_INTR) |
ioaddr | 1887 | drivers/net/wavelan.c | mmc_read(ioaddr, mmroff(0, mmr_dce_status), &dce_status, sizeof(dce_status)); |
ioaddr | 1900 | drivers/net/wavelan.c | obram_read(ioaddr, scboff(OFFSET_SCB, scb_status), (unsigned char *)&status, sizeof(status)); |
ioaddr | 1907 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&ack_cmd, sizeof(ack_cmd)); |
ioaddr | 1909 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 1921 | drivers/net/wavelan.c | (void)wavelan_complete(dev, ioaddr, lp); |
ioaddr | 1965 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 1972 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 1982 | drivers/net/wavelan.c | obram_write(ioaddr, scboff(OFFSET_SCB, scb_command), (unsigned char *)&scb_cmd, sizeof(scb_cmd)); |
ioaddr | 1983 | drivers/net/wavelan.c | set_chan_attn(ioaddr, lp->hacr); |
ioaddr | 1993 | drivers/net/wavelan.c | release_region(ioaddr, sizeof(ha_t)); |
ioaddr | 2206 | drivers/net/wavelan.c | unsigned short ioaddr; |
ioaddr | 2209 | drivers/net/wavelan.c | ioaddr = dev->base_addr; |
ioaddr | 2213 | drivers/net/wavelan.c | obram_read(ioaddr, p, (unsigned char *)&actx, sizeof(actx)); |
ioaddr | 2302 | drivers/net/wavelan.c | wavelan_mmc_show(unsigned short ioaddr) |
ioaddr | 2306 | drivers/net/wavelan.c | mmc_read(ioaddr, 0, (unsigned char *)&m, sizeof(m)); |
ioaddr | 2335 | drivers/net/wavelan.c | wavelan_scb_show(unsigned short ioaddr) |
ioaddr | 2339 | drivers/net/wavelan.c | obram_read(ioaddr, OFFSET_SCB, (unsigned char *)&scb, sizeof(scb)); |
ioaddr | 48 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr); |
ioaddr | 99 | drivers/net/wd.c | int ioaddr = wd_portlist[i]; |
ioaddr | 100 | drivers/net/wd.c | if (check_region(ioaddr, WD_IO_EXTENT)) |
ioaddr | 102 | drivers/net/wd.c | if (wd_probe1(dev, ioaddr) == 0) |
ioaddr | 110 | drivers/net/wd.c | int wd_probe1(struct device *dev, int ioaddr) |
ioaddr | 120 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
ioaddr | 121 | drivers/net/wd.c | if (inb(ioaddr + 8) == 0xff /* Extra check to avoid soundcard. */ |
ioaddr | 122 | drivers/net/wd.c | || inb(ioaddr + 9) == 0xff |
ioaddr | 142 | drivers/net/wd.c | printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); |
ioaddr | 144 | drivers/net/wd.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i)); |
ioaddr | 151 | drivers/net/wd.c | if (inb(ioaddr+0) == 'P' && inb(ioaddr+1) == 'D') { |
ioaddr | 152 | drivers/net/wd.c | unsigned char reg5 = inb(ioaddr+5); |
ioaddr | 154 | drivers/net/wd.c | switch (inb(ioaddr+2)) { |
ioaddr | 171 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
ioaddr | 178 | drivers/net/wd.c | int tmp = inb(ioaddr+1); /* fiddle with 16bit bit */ |
ioaddr | 179 | drivers/net/wd.c | outb( tmp ^ 0x01, ioaddr+1 ); /* attempt to clear 16bit bit */ |
ioaddr | 180 | drivers/net/wd.c | if (((inb( ioaddr+1) & 0x01) == 0x01) /* A 16 bit card */ |
ioaddr | 182 | drivers/net/wd.c | int asic_reg5 = inb(ioaddr+WD_CMDREG5); |
ioaddr | 184 | drivers/net/wd.c | outb( NIC16 | (asic_reg5&0x1f), ioaddr+WD_CMDREG5); |
ioaddr | 185 | drivers/net/wd.c | outb(tmp, ioaddr+1); |
ioaddr | 192 | drivers/net/wd.c | outb(tmp, ioaddr+1); /* Restore original reg1 value. */ |
ioaddr | 195 | drivers/net/wd.c | if ( !ancient && (inb(ioaddr+1) & 0x01) != (word16 & 0x01)) |
ioaddr | 197 | drivers/net/wd.c | word16 ? 16 : 8, (inb(ioaddr+1) & 0x01) ? 16 : 8); |
ioaddr | 207 | drivers/net/wd.c | int reg0 = inb(ioaddr); |
ioaddr | 213 | drivers/net/wd.c | int high_addr_bits = inb(ioaddr+WD_CMDREG5) & 0x1f; |
ioaddr | 223 | drivers/net/wd.c | dev->base_addr = ioaddr+WD_NIC_OFFSET; |
ioaddr | 227 | drivers/net/wd.c | int reg1 = inb(ioaddr+1); |
ioaddr | 228 | drivers/net/wd.c | int reg4 = inb(ioaddr+4); |
ioaddr | 230 | drivers/net/wd.c | short nic_addr = ioaddr+WD_NIC_OFFSET; |
ioaddr | 269 | drivers/net/wd.c | request_region(ioaddr, WD_IO_EXTENT, model_name); |
ioaddr | 302 | drivers/net/wd.c | if (inb(ioaddr+14) & 0x20) |
ioaddr | 303 | drivers/net/wd.c | outb(inb(ioaddr+4)|0x80, ioaddr+4); |
ioaddr | 312 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
ioaddr | 320 | drivers/net/wd.c | outb(ei_status.reg5, ioaddr+WD_CMDREG5); |
ioaddr | 321 | drivers/net/wd.c | outb(ei_status.reg0, ioaddr); /* WD_CMDREG */ |
ioaddr | 493 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; |
ioaddr | 498 | drivers/net/wd.c | release_region(ioaddr, WD_IO_EXTENT); |
ioaddr | 191 | drivers/net/znet.c | static void update_stop_hit(short ioaddr, unsigned short rx_stop_offset); |
ioaddr | 288 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 305 | drivers/net/znet.c | if (inb(ioaddr) != 0x10 && inb(ioaddr) != 0x00) |
ioaddr | 319 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 330 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); event = inb(ioaddr); |
ioaddr | 331 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); tx_status = inw(ioaddr); |
ioaddr | 332 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); rx_offset = inw(ioaddr); |
ioaddr | 333 | drivers/net/znet.c | outb(CMD0_STAT3, ioaddr); state = inb(ioaddr); |
ioaddr | 339 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); |
ioaddr | 349 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); |
ioaddr | 350 | drivers/net/znet.c | if (inw(ioaddr) == 0x0010 |
ioaddr | 351 | drivers/net/znet.c | && inw(ioaddr) == 0x0000 |
ioaddr | 352 | drivers/net/znet.c | && inw(ioaddr) == 0x0010) |
ioaddr | 393 | drivers/net/znet.c | outb(CMD0_TRANSMIT + CMD0_CHNL_1,ioaddr); |
ioaddr | 408 | drivers/net/znet.c | int ioaddr; |
ioaddr | 417 | drivers/net/znet.c | ioaddr = dev->base_addr; |
ioaddr | 419 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); |
ioaddr | 421 | drivers/net/znet.c | ushort status = inb(ioaddr); |
ioaddr | 424 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); |
ioaddr | 425 | drivers/net/znet.c | result = inw(ioaddr); |
ioaddr | 426 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); |
ioaddr | 427 | drivers/net/znet.c | rx_ptr = inw(ioaddr); |
ioaddr | 428 | drivers/net/znet.c | outb(CMD0_STAT3, ioaddr); |
ioaddr | 429 | drivers/net/znet.c | running = inb(ioaddr); |
ioaddr | 439 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); |
ioaddr | 440 | drivers/net/znet.c | tx_status = inw(ioaddr); |
ioaddr | 463 | drivers/net/znet.c | outb(CMD0_ACK,ioaddr); |
ioaddr | 473 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 479 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); |
ioaddr | 480 | drivers/net/znet.c | cur_frame_end_offset = inw(ioaddr); |
ioaddr | 580 | drivers/net/znet.c | update_stop_hit(ioaddr, (zn.rx_cur - zn.rx_start)<<1); |
ioaddr | 596 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 601 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); /* CMD0_RESET */ |
ioaddr | 636 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
ioaddr | 653 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 659 | drivers/net/znet.c | outb(CMD0_MULTICAST_LIST+CMD0_CHNL_1, ioaddr); |
ioaddr | 677 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
ioaddr | 683 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); |
ioaddr | 708 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 709 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 713 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 714 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 718 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 719 | drivers/net/znet.c | outb(CMD0_IA_SETUP + CMD0_CHNL_1, ioaddr); |
ioaddr | 720 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 722 | drivers/net/znet.c | update_stop_hit(ioaddr, 8192); |
ioaddr | 724 | drivers/net/znet.c | outb(CMD0_Rx_ENABLE+CMD0_CHNL_0, ioaddr); |
ioaddr | 728 | drivers/net/znet.c | static void update_stop_hit(short ioaddr, unsigned short rx_stop_offset) |
ioaddr | 730 | drivers/net/znet.c | outb(CMD0_PORT_1, ioaddr); |
ioaddr | 734 | drivers/net/znet.c | outb((rx_stop_offset >> 6) | 0x80, ioaddr); |
ioaddr | 735 | drivers/net/znet.c | outb(CMD1_PORT_0, ioaddr); |
ioaddr | 364 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
ioaddr | 379 | drivers/sound/dev_table.c | ioaddr = (val & 0x000fff00) >> 8; |
ioaddr | 396 | drivers/sound/dev_table.c | snd_installed_cards[ptr].config.io_base = ioaddr; |
ioaddr | 513 | drivers/sound/dev_table.h | void sound_chconf(int card_type, int ioaddr, int irq, int dma); |
ioaddr | 173 | drivers/sound/opl3.c | opl3_detect (int ioaddr, int *osp) |
ioaddr | 206 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); |
ioaddr | 209 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); |
ioaddr | 211 | drivers/sound/opl3.c | signature = stat1 = inb (ioaddr); /* Status register */ |
ioaddr | 220 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER1_REGISTER, 0xff); /* Set timer1 to 0xff */ |
ioaddr | 222 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, |
ioaddr | 234 | drivers/sound/opl3.c | stat2 = inb (ioaddr); /* |
ioaddr | 243 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); |
ioaddr | 245 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); |
ioaddr | 274 | drivers/sound/opl3.c | opl3_command (ioaddr + 2, OPL3_MODE_REGISTER, 0x00); |
ioaddr | 275 | drivers/sound/opl3.c | opl3_command (ioaddr + 2, OPL3_MODE_REGISTER, OPL3_ENABLE | OPL4_ENABLE); |
ioaddr | 277 | drivers/sound/opl3.c | if ((tmp = inb (ioaddr)) == 0x02) /* Have a OPL4 */ |
ioaddr | 282 | drivers/sound/opl3.c | if (!check_region (ioaddr - 8, 2)) /* OPL4 port is free */ |
ioaddr | 286 | drivers/sound/opl3.c | outb (0x02, ioaddr - 8); /* Select OPL4 ID register */ |
ioaddr | 288 | drivers/sound/opl3.c | tmp = inb (ioaddr - 7); /* Read it */ |
ioaddr | 295 | drivers/sound/opl3.c | outb (0xF8, ioaddr - 8); /* Select OPL4 FM mixer control */ |
ioaddr | 297 | drivers/sound/opl3.c | outb (0x1B, ioaddr - 7); /* Write value */ |
ioaddr | 304 | drivers/sound/opl3.c | opl3_command (ioaddr + 2, OPL3_MODE_REGISTER, 0); |
ioaddr | 309 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
ioaddr | 313 | drivers/sound/opl3.c | opl3_command (ioaddr, TEST_REGISTER, ENABLE_WAVE_SELECT); |
ioaddr | 314 | drivers/sound/opl3.c | opl3_command (ioaddr, PERCUSSION_REGISTER, 0x00); /* |
ioaddr | 338 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, devc->voc[voice].keyon_byte & ~0x20); |
ioaddr | 472 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); |
ioaddr | 473 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); |
ioaddr | 518 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); |
ioaddr | 519 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); |
ioaddr | 520 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], vol3); |
ioaddr | 521 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], vol4); |
ioaddr | 552 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], 0xff); /* |
ioaddr | 557 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], 0xff); /* |
ioaddr | 564 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], 0xff); |
ioaddr | 565 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], 0xff); |
ioaddr | 568 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, 0x00); /* |
ioaddr | 597 | drivers/sound/opl3.c | voice_shift = (map->ioaddr == devc->left_io) ? 0 : 3; |
ioaddr | 618 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[0], instr->operators[0]); |
ioaddr | 619 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[1], instr->operators[1]); |
ioaddr | 624 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[0], instr->operators[4]); |
ioaddr | 625 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[1], instr->operators[5]); |
ioaddr | 630 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[0], instr->operators[6]); |
ioaddr | 631 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[1], instr->operators[7]); |
ioaddr | 636 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[0], instr->operators[8]); |
ioaddr | 637 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[1], instr->operators[9]); |
ioaddr | 647 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num, |
ioaddr | 660 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[2], instr->operators[OFFS_4OP + 0]); |
ioaddr | 661 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[3], instr->operators[OFFS_4OP + 1]); |
ioaddr | 666 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[2], instr->operators[OFFS_4OP + 4]); |
ioaddr | 667 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[3], instr->operators[OFFS_4OP + 5]); |
ioaddr | 672 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[2], instr->operators[OFFS_4OP + 6]); |
ioaddr | 673 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[3], instr->operators[OFFS_4OP + 7]); |
ioaddr | 678 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[2], instr->operators[OFFS_4OP + 8]); |
ioaddr | 679 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[3], instr->operators[OFFS_4OP + 9]); |
ioaddr | 689 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num + 3, fpc); |
ioaddr | 715 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 719 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 721 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num + 3, data); |
ioaddr | 809 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
ioaddr | 812 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
ioaddr | 817 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
ioaddr | 820 | drivers/sound/opl3.c | opl3_command (pv_map[devc->lv_map[i]].ioaddr, |
ioaddr | 919 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[cell-1], tmp);} |
ioaddr | 1019 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 1030 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 1177 | drivers/sound/opl3.c | opl3_init (long mem_start, int ioaddr, int *osp) |
ioaddr | 1207 | drivers/sound/opl3.c | devc->left_io = ioaddr; |
ioaddr | 1208 | drivers/sound/opl3.c | devc->right_io = ioaddr + 2; |
ioaddr | 1228 | drivers/sound/opl3.c | conf_printf2 ("Yamaha OPL4/OPL3 FM", ioaddr, 0, -1, -1); |
ioaddr | 1230 | drivers/sound/opl3.c | conf_printf2 ("Yamaha OPL3 FM", ioaddr, 0, -1, -1); |
ioaddr | 1239 | drivers/sound/opl3.c | if (pv_map[i].ioaddr == USE_LEFT) |
ioaddr | 1240 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->left_io; |
ioaddr | 1242 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->right_io; |
ioaddr | 1249 | drivers/sound/opl3.c | conf_printf2 ("Yamaha OPL2 FM", ioaddr, 0, -1, -1); |
ioaddr | 1254 | drivers/sound/opl3.c | pv_map[i].ioaddr = devc->left_io; |
ioaddr | 213 | drivers/sound/opl3.h | unsigned short ioaddr; /* I/O port (left or right side) */ |
ioaddr | 64 | drivers/sound/pas2_card.c | extern void mix_write (unsigned char data, int ioaddr); |
ioaddr | 67 | drivers/sound/pas2_card.c | pas_read (int ioaddr) |
ioaddr | 69 | drivers/sound/pas2_card.c | return inb (ioaddr ^ translat_code); |
ioaddr | 73 | drivers/sound/pas2_card.c | pas_write (unsigned char data, int ioaddr) |
ioaddr | 75 | drivers/sound/pas2_card.c | outb (data, ioaddr ^ translat_code); |
ioaddr | 74 | drivers/sound/pas2_mixer.c | mix_write (unsigned char data, int ioaddr) |
ioaddr | 86 | drivers/sound/pas2_mixer.c | outw (data | (data << 8), (ioaddr ^ translat_code) - 1); |
ioaddr | 90 | drivers/sound/pas2_mixer.c | pas_write (data, ioaddr); |
ioaddr | 133 | drivers/sound/sound_calls.h | int opl3_detect (int ioaddr, int *osp); |
ioaddr | 134 | drivers/sound/sound_calls.h | long opl3_init(long mem_start, int ioaddr, int *osp); |
ioaddr | 149 | drivers/sound/sound_calls.h | unsigned char pas_read(int ioaddr); |
ioaddr | 150 | drivers/sound/sound_calls.h | void pas_write(unsigned char data, int ioaddr); |
ioaddr | 88 | include/linux/comstats.h | unsigned long ioaddr; |