tag | line | file | source code |
ioaddr | 135 | drivers/net/3c501.c | int ioaddr; |
ioaddr | 145 | drivers/net/3c501.c | ioaddr = el_base; |
ioaddr | 149 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
ioaddr | 150 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
ioaddr | 160 | drivers/net/3c501.c | snarf_region(ioaddr, 16); |
ioaddr | 308 | drivers/net/3c501.c | short ioaddr; |
ioaddr | 315 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
ioaddr | 335 | drivers/net/3c501.c | inw(ioaddr + EL1_DATAPTR), inw(ioaddr + EL1_RXPTR)); |
ioaddr | 460 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 463 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
ioaddr | 36 | drivers/net/3c503.c | int el2probe1(int ioaddr, struct device *dev); |
ioaddr | 62 | drivers/net/3c503.c | short ioaddr = dev->base_addr; |
ioaddr | 64 | drivers/net/3c503.c | if (ioaddr < 0) |
ioaddr | 66 | drivers/net/3c503.c | if (ioaddr > 0) |
ioaddr | 67 | drivers/net/3c503.c | return ! el2probe1(ioaddr, dev); |
ioaddr | 117 | drivers/net/3c503.c | el2probe1(int ioaddr, struct device *dev) |
ioaddr | 124 | drivers/net/3c503.c | printk("3c503 probe at %#3x:", ioaddr); |
ioaddr | 125 | drivers/net/3c503.c | iobase_reg = inb(ioaddr+0x403); |
ioaddr | 126 | drivers/net/3c503.c | membase_reg = inb(ioaddr+0x404); |
ioaddr | 133 | drivers/net/3c503.c | saved_406 = inb_p(ioaddr + 0x406); |
ioaddr | 134 | drivers/net/3c503.c | outb_p(ECNTRL_RESET|ECNTRL_THIN, ioaddr + 0x406); /* Reset it... */ |
ioaddr | 135 | drivers/net/3c503.c | outb_p(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 137 | drivers/net/3c503.c | outb(ECNTRL_SAPROM|ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 139 | drivers/net/3c503.c | printk(" %2.2X", (station_addr[i] = inb(ioaddr + i))); |
ioaddr | 146 | drivers/net/3c503.c | outb(saved_406, ioaddr + 0x406); |
ioaddr | 151 | drivers/net/3c503.c | snarf_region(ioaddr, 16); |
ioaddr | 156 | drivers/net/3c503.c | outb(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 157 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
ioaddr | 160 | drivers/net/3c503.c | outb(EGACFR_NORM, ioaddr + 0x405); /* Enable RAM */ |
ioaddr | 237 | drivers/net/3c503.c | return ioaddr; |
ioaddr | 270 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, short ioaddr); |
ioaddr | 312 | drivers/net/3c507.c | short ioaddr = *port; |
ioaddr | 315 | drivers/net/3c507.c | if (inb(ioaddr) == '*' && inb(ioaddr+1) == '3' |
ioaddr | 316 | drivers/net/3c507.c | && inb(ioaddr+2) == 'C' && inb(ioaddr+3) == 'O' |
ioaddr | 323 | drivers/net/3c507.c | res[0] = inb(ioaddr); res[1] = inb(ioaddr+1); |
ioaddr | 324 | drivers/net/3c507.c | res[2] = inb(ioaddr+2); res[3] = inb(ioaddr+3); |
ioaddr | 336 | drivers/net/3c507.c | int el16_probe1(struct device *dev, short ioaddr) |
ioaddr | 340 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
ioaddr | 345 | drivers/net/3c507.c | irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 354 | drivers/net/3c507.c | snarf_region(ioaddr, 16); |
ioaddr | 355 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
ioaddr | 357 | drivers/net/3c507.c | outb(0x01, ioaddr + MISC_CTRL); |
ioaddr | 359 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
ioaddr | 373 | drivers/net/3c507.c | char mem_config = inb(ioaddr + MEM_CONFIG); |
ioaddr | 387 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
ioaddr | 388 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 430 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 452 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 475 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 479 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 497 | drivers/net/3c507.c | int ioaddr, status, boguscount = 0; |
ioaddr | 507 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
ioaddr | 518 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 581 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 584 | drivers/net/3c507.c | outb(0, ioaddr + RESET_IRQ); |
ioaddr | 587 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 595 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 603 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 606 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 681 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 686 | drivers/net/3c507.c | outb(0x20, ioaddr + MISC_CTRL); |
ioaddr | 709 | drivers/net/3c507.c | outb(0xA0, ioaddr + MISC_CTRL); |
ioaddr | 713 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 725 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 729 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 740 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 775 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
ioaddr | 68 | drivers/net/3c509.c | #define EL3WINDOW(win_num) outw(0x0800+(win_num), ioaddr + EL3_CMD) |
ioaddr | 85 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index); |
ioaddr | 102 | drivers/net/3c509.c | ushort ioaddr, irq, if_port; |
ioaddr | 111 | drivers/net/3c509.c | ioaddr = eisa_addr; |
ioaddr | 115 | drivers/net/3c509.c | if (inw(ioaddr + 0xC80) != 0x6d50) |
ioaddr | 119 | drivers/net/3c509.c | outw(0x0800, ioaddr + 0xC80 + EL3_CMD); |
ioaddr | 121 | drivers/net/3c509.c | irq = inw(ioaddr + 8) >> 12; |
ioaddr | 122 | drivers/net/3c509.c | if_port = inw(ioaddr + 6)>>14; |
ioaddr | 124 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
ioaddr | 127 | drivers/net/3c509.c | read_eeprom(ioaddr, 3); |
ioaddr | 139 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
ioaddr | 140 | drivers/net/3c509.c | irq = inw(ioaddr + 8) >> 12; |
ioaddr | 141 | drivers/net/3c509.c | if_port = inw(ioaddr + 6)>>14; |
ioaddr | 143 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
ioaddr | 185 | drivers/net/3c509.c | ioaddr = 0x200 + ((iobase & 0x1f) << 4); |
ioaddr | 190 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
ioaddr | 201 | drivers/net/3c509.c | if (inw(ioaddr) != 0x6d50) |
ioaddr | 205 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
ioaddr | 245 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index) |
ioaddr | 249 | drivers/net/3c509.c | outw(EEPROM_READ + index, ioaddr + 10); |
ioaddr | 253 | drivers/net/3c509.c | return inw(ioaddr + 12); |
ioaddr | 283 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 293 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
ioaddr | 296 | drivers/net/3c509.c | outw(0x0001, ioaddr + 4); |
ioaddr | 301 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + 8); |
ioaddr | 307 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
ioaddr | 311 | drivers/net/3c509.c | outw(0x1000, ioaddr + EL3_CMD); |
ioaddr | 315 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) | MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 321 | drivers/net/3c509.c | outw(0x8005, ioaddr + EL3_CMD); /* Accept b-case and phys addr only. */ |
ioaddr | 322 | drivers/net/3c509.c | outw(0xA800, ioaddr + EL3_CMD); /* Turn on statistics. */ |
ioaddr | 323 | drivers/net/3c509.c | outw(0x2000, ioaddr + EL3_CMD); /* Enable the receiver. */ |
ioaddr | 324 | drivers/net/3c509.c | outw(0x4800, ioaddr + EL3_CMD); /* Enable transmitter. */ |
ioaddr | 325 | drivers/net/3c509.c | outw(0x78ff, ioaddr + EL3_CMD); /* Allow all status bits to be seen. */ |
ioaddr | 329 | drivers/net/3c509.c | outw(0x7098, ioaddr + EL3_CMD); /* Set interrupt mask. */ |
ioaddr | 333 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
ioaddr | 345 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 353 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
ioaddr | 356 | drivers/net/3c509.c | outw(0x5800, ioaddr + EL3_CMD); /* TX_RESET */ |
ioaddr | 357 | drivers/net/3c509.c | outw(0x4800, ioaddr + EL3_CMD); /* TX_START */ |
ioaddr | 371 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
ioaddr | 375 | drivers/net/3c509.c | ushort status = inw(ioaddr + EL3_STATUS); |
ioaddr | 377 | drivers/net/3c509.c | && inw(ioaddr + EL3_STATUS) & 1) { /* Make sure. */ |
ioaddr | 380 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS), inb(ioaddr + TX_STATUS), |
ioaddr | 381 | drivers/net/3c509.c | inw(ioaddr + RX_STATUS)); |
ioaddr | 382 | drivers/net/3c509.c | outw(0x7800, ioaddr + EL3_CMD); /* Fake interrupt trigger. */ |
ioaddr | 383 | drivers/net/3c509.c | outw(0x6899, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 384 | drivers/net/3c509.c | outw(0x78ff, ioaddr + EL3_CMD); /* Set all status bits visible. */ |
ioaddr | 394 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
ioaddr | 395 | drivers/net/3c509.c | outw(0x00, ioaddr + TX_FIFO); |
ioaddr | 397 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
ioaddr | 400 | drivers/net/3c509.c | if (inw(ioaddr + TX_FREE) > 1536) { |
ioaddr | 404 | drivers/net/3c509.c | outw(0x9000 + 1536, ioaddr + EL3_CMD); |
ioaddr | 414 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
ioaddr | 418 | drivers/net/3c509.c | if (tx_status & 0x30) outw(0x5800, ioaddr + EL3_CMD); |
ioaddr | 419 | drivers/net/3c509.c | if (tx_status & 0x3C) outw(0x4800, ioaddr + EL3_CMD); |
ioaddr | 420 | drivers/net/3c509.c | outb(0x00, ioaddr + TX_STATUS); /* Pop the status stack. */ |
ioaddr | 432 | drivers/net/3c509.c | int ioaddr, status; |
ioaddr | 444 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
ioaddr | 445 | drivers/net/3c509.c | status = inw(ioaddr + EL3_STATUS); |
ioaddr | 450 | drivers/net/3c509.c | while ((status = inw(ioaddr + EL3_STATUS)) & 0x01) { |
ioaddr | 459 | drivers/net/3c509.c | outw(0x6808, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 464 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 470 | drivers/net/3c509.c | outw(0x68FF, ioaddr + EL3_CMD); |
ioaddr | 474 | drivers/net/3c509.c | outw(0x6891, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 479 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS)); |
ioaddr | 503 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
ioaddr | 510 | drivers/net/3c509.c | outw(0xB000, ioaddr + EL3_CMD); |
ioaddr | 513 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
ioaddr | 514 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
ioaddr | 515 | drivers/net/3c509.c | /* Multiple collisions. */ inb(ioaddr + 2); |
ioaddr | 516 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
ioaddr | 517 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
ioaddr | 518 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
ioaddr | 519 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
ioaddr | 520 | drivers/net/3c509.c | lp->stats.rx_packets += inb(ioaddr + 7); |
ioaddr | 521 | drivers/net/3c509.c | /* Tx deferrals */ inb(ioaddr + 8); |
ioaddr | 522 | drivers/net/3c509.c | inw(ioaddr + 10); /* Total Rx and Tx octets. */ |
ioaddr | 523 | drivers/net/3c509.c | inw(ioaddr + 12); |
ioaddr | 527 | drivers/net/3c509.c | outw(0xA800, ioaddr + EL3_CMD); |
ioaddr | 535 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 540 | drivers/net/3c509.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS)); |
ioaddr | 541 | drivers/net/3c509.c | while ((rx_status = inw(ioaddr + RX_STATUS)) > 0) { |
ioaddr | 568 | drivers/net/3c509.c | insl(ioaddr+RX_FIFO, skb->data, |
ioaddr | 573 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 581 | drivers/net/3c509.c | inb(ioaddr + EL3_STATUS)); |
ioaddr | 582 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 583 | drivers/net/3c509.c | while (inw(ioaddr + EL3_STATUS) & 0x1000) |
ioaddr | 585 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS) ); |
ioaddr | 588 | drivers/net/3c509.c | inb(ioaddr + EL3_STATUS)); |
ioaddr | 600 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 601 | drivers/net/3c509.c | while (inw(ioaddr + EL3_STATUS) & 0x1000) |
ioaddr | 603 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS) ); |
ioaddr | 608 | drivers/net/3c509.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+8)); |
ioaddr | 623 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
ioaddr | 625 | drivers/net/3c509.c | outw(0x8007, ioaddr + EL3_CMD); |
ioaddr | 627 | drivers/net/3c509.c | outw(0x8008, ioaddr + EL3_CMD); |
ioaddr | 629 | drivers/net/3c509.c | outw(0x8005, ioaddr + EL3_CMD); |
ioaddr | 636 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 645 | drivers/net/3c509.c | outw(0xB000, ioaddr + EL3_CMD); |
ioaddr | 648 | drivers/net/3c509.c | outw(0x1800, ioaddr + EL3_CMD); |
ioaddr | 649 | drivers/net/3c509.c | outw(0x5000, ioaddr + EL3_CMD); |
ioaddr | 653 | drivers/net/3c509.c | outw(0xb800, ioaddr + EL3_CMD); |
ioaddr | 657 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) & ~MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 664 | drivers/net/3c509.c | outw(0x0f00, ioaddr + 8); |
ioaddr | 669 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 530 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 534 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ioaddr | 535 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ioaddr | 536 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ioaddr | 550 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 555 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x08, ioaddr + EN0_RXCR); |
ioaddr | 557 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x18, ioaddr + EN0_RXCR); |
ioaddr | 559 | drivers/net/8390.c | outb_p(E8390_RXCONFIG, ioaddr + EN0_RXCR); |
ioaddr | 59 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev); |
ioaddr | 78 | drivers/net/ac3200.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 80 | drivers/net/ac3200.c | if (ioaddr > 0x1ff) /* Check a single specified location. */ |
ioaddr | 81 | drivers/net/ac3200.c | return ac_probe1(ioaddr, dev); |
ioaddr | 82 | drivers/net/ac3200.c | else if (ioaddr > 0) /* Don't probe at all. */ |
ioaddr | 89 | drivers/net/ac3200.c | for (ioaddr = 0x1000; ioaddr < 0x9000; ioaddr += 0x1000) |
ioaddr | 90 | drivers/net/ac3200.c | if (ac_probe1(ioaddr, dev) == 0) |
ioaddr | 96 | drivers/net/ac3200.c | static int ac_probe1(int ioaddr, struct device *dev) |
ioaddr | 101 | drivers/net/ac3200.c | printk("AC3200 ethercard probe at %#3x:", ioaddr); |
ioaddr | 104 | drivers/net/ac3200.c | printk(" %02x", inb(ioaddr + AC_SA_PROM + i)); |
ioaddr | 109 | drivers/net/ac3200.c | if (inb(ioaddr + AC_SA_PROM + 0) != AC_ADDR0 |
ioaddr | 110 | drivers/net/ac3200.c | || inb(ioaddr + AC_SA_PROM + 1) != AC_ADDR1 |
ioaddr | 111 | drivers/net/ac3200.c | || inb(ioaddr + AC_SA_PROM + 2) != AC_ADDR2 ) { |
ioaddr | 120 | drivers/net/ac3200.c | if (inl(ioaddr + AC_ID_PORT) != AC_EISA_ID) { |
ioaddr | 122 | drivers/net/ac3200.c | inl(ioaddr + AC_EISA_ID), AC_EISA_ID); |
ioaddr | 127 | drivers/net/ac3200.c | dev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i); |
ioaddr | 131 | drivers/net/ac3200.c | " EISA ID %02x %02x %02x %02x.\n", inb(ioaddr + AC_CONFIG), |
ioaddr | 132 | drivers/net/ac3200.c | inb(ioaddr + AC_ID_PORT + 0), inb(ioaddr + AC_ID_PORT + 1), |
ioaddr | 133 | drivers/net/ac3200.c | inb(ioaddr + AC_ID_PORT + 2), inb(ioaddr + AC_ID_PORT + 3)); |
ioaddr | 138 | drivers/net/ac3200.c | dev->irq = config2irq(inb(ioaddr + AC_CONFIG)); |
ioaddr | 147 | drivers/net/ac3200.c | dev->base_addr = ioaddr; |
ioaddr | 156 | drivers/net/ac3200.c | outb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG); |
ioaddr | 160 | drivers/net/ac3200.c | dev->if_port = inb(ioaddr + AC_CONFIG) >> 6; |
ioaddr | 161 | drivers/net/ac3200.c | dev->mem_start = config2mem(inb(ioaddr + AC_CONFIG)); |
ioaddr | 175 | drivers/net/ac3200.c | dev->name, ioaddr, dev->irq, port_name[dev->if_port], |
ioaddr | 195 | drivers/net/ac3200.c | int ioaddr = dev->base_addr; |
ioaddr | 206 | drivers/net/ac3200.c | ushort ioaddr = dev->base_addr; |
ioaddr | 208 | drivers/net/ac3200.c | outb(AC_RESET, ioaddr + AC_RESET_PORT); |
ioaddr | 212 | drivers/net/ac3200.c | outb(AC_ENABLE, ioaddr + AC_RESET_PORT); |
ioaddr | 257 | drivers/net/ac3200.c | outb(0x00, ioaddr + 6); /* Disable interrupts. */ |
ioaddr | 205 | drivers/net/apricot.c | short ioaddr = dev->base_addr; |
ioaddr | 241 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 251 | drivers/net/apricot.c | short ioaddr = dev->base_addr; |
ioaddr | 255 | drivers/net/apricot.c | outw(0, ioaddr); |
ioaddr | 256 | drivers/net/apricot.c | outw(0, ioaddr); |
ioaddr | 257 | drivers/net/apricot.c | outb(4, ioaddr+0xf); |
ioaddr | 258 | drivers/net/apricot.c | outw(((((int)&lp->scp) & 0xffff) | 2), ioaddr); |
ioaddr | 259 | drivers/net/apricot.c | outw((((int)&lp->scp)>>16) & 0xffff, ioaddr); |
ioaddr | 273 | drivers/net/apricot.c | (void) inb (ioaddr+0x10); |
ioaddr | 274 | drivers/net/apricot.c | outb(4, ioaddr+0xf); |
ioaddr | 275 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 368 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 395 | drivers/net/apricot.c | outw (0, ioaddr+4); |
ioaddr | 420 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 515 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 534 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 543 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 631 | drivers/net/apricot.c | int ioaddr = 0x300; |
ioaddr | 636 | drivers/net/apricot.c | if (check_region(ioaddr, APRICOT_TOTAL_SIZE)) |
ioaddr | 640 | drivers/net/apricot.c | checksum += inb(ioaddr + 8 + i); |
ioaddr | 650 | drivers/net/apricot.c | printk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr); |
ioaddr | 653 | drivers/net/apricot.c | printk(" %2.2X", dev->dev_addr[i] = inb(ioaddr +8 + i)); |
ioaddr | 655 | drivers/net/apricot.c | dev->base_addr = ioaddr; |
ioaddr | 659 | drivers/net/apricot.c | snarf_region(ioaddr, APRICOT_TOTAL_SIZE); |
ioaddr | 686 | drivers/net/apricot.c | short ioaddr; |
ioaddr | 702 | drivers/net/apricot.c | ioaddr = dev->base_addr; |
ioaddr | 836 | drivers/net/apricot.c | (void) inb (ioaddr+0x10); |
ioaddr | 837 | drivers/net/apricot.c | outb (4, ioaddr+0xf); |
ioaddr | 838 | drivers/net/apricot.c | outw (0, ioaddr+4); |
ioaddr | 850 | drivers/net/apricot.c | int ioaddr = dev->base_addr; |
ioaddr | 861 | drivers/net/apricot.c | outw(0, ioaddr+4); |
ioaddr | 110 | drivers/net/at1700.c | static int at1700_probe1(struct device *dev, short ioaddr); |
ioaddr | 111 | drivers/net/at1700.c | static int read_eeprom(int ioaddr, int location); |
ioaddr | 139 | drivers/net/at1700.c | int ioaddr = *port; |
ioaddr | 140 | drivers/net/at1700.c | if (check_region(ioaddr, 32)) |
ioaddr | 142 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
ioaddr | 157 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
ioaddr | 169 | drivers/net/at1700.c | if ((inw(ioaddr + 2*i) | signature_invalid[i]) != signature[i]) { |
ioaddr | 172 | drivers/net/at1700.c | i, inw(ioaddr + 2*i), signature[i]); |
ioaddr | 175 | drivers/net/at1700.c | if (read_eeprom(ioaddr, 4) != 0x0000 |
ioaddr | 176 | drivers/net/at1700.c | || read_eeprom(ioaddr, 5) & 0x00ff != 0x00F4) |
ioaddr | 181 | drivers/net/at1700.c | snarf_region(ioaddr, 32); |
ioaddr | 183 | drivers/net/at1700.c | irq = irqmap[(read_eeprom(ioaddr, 12)&0x04) |
ioaddr | 184 | drivers/net/at1700.c | | (read_eeprom(ioaddr, 0)>>14)]; |
ioaddr | 189 | drivers/net/at1700.c | "IRQ %d.\n", ioaddr, irq); |
ioaddr | 194 | drivers/net/at1700.c | ioaddr, irq); |
ioaddr | 196 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
ioaddr | 201 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
ioaddr | 214 | drivers/net/at1700.c | ushort setup_value = read_eeprom(ioaddr, 12); |
ioaddr | 222 | drivers/net/at1700.c | outb(0xe0, ioaddr + 7); |
ioaddr | 224 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 227 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 229 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 233 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 236 | drivers/net/at1700.c | outb(0xe8, ioaddr + 7); |
ioaddr | 240 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 261 | drivers/net/at1700.c | static int read_eeprom(int ioaddr, int location) |
ioaddr | 265 | drivers/net/at1700.c | short ee_addr = ioaddr + EEPROM_Ctrl; |
ioaddr | 266 | drivers/net/at1700.c | short ee_daddr = ioaddr + EEPROM_Data; |
ioaddr | 305 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 309 | drivers/net/at1700.c | outb(0xe0, ioaddr + CONFIG_1); |
ioaddr | 313 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 316 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 318 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 322 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 325 | drivers/net/at1700.c | outb(0x5a, ioaddr + CONFIG_0); |
ioaddr | 327 | drivers/net/at1700.c | outb(0xe8, ioaddr + CONFIG_1); |
ioaddr | 330 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 331 | drivers/net/at1700.c | outb(0x81, ioaddr + RX_INTR); |
ioaddr | 346 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 355 | drivers/net/at1700.c | inw(ioaddr + STATUS), inb(ioaddr + TX_STATUS) & 0x80 |
ioaddr | 358 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
ioaddr | 359 | drivers/net/at1700.c | inw(ioaddr + 6), inw(ioaddr + 8), inw(ioaddr + 10), |
ioaddr | 360 | drivers/net/at1700.c | inw(ioaddr + 12), inw(ioaddr + 14)); |
ioaddr | 363 | drivers/net/at1700.c | outw(0xffff, ioaddr + 24); |
ioaddr | 364 | drivers/net/at1700.c | outw(0xffff, ioaddr + TX_STATUS); |
ioaddr | 365 | drivers/net/at1700.c | outw(0xe85a, ioaddr + CONFIG_0); |
ioaddr | 366 | drivers/net/at1700.c | outw(0x8100, ioaddr + TX_INTR); |
ioaddr | 388 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 390 | drivers/net/at1700.c | outw(length, ioaddr + DATAPORT); |
ioaddr | 391 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 398 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 407 | drivers/net/at1700.c | outb(0x82, ioaddr + TX_INTR); |
ioaddr | 422 | drivers/net/at1700.c | int ioaddr, status; |
ioaddr | 430 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
ioaddr | 432 | drivers/net/at1700.c | status = inw(ioaddr + TX_STATUS); |
ioaddr | 433 | drivers/net/at1700.c | outw(status, ioaddr + TX_STATUS); |
ioaddr | 438 | drivers/net/at1700.c | || (inb(ioaddr + RX_MODE) & 0x40) == 0) { /* Got a packet(s). */ |
ioaddr | 445 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 454 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 468 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 471 | drivers/net/at1700.c | while ((inb(ioaddr + RX_MODE) & 0x40) == 0) { |
ioaddr | 472 | drivers/net/at1700.c | ushort status = inw(ioaddr + DATAPORT); |
ioaddr | 476 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
ioaddr | 479 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 491 | drivers/net/at1700.c | ushort pkt_len = inw(ioaddr + DATAPORT); |
ioaddr | 498 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 506 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 513 | drivers/net/at1700.c | insw(ioaddr + DATAPORT, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 536 | drivers/net/at1700.c | if ((inb(ioaddr + RX_MODE) & 0x40) == 0x40) |
ioaddr | 538 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 543 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
ioaddr | 552 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 560 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 565 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 593 | drivers/net/at1700.c | short ioaddr = dev->base_addr; |
ioaddr | 595 | drivers/net/at1700.c | outw(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ |
ioaddr | 597 | drivers/net/at1700.c | outw(2, ioaddr + RX_MODE); /* Disable promiscuous, use normal mode */ |
ioaddr | 116 | drivers/net/atp.c | #define check_region(ioaddr, size) 0 |
ioaddr | 117 | drivers/net/atp.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 133 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr); |
ioaddr | 135 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
ioaddr | 138 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int mode); |
ioaddr | 139 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length); |
ioaddr | 143 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *buffer, int data_mode); |
ioaddr | 167 | drivers/net/atp.c | int ioaddr = *port; |
ioaddr | 168 | drivers/net/atp.c | outb(0x57, ioaddr + PAR_DATA); |
ioaddr | 169 | drivers/net/atp.c | if (inb(ioaddr + PAR_DATA) != 0x57) |
ioaddr | 171 | drivers/net/atp.c | if (atp_probe1(dev, ioaddr) == 0) |
ioaddr | 178 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr) |
ioaddr | 182 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 185 | drivers/net/atp.c | saved_ctrl_reg = inb(ioaddr + PAR_CONTROL); |
ioaddr | 187 | drivers/net/atp.c | outb(0x04, ioaddr + PAR_CONTROL); |
ioaddr | 188 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 190 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR1); |
ioaddr | 194 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 197 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR2_h); |
ioaddr | 199 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 203 | drivers/net/atp.c | write_reg_byte(ioaddr, CMR2, 0x01); /* No accept mode, IRQ out. */ |
ioaddr | 204 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); /* Enable Tx and Rx. */ |
ioaddr | 207 | drivers/net/atp.c | if (ioaddr == 0x378) |
ioaddr | 211 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_TxRxOFF); /* Disable Tx and Rx units. */ |
ioaddr | 212 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 214 | drivers/net/atp.c | dev->base_addr = ioaddr; |
ioaddr | 225 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 258 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 262 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_EEPROM); /* Point to the EEPROM control registers. */ |
ioaddr | 266 | drivers/net/atp.c | if (eeprom_op(ioaddr, EE_READ(0)) == 0xffff) |
ioaddr | 271 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
ioaddr | 273 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 288 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
ioaddr | 295 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_LOW); |
ioaddr | 297 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_HIGH); |
ioaddr | 299 | drivers/net/atp.c | if (read_nibble(ioaddr, PROM_DATA) & EE_DATA_READ) |
ioaddr | 303 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, EE_CLK_LOW & ~EE_CS); |
ioaddr | 340 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 343 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 346 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 348 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 352 | drivers/net/atp.c | (read_nibble(ioaddr, CMR2_h) >> 3) & 0x0f); |
ioaddr | 355 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 356 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); |
ioaddr | 359 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 362 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 363 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 373 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length) |
ioaddr | 375 | drivers/net/atp.c | write_reg_byte(ioaddr, TxCNT0, length & 0xff); |
ioaddr | 376 | drivers/net/atp.c | write_reg(ioaddr, TxCNT1, length >> 8); |
ioaddr | 377 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_Xmit); |
ioaddr | 380 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int data_mode) |
ioaddr | 383 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 386 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 388 | drivers/net/atp.c | write_byte_mode0(ioaddr, *packet++); |
ioaddr | 394 | drivers/net/atp.c | outb(Ctrl_LNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 395 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 397 | drivers/net/atp.c | outb((outbyte & 0x0f)|0x40, ioaddr + PAR_DATA); |
ioaddr | 398 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 400 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 401 | drivers/net/atp.c | outb(Ctrl_HNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 403 | drivers/net/atp.c | write_byte_mode1(ioaddr, *packet++); |
ioaddr | 406 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 407 | drivers/net/atp.c | outb(Ctrl_HNibWrite | Ctrl_SelData | Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 414 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 423 | drivers/net/atp.c | inb(ioaddr + PAR_CONTROL) & 0x10 ? "network cable problem" |
ioaddr | 453 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 454 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, 0); |
ioaddr | 457 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
ioaddr | 461 | drivers/net/atp.c | trigger_send(ioaddr, length); |
ioaddr | 470 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 471 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 487 | drivers/net/atp.c | int ioaddr, status, boguscount = 20; |
ioaddr | 496 | drivers/net/atp.c | ioaddr = dev->base_addr; |
ioaddr | 500 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 503 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 504 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 508 | drivers/net/atp.c | status = read_nibble(ioaddr, ISR); |
ioaddr | 512 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_RxOK); /* Clear the Rx interrupt. */ |
ioaddr | 514 | drivers/net/atp.c | int read_status = read_nibble(ioaddr, CMR1); |
ioaddr | 522 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 525 | drivers/net/atp.c | write_reg_high(ioaddr, ISR, ISRh_RxErr); |
ioaddr | 526 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 538 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_TxErr + ISR_TxOK); |
ioaddr | 548 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_ReXmit + CMR1_Xmit); |
ioaddr | 554 | drivers/net/atp.c | trigger_send(ioaddr, lp->saved_tx_size); |
ioaddr | 569 | drivers/net/atp.c | (read_nibble(ioaddr, CMR1) >> 3) & 15); |
ioaddr | 583 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 587 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 589 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 591 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 592 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); /* Hmmm, really needed? */ |
ioaddr | 605 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 613 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 614 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
ioaddr | 640 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb->data, dev->if_port); |
ioaddr | 655 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_NextPkt); |
ioaddr | 659 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
ioaddr | 663 | drivers/net/atp.c | outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 665 | drivers/net/atp.c | ioaddr + PAR_DATA); |
ioaddr | 667 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
ioaddr | 669 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
ioaddr | 671 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
ioaddr | 673 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
ioaddr | 675 | drivers/net/atp.c | outb(EOC+HNib+MAR, ioaddr + PAR_DATA); |
ioaddr | 676 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 684 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 691 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 694 | drivers/net/atp.c | outb(0x00, ioaddr + PAR_CONTROL); |
ioaddr | 699 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 723 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 725 | 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 | 323 | drivers/net/depca.c | static int depca_probe1(struct device *dev, short ioaddr); |
ioaddr | 331 | drivers/net/depca.c | static int DevicePresent(short ioaddr); |
ioaddr | 339 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, int ioaddr); |
ioaddr | 392 | drivers/net/depca.c | depca_probe1(struct device *dev, short ioaddr) |
ioaddr | 433 | drivers/net/depca.c | dev->base_addr = ioaddr; |
ioaddr | 435 | drivers/net/depca.c | if ((ioaddr&0x0fff)==DEPCA_EISA_IO_PORTS) {/* EISA slot address */ |
ioaddr | 437 | drivers/net/depca.c | dev->name, name, ioaddr, ((ioaddr>>12)&0x0f)); |
ioaddr | 439 | drivers/net/depca.c | printk("%s: %s at %#3x", dev->name, name, ioaddr); |
ioaddr | 468 | drivers/net/depca.c | snarf_region(ioaddr, DEPCA_TOTAL_SIZE); |
ioaddr | 663 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
ioaddr | 787 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 939 | drivers/net/depca.c | int csr0, ioaddr, nicsr; |
ioaddr | 945 | drivers/net/depca.c | ioaddr = dev->base_addr; |
ioaddr | 1124 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1156 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1172 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1218 | drivers/net/depca.c | short ioaddr = dev->base_addr; |
ioaddr | 1299 | drivers/net/depca.c | int ioaddr = *port; |
ioaddr | 1301 | drivers/net/depca.c | if (DevicePresent(ioaddr) == 0) { |
ioaddr | 1303 | drivers/net/depca.c | dev = alloc_device(dev, ioaddr); |
ioaddr | 1305 | drivers/net/depca.c | if ((status = depca_probe1(dev, ioaddr)) == 0) { |
ioaddr | 1321 | drivers/net/depca.c | int i, ioaddr = DEPCA_EISA_IO_PORTS; |
ioaddr | 1324 | drivers/net/depca.c | ioaddr+=0x1000; /* get the first slot address */ |
ioaddr | 1325 | drivers/net/depca.c | for (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, ioaddr+=0x1000) { |
ioaddr | 1327 | drivers/net/depca.c | if (DevicePresent(ioaddr) == 0) { |
ioaddr | 1329 | drivers/net/depca.c | dev = alloc_device(dev, ioaddr); |
ioaddr | 1331 | drivers/net/depca.c | if ((status = depca_probe1(dev, ioaddr)) == 0) { |
ioaddr | 1345 | drivers/net/depca.c | static struct device *alloc_device(struct device *dev, int ioaddr) |
ioaddr | 1379 | drivers/net/depca.c | dev->base_addr = ioaddr; /* assign the io address */ |
ioaddr | 1434 | drivers/net/depca.c | static int DevicePresent(short ioaddr) |
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 | 147 | drivers/net/depca.h | #define DEPCA_EISA_ID ioaddr+0x80 /* ID long word for EISA card */ |
ioaddr | 148 | drivers/net/depca.h | #define DEPCA_EISA_CTRL ioaddr+0x84 /* Control word for EISA card */ |
ioaddr | 94 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr); |
ioaddr | 132 | drivers/net/e2100.c | int e21_probe1(struct device *dev, int ioaddr) |
ioaddr | 138 | drivers/net/e2100.c | if (inb(ioaddr + E21_SAPROM + 0) != 0x00 |
ioaddr | 139 | drivers/net/e2100.c | || inb(ioaddr + E21_SAPROM + 1) != 0x00 |
ioaddr | 140 | drivers/net/e2100.c | || inb(ioaddr + E21_SAPROM + 2) != 0x1d) |
ioaddr | 144 | drivers/net/e2100.c | outb(E8390_NODMA + E8390_STOP, ioaddr); |
ioaddr | 146 | drivers/net/e2100.c | status = inb(ioaddr); |
ioaddr | 151 | drivers/net/e2100.c | snarf_region(ioaddr, E21_IO_EXTENT); |
ioaddr | 155 | drivers/net/e2100.c | station_addr[i] = inb(ioaddr + E21_SAPROM + i); |
ioaddr | 157 | drivers/net/e2100.c | inb(ioaddr + E21_MEDIA); /* Point to media selection. */ |
ioaddr | 158 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); /* and disable the secondary interface. */ |
ioaddr | 160 | drivers/net/e2100.c | printk("%s: E21** at %#3x,", dev->name, ioaddr); |
ioaddr | 179 | drivers/net/e2100.c | dev->base_addr = ioaddr; |
ioaddr | 196 | drivers/net/e2100.c | inb(ioaddr + E21_MEDIA); /* Turn automatic media detection on. */ |
ioaddr | 198 | drivers/net/e2100.c | if (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) { |
ioaddr | 236 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 244 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_LOW); |
ioaddr | 245 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq & 7)); |
ioaddr | 246 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_HIGH); /* High IRQ bit, and if_port. */ |
ioaddr | 247 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0) |
ioaddr | 249 | drivers/net/e2100.c | inb(ioaddr + E21_MEM_BASE); |
ioaddr | 250 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7)); |
ioaddr | 258 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 260 | drivers/net/e2100.c | outb(0x01, ioaddr); |
ioaddr | 276 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 280 | drivers/net/e2100.c | mem_on(ioaddr, shared_mem, start_page); |
ioaddr | 289 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 298 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 304 | drivers/net/e2100.c | mem_on(ioaddr, shared_mem, start_page); |
ioaddr | 307 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 313 | drivers/net/e2100.c | short ioaddr = dev->base_addr; |
ioaddr | 322 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_LOW); |
ioaddr | 323 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); |
ioaddr | 324 | drivers/net/e2100.c | inb(ioaddr + E21_IRQ_HIGH); /* High IRQ bit, and if_port. */ |
ioaddr | 325 | drivers/net/e2100.c | outb(0, ioaddr + E21_ASIC); |
ioaddr | 333 | drivers/net/e2100.c | mem_off(ioaddr); |
ioaddr | 283 | drivers/net/eexpress.c | static int eexp_probe1(struct device *dev, short ioaddr); |
ioaddr | 292 | drivers/net/eexpress.c | static int read_eeprom(int ioaddr, int location); |
ioaddr | 338 | drivers/net/eexpress.c | int eexp_probe1(struct device *dev, short ioaddr) |
ioaddr | 343 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x,", dev->name, ioaddr); |
ioaddr | 347 | drivers/net/eexpress.c | station_addr[0] = read_eeprom(ioaddr, 2); |
ioaddr | 348 | drivers/net/eexpress.c | station_addr[1] = read_eeprom(ioaddr, 3); |
ioaddr | 349 | drivers/net/eexpress.c | station_addr[2] = read_eeprom(ioaddr, 4); |
ioaddr | 359 | drivers/net/eexpress.c | snarf_region(ioaddr, 16); |
ioaddr | 360 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
ioaddr | 373 | drivers/net/eexpress.c | unsigned short setupval = read_eeprom(ioaddr, 0); |
ioaddr | 377 | drivers/net/eexpress.c | read_eeprom(ioaddr, 5) & 0x1 ? TP : BNC; |
ioaddr | 381 | drivers/net/eexpress.c | outb(0x00, ioaddr + SET_IRQ); |
ioaddr | 385 | drivers/net/eexpress.c | outb(ASIC_RESET, ioaddr + EEPROM_Ctrl); |
ioaddr | 417 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 433 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
ioaddr | 445 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 455 | drivers/net/eexpress.c | inw(ioaddr+SCB_STATUS) & 0x8000 ? "IRQ conflict" : |
ioaddr | 466 | drivers/net/eexpress.c | outw(0xf000|CUC_START|RX_START, ioaddr + SCB_CMD); |
ioaddr | 467 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 490 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 494 | drivers/net/eexpress.c | outb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 513 | drivers/net/eexpress.c | int ioaddr, status, boguscount = 0; |
ioaddr | 522 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
ioaddr | 525 | drivers/net/eexpress.c | status = inw(ioaddr + SCB_STATUS); |
ioaddr | 532 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 537 | drivers/net/eexpress.c | outw(lp->tx_reap, ioaddr + READ_PTR); |
ioaddr | 538 | drivers/net/eexpress.c | tx_status = inw(ioaddr); |
ioaddr | 574 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 580 | drivers/net/eexpress.c | outw(IDLELOOP, ioaddr + WRITE_PTR); |
ioaddr | 581 | drivers/net/eexpress.c | outw(0, ioaddr); |
ioaddr | 582 | drivers/net/eexpress.c | outw(CmdNOp, ioaddr); |
ioaddr | 583 | drivers/net/eexpress.c | outw(IDLELOOP, ioaddr); |
ioaddr | 588 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
ioaddr | 593 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 604 | drivers/net/eexpress.c | outw(cur_rxbuf, ioaddr + READ_PTR); |
ioaddr | 606 | drivers/net/eexpress.c | printk(" %04x", inw(ioaddr)); |
ioaddr | 613 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
ioaddr | 617 | drivers/net/eexpress.c | outw(ack_cmd, ioaddr + SCB_CMD); |
ioaddr | 618 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 622 | drivers/net/eexpress.c | inw(ioaddr + SCB_CMD)); |
ioaddr | 625 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
ioaddr | 632 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 638 | drivers/net/eexpress.c | outw(RX_SUSPEND | CUC_SUSPEND, ioaddr + SCB_CMD); |
ioaddr | 639 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 642 | drivers/net/eexpress.c | outb(0, ioaddr + SET_IRQ); |
ioaddr | 674 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 681 | drivers/net/eexpress.c | outw(SET_MC_CMD + 6, ioaddr + WRITE_PTR); |
ioaddr | 682 | drivers/net/eexpress.c | outw(num_addrs * 6, ioaddr); |
ioaddr | 683 | drivers/net/eexpress.c | outsw(ioaddr, addrs, num_addrs*3); /* 3 = addr len in words */ |
ioaddr | 688 | drivers/net/eexpress.c | outw(99, ioaddr); /* Disable promiscuous mode, use normal mode */ |
ioaddr | 699 | drivers/net/eexpress.c | read_eeprom(int ioaddr, int location) |
ioaddr | 703 | drivers/net/eexpress.c | short ee_addr = ioaddr + EEPROM_Ctrl; |
ioaddr | 740 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 744 | drivers/net/eexpress.c | outb(inb(ioaddr + Config) | 0x02, ioaddr + Config); |
ioaddr | 747 | drivers/net/eexpress.c | outb(_586_RESET, ioaddr + EEPROM_Ctrl); |
ioaddr | 750 | drivers/net/eexpress.c | outw(0xfff6, ioaddr + WRITE_PTR); |
ioaddr | 751 | drivers/net/eexpress.c | outsw(ioaddr, init_words, sizeof(init_words)>>1); |
ioaddr | 754 | drivers/net/eexpress.c | outw(SA_OFFSET, ioaddr + WRITE_PTR); |
ioaddr | 755 | drivers/net/eexpress.c | outsw(ioaddr, dev->dev_addr, 3); |
ioaddr | 768 | drivers/net/eexpress.c | outb(0x00, ioaddr + EEPROM_Ctrl); |
ioaddr | 772 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 776 | drivers/net/eexpress.c | while (inw(ioaddr + SCB_STATUS) == 0) |
ioaddr | 779 | drivers/net/eexpress.c | dev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD)); |
ioaddr | 783 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 787 | drivers/net/eexpress.c | outb(inb(ioaddr + Config) & ~0x02, ioaddr + Config); |
ioaddr | 790 | drivers/net/eexpress.c | inw(ioaddr + SCB_STATUS)); |
ioaddr | 798 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 804 | drivers/net/eexpress.c | outw(cur_rxbuf, ioaddr + WRITE_PTR); |
ioaddr | 805 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Status */ |
ioaddr | 806 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Command */ |
ioaddr | 807 | drivers/net/eexpress.c | outw(cur_rxbuf + RX_BUF_SIZE, ioaddr); /* Link */ |
ioaddr | 808 | drivers/net/eexpress.c | outw(cur_rxbuf + 22, ioaddr); /* Buffer offset */ |
ioaddr | 809 | drivers/net/eexpress.c | outw(0xFeed, ioaddr); /* Pad for dest addr. */ |
ioaddr | 810 | drivers/net/eexpress.c | outw(0xF00d, ioaddr); |
ioaddr | 811 | drivers/net/eexpress.c | outw(0xF001, ioaddr); |
ioaddr | 812 | drivers/net/eexpress.c | outw(0x0505, ioaddr); /* Pad for source addr. */ |
ioaddr | 813 | drivers/net/eexpress.c | outw(0x2424, ioaddr); |
ioaddr | 814 | drivers/net/eexpress.c | outw(0x6565, ioaddr); |
ioaddr | 815 | drivers/net/eexpress.c | outw(0xdeaf, ioaddr); /* Pad for protocol. */ |
ioaddr | 817 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Buffer: Actual count */ |
ioaddr | 818 | drivers/net/eexpress.c | outw(-1, ioaddr); /* Buffer: Next (none). */ |
ioaddr | 819 | drivers/net/eexpress.c | outw(cur_rxbuf + 0x20, ioaddr); /* Buffer: Address low */ |
ioaddr | 820 | drivers/net/eexpress.c | outw(0x0000, ioaddr); |
ioaddr | 822 | drivers/net/eexpress.c | outw(0x8000 + RX_BUF_SIZE-0x20, ioaddr); |
ioaddr | 830 | drivers/net/eexpress.c | outw(lp->rx_tail + 2, ioaddr + WRITE_PTR); |
ioaddr | 831 | drivers/net/eexpress.c | outw(0xC000, ioaddr); /* Command, mark as last. */ |
ioaddr | 832 | drivers/net/eexpress.c | outw(lp->rx_head, ioaddr); /* Link */ |
ioaddr | 839 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 843 | drivers/net/eexpress.c | outw(tx_block, ioaddr + WRITE_PTR); |
ioaddr | 844 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Tx status */ |
ioaddr | 845 | drivers/net/eexpress.c | outw(CMD_INTR|CmdTx, ioaddr); /* Tx command */ |
ioaddr | 846 | drivers/net/eexpress.c | outw(tx_block+16, ioaddr); /* Next command is a NoOp. */ |
ioaddr | 847 | drivers/net/eexpress.c | outw(tx_block+8, ioaddr); /* Data Buffer offset. */ |
ioaddr | 850 | drivers/net/eexpress.c | outw(length | 0x8000, ioaddr); /* Byte count parameter. */ |
ioaddr | 851 | drivers/net/eexpress.c | outw(-1, ioaddr); /* No next data buffer. */ |
ioaddr | 852 | drivers/net/eexpress.c | outw(tx_block+22, ioaddr); /* Buffer follows the NoOp command. */ |
ioaddr | 853 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Buffer address high bits (always zero). */ |
ioaddr | 856 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Tx status */ |
ioaddr | 857 | drivers/net/eexpress.c | outw(CmdNOp, ioaddr); /* Tx command */ |
ioaddr | 858 | drivers/net/eexpress.c | outw(tx_block+16, ioaddr); /* Next is myself. */ |
ioaddr | 862 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 865 | drivers/net/eexpress.c | outw(lp->tx_cmd_link, ioaddr + WRITE_PTR); |
ioaddr | 866 | drivers/net/eexpress.c | outw(tx_block, ioaddr); |
ioaddr | 876 | drivers/net/eexpress.c | "reap %4x status %4.4x.\n", dev->name, ioaddr, length, |
ioaddr | 877 | drivers/net/eexpress.c | tx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS)); |
ioaddr | 888 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 889 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 896 | drivers/net/eexpress.c | outw(rx_head, ioaddr + READ_PTR); |
ioaddr | 897 | drivers/net/eexpress.c | while ((frame_status = inw(ioaddr)) < 0) { /* Command complete */ |
ioaddr | 898 | drivers/net/eexpress.c | short rfd_cmd = inw(ioaddr); |
ioaddr | 899 | drivers/net/eexpress.c | short next_rx_frame = inw(ioaddr); |
ioaddr | 900 | drivers/net/eexpress.c | short data_buffer_addr = inw(ioaddr); |
ioaddr | 904 | drivers/net/eexpress.c | outw(data_buffer_addr, ioaddr + READ_PTR); |
ioaddr | 905 | drivers/net/eexpress.c | pkt_len = inw(ioaddr); |
ioaddr | 935 | drivers/net/eexpress.c | outw(data_buffer_addr + 10, ioaddr + READ_PTR); |
ioaddr | 937 | drivers/net/eexpress.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 944 | drivers/net/eexpress.c | outw(rx_head, ioaddr + WRITE_PTR); |
ioaddr | 945 | drivers/net/eexpress.c | outw(0x0000, ioaddr); |
ioaddr | 946 | drivers/net/eexpress.c | outw(0xC000, ioaddr); |
ioaddr | 957 | drivers/net/eexpress.c | outw(rx_tail+2, ioaddr + WRITE_PTR); |
ioaddr | 958 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Clear the end-of-list on the prev. RFD. */ |
ioaddr | 961 | drivers/net/eexpress.c | outw(rx_tail+4, ioaddr + READ_PTR); |
ioaddr | 962 | drivers/net/eexpress.c | if (inw(ioaddr) != rx_head) { |
ioaddr | 964 | drivers/net/eexpress.c | dev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)), |
ioaddr | 966 | drivers/net/eexpress.c | outw(rx_head, ioaddr); |
ioaddr | 974 | drivers/net/eexpress.c | outw(rx_head, ioaddr + READ_PTR); |
ioaddr | 981 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
ioaddr | 97 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr); |
ioaddr | 118 | drivers/net/hp-plus.c | short ioaddr = dev->base_addr; |
ioaddr | 120 | drivers/net/hp-plus.c | if (ioaddr > 0x1ff) /* Check a single specified location. */ |
ioaddr | 121 | drivers/net/hp-plus.c | return hpp_probe1(dev, ioaddr); |
ioaddr | 122 | drivers/net/hp-plus.c | else if (ioaddr > 0) /* Don't probe at all. */ |
ioaddr | 136 | drivers/net/hp-plus.c | int hpp_probe1(struct device *dev, int ioaddr) |
ioaddr | 145 | drivers/net/hp-plus.c | if (inw(ioaddr + HP_ID) != 0x4850 |
ioaddr | 146 | drivers/net/hp-plus.c | || (inw(ioaddr + HP_PAGING) & 0xfff0) != 0x5300) |
ioaddr | 150 | drivers/net/hp-plus.c | printk("%s: %s at %#3x,", dev->name, name, ioaddr); |
ioaddr | 153 | drivers/net/hp-plus.c | outw(MAC_Page, ioaddr + HP_PAGING); |
ioaddr | 156 | drivers/net/hp-plus.c | unsigned char inval = inb(ioaddr + 8 + i); |
ioaddr | 161 | drivers/net/hp-plus.c | checksum += inb(ioaddr + 14); |
ioaddr | 168 | drivers/net/hp-plus.c | outw(ID_Page, ioaddr + HP_PAGING); |
ioaddr | 169 | drivers/net/hp-plus.c | printk(" ID %4.4x", inw(ioaddr + 12)); |
ioaddr | 173 | drivers/net/hp-plus.c | snarf_region(ioaddr, HP_IO_EXTENT); |
ioaddr | 176 | drivers/net/hp-plus.c | outw(HW_Page, ioaddr + HP_PAGING); |
ioaddr | 178 | drivers/net/hp-plus.c | int irq = inb(ioaddr + 13) & 0x0f; |
ioaddr | 179 | drivers/net/hp-plus.c | int option = inw(ioaddr + HPP_OPTION); |
ioaddr | 183 | drivers/net/hp-plus.c | mem_start = inw(ioaddr + 9) << 8; |
ioaddr | 194 | drivers/net/hp-plus.c | outw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14); |
ioaddr | 197 | drivers/net/hp-plus.c | dev->base_addr = ioaddr + NIC_OFFSET; |
ioaddr | 224 | drivers/net/hp-plus.c | outw(Perf_Page, ioaddr + HP_PAGING); |
ioaddr | 227 | drivers/net/hp-plus.c | outw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION); |
ioaddr | 235 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 243 | drivers/net/hp-plus.c | option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 244 | drivers/net/hp-plus.c | outw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 247 | drivers/net/hp-plus.c | outw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 250 | drivers/net/hp-plus.c | outw(HW_Page, ioaddr + HP_PAGING); |
ioaddr | 251 | drivers/net/hp-plus.c | outw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14); |
ioaddr | 254 | drivers/net/hp-plus.c | outw(Perf_Page, ioaddr + HP_PAGING); |
ioaddr | 262 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 263 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 269 | drivers/net/hp-plus.c | ioaddr + HPP_OPTION); |
ioaddr | 277 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 278 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 282 | drivers/net/hp-plus.c | outw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 287 | drivers/net/hp-plus.c | outw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION); |
ioaddr | 292 | drivers/net/hp-plus.c | if ((inb_p(ioaddr+NIC_OFFSET+EN0_ISR) & ENISR_RESET) == 0) |
ioaddr | 305 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 307 | drivers/net/hp-plus.c | outw(ring_offset, ioaddr + HPP_IN_ADDR); |
ioaddr | 308 | drivers/net/hp-plus.c | insw(ioaddr + HP_DATAPORT, buf, count>>1); |
ioaddr | 310 | drivers/net/hp-plus.c | buf[count-1] = inw(ioaddr + HP_DATAPORT); |
ioaddr | 317 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 318 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 320 | drivers/net/hp-plus.c | outw(ring_offset, ioaddr + HPP_IN_ADDR); |
ioaddr | 322 | drivers/net/hp-plus.c | outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION); |
ioaddr | 325 | drivers/net/hp-plus.c | outw(option_reg, ioaddr + HPP_OPTION); |
ioaddr | 336 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 337 | drivers/net/hp-plus.c | outw(start_page << 8, ioaddr + HPP_OUT_ADDR); |
ioaddr | 338 | drivers/net/hp-plus.c | outsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2); |
ioaddr | 346 | drivers/net/hp-plus.c | int ioaddr = dev->base_addr - NIC_OFFSET; |
ioaddr | 347 | drivers/net/hp-plus.c | int option_reg = inw(ioaddr + HPP_OPTION); |
ioaddr | 349 | drivers/net/hp-plus.c | outw(start_page << 8, ioaddr + HPP_OUT_ADDR); |
ioaddr | 350 | drivers/net/hp-plus.c | outw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION); |
ioaddr | 352 | drivers/net/hp-plus.c | outw(option_reg, ioaddr + HPP_OPTION); |
ioaddr | 30 | drivers/net/hp.c | #define check_region(ioaddr, size) 0 |
ioaddr | 31 | drivers/net/hp.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 49 | drivers/net/hp.c | int hpprobe1(struct device *dev, int ioaddr); |
ioaddr | 70 | drivers/net/hp.c | short ioaddr = dev->base_addr; |
ioaddr | 72 | drivers/net/hp.c | if (ioaddr > 0x1ff) /* Check a single specified location. */ |
ioaddr | 73 | drivers/net/hp.c | return hpprobe1(dev, ioaddr); |
ioaddr | 74 | drivers/net/hp.c | else if (ioaddr > 0) /* Don't probe at all. */ |
ioaddr | 87 | drivers/net/hp.c | int hpprobe1(struct device *dev, int ioaddr) |
ioaddr | 96 | drivers/net/hp.c | if (inb(ioaddr) != 0x08 |
ioaddr | 97 | drivers/net/hp.c | || inb(ioaddr+1) != 0x00 |
ioaddr | 98 | drivers/net/hp.c | || inb(ioaddr+2) != 0x09 |
ioaddr | 99 | drivers/net/hp.c | || inb(ioaddr+14) == 0x57) |
ioaddr | 104 | drivers/net/hp.c | if ((board_id = inb(ioaddr + HP_ID)) & 0x80) { |
ioaddr | 113 | drivers/net/hp.c | snarf_region(ioaddr, HP_IO_EXTENT); |
ioaddr | 115 | drivers/net/hp.c | printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); |
ioaddr | 118 | drivers/net/hp.c | printk(" %2.2x", station_addr[i] = inb(ioaddr + i)); |
ioaddr | 130 | drivers/net/hp.c | outb_p(irqmap[irq] | HP_RUN, ioaddr + HP_CONFIGURE); |
ioaddr | 131 | drivers/net/hp.c | outb_p( 0x00 | HP_RUN, ioaddr + HP_CONFIGURE); |
ioaddr | 157 | drivers/net/hp.c | dev->base_addr = ioaddr + NIC_OFFSET; |
ioaddr | 203 | drivers/net/lance.c | unsigned long lance_probe1(short ioaddr, unsigned long mem_start); |
ioaddr | 222 | drivers/net/lance.c | int ioaddr = *port; |
ioaddr | 224 | drivers/net/lance.c | if ( check_region(ioaddr, LANCE_TOTAL_SIZE) == 0 |
ioaddr | 225 | drivers/net/lance.c | && inb(ioaddr + 14) == 0x57 |
ioaddr | 226 | drivers/net/lance.c | && inb(ioaddr + 15) == 0x57) { |
ioaddr | 227 | drivers/net/lance.c | mem_start = lance_probe1(ioaddr, mem_start); |
ioaddr | 234 | drivers/net/lance.c | unsigned long lance_probe1(short ioaddr, unsigned long mem_start) |
ioaddr | 241 | drivers/net/lance.c | hpJ2405A = (inb(ioaddr) == 0x08 && inb(ioaddr+1) == 0x00 |
ioaddr | 242 | drivers/net/lance.c | && inb(ioaddr+2) == 0x09); |
ioaddr | 245 | drivers/net/lance.c | reset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */ |
ioaddr | 250 | drivers/net/lance.c | outw(reset_val, ioaddr+LANCE_RESET); |
ioaddr | 252 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */ |
ioaddr | 253 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) != 0x0004) |
ioaddr | 260 | drivers/net/lance.c | printk("%s: LANCE at %#3x,", dev->name, ioaddr); |
ioaddr | 265 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 267 | drivers/net/lance.c | dev->base_addr = ioaddr; |
ioaddr | 268 | drivers/net/lance.c | snarf_region(ioaddr, LANCE_TOTAL_SIZE); |
ioaddr | 285 | drivers/net/lance.c | outw(88, ioaddr+LANCE_ADDR); |
ioaddr | 286 | drivers/net/lance.c | lp->old_lance = (inw(ioaddr+LANCE_DATA) != 0x3003); |
ioaddr | 290 | drivers/net/lance.c | inw(ioaddr+LANCE_DATA)); |
ioaddr | 301 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 302 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 303 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 304 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 305 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 310 | drivers/net/lance.c | short reset_val = inw(ioaddr+LANCE_RESET); |
ioaddr | 328 | drivers/net/lance.c | outw(0x0041, ioaddr+LANCE_DATA); |
ioaddr | 345 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 346 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 367 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 381 | drivers/net/lance.c | inw(ioaddr+LANCE_RESET); |
ioaddr | 389 | drivers/net/lance.c | outw(0, ioaddr+LANCE_RESET); |
ioaddr | 393 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 394 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 404 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 405 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 406 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 407 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 409 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_ADDR); |
ioaddr | 410 | drivers/net/lance.c | outw(0x0d15, ioaddr+LANCE_DATA); |
ioaddr | 412 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 413 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 420 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0100) |
ioaddr | 422 | drivers/net/lance.c | outw(0x0142, ioaddr+LANCE_DATA); |
ioaddr | 426 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
ioaddr | 465 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 473 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 475 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 476 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 495 | drivers/net/lance.c | outw(0x0043, ioaddr+LANCE_DATA); |
ioaddr | 512 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 514 | drivers/net/lance.c | inw(ioaddr+LANCE_DATA)); |
ioaddr | 515 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); |
ioaddr | 565 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 566 | drivers/net/lance.c | outw(0x0048, ioaddr+LANCE_DATA); |
ioaddr | 586 | drivers/net/lance.c | int csr0, ioaddr; |
ioaddr | 593 | drivers/net/lance.c | ioaddr = dev->base_addr; |
ioaddr | 683 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
ioaddr | 754 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 760 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 761 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 763 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 767 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 771 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); |
ioaddr | 787 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 791 | drivers/net/lance.c | saved_addr = inw(ioaddr+LANCE_ADDR); |
ioaddr | 792 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 793 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 794 | drivers/net/lance.c | outw(saved_addr, ioaddr+LANCE_ADDR); |
ioaddr | 809 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 812 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 813 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); /* Temporarily stop the lance. */ |
ioaddr | 815 | drivers/net/lance.c | outw(15, ioaddr+LANCE_ADDR); |
ioaddr | 822 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
ioaddr | 823 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
ioaddr | 825 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); /* Unset promiscuous mode */ |
ioaddr | 827 | drivers/net/lance.c | outw(0x8000, ioaddr+LANCE_DATA); /* Set promiscuous mode */ |
ioaddr | 830 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 831 | drivers/net/lance.c | outw(0x0142, ioaddr+LANCE_DATA); /* Resume normal operation. */ |
ioaddr | 43 | drivers/net/ne.c | static int neprobe1(int ioaddr, struct device *dev, int verbose); |
ioaddr | 76 | drivers/net/ne.c | short ioaddr = dev->base_addr; |
ioaddr | 78 | drivers/net/ne.c | if (ioaddr < 0) |
ioaddr | 80 | drivers/net/ne.c | if (ioaddr > 0x100) |
ioaddr | 81 | drivers/net/ne.c | return ! neprobe1(ioaddr, dev, 1); |
ioaddr | 93 | drivers/net/ne.c | dev->base_addr = ioaddr; |
ioaddr | 97 | drivers/net/ne.c | static int neprobe1(int ioaddr, struct device *dev, int verbose) |
ioaddr | 105 | drivers/net/ne.c | int reg0 = inb(ioaddr); |
ioaddr | 112 | drivers/net/ne.c | outb_p(E8390_NODMA+E8390_PAGE1+E8390_STOP, ioaddr + E8390_CMD); |
ioaddr | 113 | drivers/net/ne.c | regd = inb_p(ioaddr + 0x0d); |
ioaddr | 114 | drivers/net/ne.c | outb_p(0xff, ioaddr + 0x0d); |
ioaddr | 115 | drivers/net/ne.c | outb_p(E8390_NODMA+E8390_PAGE0, ioaddr + E8390_CMD); |
ioaddr | 116 | drivers/net/ne.c | inb_p(ioaddr + EN0_COUNTER0); /* Clear the counter by reading. */ |
ioaddr | 117 | drivers/net/ne.c | if (inb_p(ioaddr + EN0_COUNTER0) != 0) { |
ioaddr | 118 | drivers/net/ne.c | outb_p(reg0, ioaddr); |
ioaddr | 119 | drivers/net/ne.c | outb(regd, ioaddr + 0x0d); /* Restore the old values. */ |
ioaddr | 124 | drivers/net/ne.c | printk("NE*000 ethercard probe at %#3x:", ioaddr); |
ioaddr | 148 | drivers/net/ne.c | outb_p(program_seq[i].value, ioaddr + program_seq[i].offset); |
ioaddr | 151 | drivers/net/ne.c | SA_prom[i] = inb(ioaddr + NE_DATAPORT); |
ioaddr | 152 | drivers/net/ne.c | SA_prom[i+1] = inb(ioaddr + NE_DATAPORT); |
ioaddr | 159 | drivers/net/ne.c | outb_p(0x49, ioaddr + EN0_DCFG); |
ioaddr | 205 | drivers/net/ne.c | outb_p(0x50, ioaddr + EN0_IMR); /* Enable one interrupt. */ |
ioaddr | 206 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_RCNTLO); |
ioaddr | 207 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_RCNTHI); |
ioaddr | 208 | drivers/net/ne.c | outb_p(E8390_RREAD+E8390_START, ioaddr); /* Trigger it... */ |
ioaddr | 209 | drivers/net/ne.c | outb_p(0x00, ioaddr + EN0_IMR); /* Mask it again. */ |
ioaddr | 228 | drivers/net/ne.c | dev->base_addr = ioaddr; |
ioaddr | 231 | drivers/net/ne.c | snarf_region(ioaddr, 32); |
ioaddr | 236 | drivers/net/ne.c | dev->name, name, ioaddr, dev->irq); |
ioaddr | 184 | drivers/net/ni52.c | #define check_region(ioaddr, size) 0 |
ioaddr | 185 | drivers/net/ni52.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 193 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr); |
ioaddr | 362 | drivers/net/ni52.c | int ioaddr = *port; |
ioaddr | 363 | drivers/net/ni52.c | if (check_region(ioaddr, NI52_TOTAL_SIZE)) |
ioaddr | 365 | drivers/net/ni52.c | if( !(inb(ioaddr+NI52_MAGIC1) == NI52_MAGICVAL1) || |
ioaddr | 366 | drivers/net/ni52.c | !(inb(ioaddr+NI52_MAGIC2) == NI52_MAGICVAL2)) |
ioaddr | 369 | drivers/net/ni52.c | dev->base_addr = ioaddr; |
ioaddr | 370 | drivers/net/ni52.c | if (ni52_probe1(dev, ioaddr) == 0) |
ioaddr | 378 | drivers/net/ni52.c | static int ni52_probe1(struct device *dev,int ioaddr) |
ioaddr | 392 | drivers/net/ni52.c | snarf_region(ioaddr,NI52_TOTAL_SIZE); |
ioaddr | 57 | drivers/net/ni65.c | #define check_region(ioaddr, size) 0 |
ioaddr | 58 | drivers/net/ni65.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 191 | drivers/net/ni65.c | int ioaddr = *port; |
ioaddr | 192 | drivers/net/ni65.c | if (check_region(ioaddr, NI65_TOTAL_SIZE)) |
ioaddr | 194 | drivers/net/ni65.c | if( !(inb(ioaddr+L_EBASE+6) == CARD_ID0) || |
ioaddr | 195 | drivers/net/ni65.c | !(inb(ioaddr+L_EBASE+7) == CARD_ID1) ) |
ioaddr | 197 | drivers/net/ni65.c | dev->base_addr = ioaddr; |
ioaddr | 198 | drivers/net/ni65.c | if (ni65_probe1(dev, ioaddr) == 0) |
ioaddr | 207 | drivers/net/ni65.c | static int ni65_probe1(struct device *dev,int ioaddr) |
ioaddr | 247 | drivers/net/ni65.c | snarf_region(ioaddr,NI65_TOTAL_SIZE); |
ioaddr | 160 | drivers/net/sk_g16.c | #define SK_POS0 ioaddr /* Card-ID Low (R) */ |
ioaddr | 161 | drivers/net/sk_g16.c | #define SK_POS1 ioaddr+1 /* Card-ID High (R) */ |
ioaddr | 162 | drivers/net/sk_g16.c | #define SK_POS2 ioaddr+2 /* Card-Enable, Boot-ROM Disable (RW) */ |
ioaddr | 163 | drivers/net/sk_g16.c | #define SK_POS3 ioaddr+3 /* Base address of RAM */ |
ioaddr | 164 | drivers/net/sk_g16.c | #define SK_POS4 ioaddr+4 /* IRQ */ |
ioaddr | 332 | drivers/net/sk_g16.c | #define check_region(ioaddr, size) 0 |
ioaddr | 333 | drivers/net/sk_g16.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 487 | drivers/net/sk_g16.c | static int SK_probe(struct device *dev, short ioaddr); |
ioaddr | 555 | drivers/net/sk_g16.c | int ioaddr = 0; /* I/O port address used for POS regs */ |
ioaddr | 585 | drivers/net/sk_g16.c | ioaddr = *port; /* we need ioaddr for accessing POS regs */ |
ioaddr | 589 | drivers/net/sk_g16.c | if (check_region(ioaddr, ETHERCARD_TOTAL_SIZE)) |
ioaddr | 602 | drivers/net/sk_g16.c | dev->base_addr = ioaddr; /* Set I/O Port Address */ |
ioaddr | 604 | drivers/net/sk_g16.c | if (SK_probe(dev, ioaddr) == 0) |
ioaddr | 637 | drivers/net/sk_g16.c | int SK_probe(struct device *dev, short ioaddr) |
ioaddr | 786 | drivers/net/sk_g16.c | snarf_region(ioaddr, ETHERCARD_TOTAL_SIZE); |
ioaddr | 867 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
ioaddr | 2006 | drivers/net/sk_g16.c | int ioaddr = dev->base_addr; |
ioaddr | 73 | drivers/net/skeleton.c | #define check_region(ioaddr, size) 0 |
ioaddr | 74 | drivers/net/skeleton.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 101 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, short ioaddr); |
ioaddr | 112 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
ioaddr | 134 | drivers/net/skeleton.c | int ioaddr = *port; |
ioaddr | 135 | drivers/net/skeleton.c | if (check_region(ioaddr, ETHERCARD_TOTAL_SIZE)) |
ioaddr | 137 | drivers/net/skeleton.c | if (inb(ioaddr) != 0x57) |
ioaddr | 139 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
ioaddr | 140 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
ioaddr | 148 | drivers/net/skeleton.c | int netcard_probe1(struct device *dev, short ioaddr) |
ioaddr | 155 | drivers/net/skeleton.c | station_addr[i] = inb(ioaddr + i); |
ioaddr | 195 | drivers/net/skeleton.c | snarf_region(ioaddr, ETHERCARD_TOTAL_SIZE); |
ioaddr | 229 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 247 | drivers/net/skeleton.c | outb(0x00, ioaddr); |
ioaddr | 260 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 292 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
ioaddr | 298 | drivers/net/skeleton.c | if (inw(ioaddr) == /*RU*/81) |
ioaddr | 312 | drivers/net/skeleton.c | int ioaddr, status, boguscount = 0; |
ioaddr | 320 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
ioaddr | 322 | drivers/net/skeleton.c | status = inw(ioaddr + 0); |
ioaddr | 348 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 352 | drivers/net/skeleton.c | int status = inw(ioaddr); |
ioaddr | 353 | drivers/net/skeleton.c | int pkt_len = inw(ioaddr); |
ioaddr | 381 | drivers/net/skeleton.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 399 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 411 | drivers/net/skeleton.c | outw(0x00, ioaddr+0); /* Release the physical interrupt line. */ |
ioaddr | 430 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 434 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
ioaddr | 449 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 451 | drivers/net/skeleton.c | outw(69, ioaddr); /* Enable promiscuous mode */ |
ioaddr | 453 | drivers/net/skeleton.c | outw(99, ioaddr); /* Disable promiscuous mode, use normal mode */ |
ioaddr | 32 | drivers/net/smc-ultra.c | #define check_region(ioaddr, size) 0 |
ioaddr | 33 | drivers/net/smc-ultra.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 36 | drivers/net/smc-ultra.c | int ultraprobe(int ioaddr, struct device *dev); |
ioaddr | 37 | drivers/net/smc-ultra.c | int ultraprobe1(int ioaddr, struct device *dev); |
ioaddr | 63 | drivers/net/smc-ultra.c | unsigned short ioaddr = dev->base_addr; |
ioaddr | 65 | drivers/net/smc-ultra.c | if (ioaddr > 0x1ff) |
ioaddr | 66 | drivers/net/smc-ultra.c | return ultraprobe1(ioaddr, dev); |
ioaddr | 67 | drivers/net/smc-ultra.c | else if (ioaddr > 0) |
ioaddr | 77 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr; |
ioaddr | 81 | drivers/net/smc-ultra.c | int ultraprobe1(int ioaddr, struct device *dev) |
ioaddr | 89 | drivers/net/smc-ultra.c | unsigned char num_pages, irqreg, addr, reg4 = inb(ioaddr + 4) & 0x7f; |
ioaddr | 93 | drivers/net/smc-ultra.c | outb(reg4, ioaddr + 4); |
ioaddr | 96 | drivers/net/smc-ultra.c | checksum += inb(ioaddr + 8 + i); |
ioaddr | 100 | drivers/net/smc-ultra.c | printk("%s: SMC Ultra at %#3x,", dev->name, ioaddr); |
ioaddr | 102 | drivers/net/smc-ultra.c | printk(" %2.2X", station_addr[i] = inb(ioaddr + 8 + i)); |
ioaddr | 106 | drivers/net/smc-ultra.c | outb(0x80 | reg4, ioaddr + 4); |
ioaddr | 109 | drivers/net/smc-ultra.c | outb(0x80 | inb(ioaddr + 0x0c), ioaddr + 0x0c); |
ioaddr | 110 | drivers/net/smc-ultra.c | irqreg = inb(ioaddr + 0xd); |
ioaddr | 111 | drivers/net/smc-ultra.c | addr = inb(ioaddr + 0xb); |
ioaddr | 115 | drivers/net/smc-ultra.c | outb(reg4, ioaddr + 4); |
ioaddr | 136 | drivers/net/smc-ultra.c | snarf_region(ioaddr, 32); |
ioaddr | 139 | drivers/net/smc-ultra.c | dev->base_addr = ioaddr+ULTRA_NIC_OFFSET; |
ioaddr | 179 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */ |
ioaddr | 184 | drivers/net/smc-ultra.c | outb(ULTRA_MEMENB, ioaddr); /* Enable memory, 16 bit mode. */ |
ioaddr | 185 | drivers/net/smc-ultra.c | outb(0x80, ioaddr + 5); |
ioaddr | 186 | drivers/net/smc-ultra.c | outb(0x01, ioaddr + 6); /* Enable interrupts and memory. */ |
ioaddr | 241 | drivers/net/smc-ultra.c | int ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */ |
ioaddr | 249 | drivers/net/smc-ultra.c | outb(0x00, ioaddr + 6); /* Disable interrupts. */ |
ioaddr | 33 | drivers/net/wd.c | #define check_region(ioaddr, size) 0 |
ioaddr | 34 | drivers/net/wd.c | #define snarf_region(ioaddr, size) do ; while (0) |
ioaddr | 38 | drivers/net/wd.c | int wdprobe1(int ioaddr, struct device *dev); |
ioaddr | 72 | drivers/net/wd.c | short ioaddr = dev->base_addr; |
ioaddr | 74 | drivers/net/wd.c | if (ioaddr < 0) |
ioaddr | 76 | drivers/net/wd.c | if (ioaddr > 0x100) |
ioaddr | 77 | drivers/net/wd.c | return ! wdprobe1(ioaddr, dev); |
ioaddr | 87 | drivers/net/wd.c | dev->base_addr = ioaddr; |
ioaddr | 91 | drivers/net/wd.c | int wdprobe1(int ioaddr, struct device *dev) |
ioaddr | 101 | drivers/net/wd.c | checksum += inb(ioaddr + 8 + i); |
ioaddr | 105 | drivers/net/wd.c | printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); |
ioaddr | 107 | drivers/net/wd.c | printk(" %2.2X", station_addr[i] = inb(ioaddr + 8 + i)); |
ioaddr | 114 | drivers/net/wd.c | if (inb(ioaddr+0) == 'P' && inb(ioaddr+1) == 'D') { |
ioaddr | 115 | drivers/net/wd.c | unsigned char reg5 = inb(ioaddr+5); |
ioaddr | 117 | drivers/net/wd.c | switch (inb(ioaddr+2)) { |
ioaddr | 134 | drivers/net/wd.c | if (inb(ioaddr+i) != inb(ioaddr+8+i)) |
ioaddr | 141 | drivers/net/wd.c | int tmp = inb(ioaddr+1); /* fiddle with 16bit bit */ |
ioaddr | 142 | drivers/net/wd.c | outb( tmp ^ 0x01, ioaddr+1 ); /* attempt to clear 16bit bit */ |
ioaddr | 143 | drivers/net/wd.c | if (((inb( ioaddr+1) & 0x01) == 0x01) /* A 16 bit card */ |
ioaddr | 145 | drivers/net/wd.c | int asic_reg5 = inb(ioaddr+WD_CMDREG5); |
ioaddr | 147 | drivers/net/wd.c | outb( NIC16 | (asic_reg5&0x1f), ioaddr+WD_CMDREG5); |
ioaddr | 148 | drivers/net/wd.c | outb(tmp, ioaddr+1); |
ioaddr | 155 | drivers/net/wd.c | outb(tmp, ioaddr+1); /* Restore original reg1 value. */ |
ioaddr | 158 | drivers/net/wd.c | if ( !ancient && (inb(ioaddr+1) & 0x01) != (word16 & 0x01)) |
ioaddr | 160 | drivers/net/wd.c | word16 ? 16 : 8, (inb(ioaddr+1) & 0x01) ? 16 : 8); |
ioaddr | 170 | drivers/net/wd.c | int reg0 = inb(ioaddr); |
ioaddr | 176 | drivers/net/wd.c | int high_addr_bits = inb(ioaddr+WD_CMDREG5) & 0x1f; |
ioaddr | 186 | drivers/net/wd.c | dev->base_addr = ioaddr+WD_NIC_OFFSET; |
ioaddr | 190 | drivers/net/wd.c | int reg1 = inb(ioaddr+1); |
ioaddr | 191 | drivers/net/wd.c | int reg4 = inb(ioaddr+4); |
ioaddr | 193 | drivers/net/wd.c | short nic_addr = ioaddr+WD_NIC_OFFSET; |
ioaddr | 225 | drivers/net/wd.c | snarf_region(ioaddr, 32); |
ioaddr | 257 | drivers/net/wd.c | int ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */ |
ioaddr | 265 | drivers/net/wd.c | outb(ei_status.reg5, ioaddr+WD_CMDREG5); |
ioaddr | 266 | drivers/net/wd.c | outb(ei_status.reg0, ioaddr); /* WD_CMDREG */ |
ioaddr | 192 | drivers/net/znet.c | static void update_stop_hit(short ioaddr, unsigned short rx_stop_offset); |
ioaddr | 289 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 306 | drivers/net/znet.c | if (inb(ioaddr) != 0x10 && inb(ioaddr) != 0x00) |
ioaddr | 320 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 331 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); event = inb(ioaddr); |
ioaddr | 332 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); tx_status = inw(ioaddr); |
ioaddr | 333 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); rx_offset = inw(ioaddr); |
ioaddr | 334 | drivers/net/znet.c | outb(CMD0_STAT3, ioaddr); state = inb(ioaddr); |
ioaddr | 340 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); |
ioaddr | 350 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); |
ioaddr | 351 | drivers/net/znet.c | if (inw(ioaddr) == 0x0010 |
ioaddr | 352 | drivers/net/znet.c | && inw(ioaddr) == 0x0000 |
ioaddr | 353 | drivers/net/znet.c | && inw(ioaddr) == 0x0010) |
ioaddr | 394 | drivers/net/znet.c | outb(CMD0_TRANSMIT + CMD0_CHNL_1,ioaddr); |
ioaddr | 410 | drivers/net/znet.c | int ioaddr; |
ioaddr | 419 | drivers/net/znet.c | ioaddr = dev->base_addr; |
ioaddr | 421 | drivers/net/znet.c | outb(CMD0_STAT0, ioaddr); |
ioaddr | 423 | drivers/net/znet.c | ushort status = inb(ioaddr); |
ioaddr | 426 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); |
ioaddr | 427 | drivers/net/znet.c | result = inw(ioaddr); |
ioaddr | 428 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); |
ioaddr | 429 | drivers/net/znet.c | rx_ptr = inw(ioaddr); |
ioaddr | 430 | drivers/net/znet.c | outb(CMD0_STAT3, ioaddr); |
ioaddr | 431 | drivers/net/znet.c | running = inb(ioaddr); |
ioaddr | 441 | drivers/net/znet.c | outb(CMD0_STAT1, ioaddr); |
ioaddr | 442 | drivers/net/znet.c | tx_status = inw(ioaddr); |
ioaddr | 465 | drivers/net/znet.c | outb(CMD0_ACK,ioaddr); |
ioaddr | 475 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 481 | drivers/net/znet.c | outb(CMD0_STAT2, ioaddr); |
ioaddr | 482 | drivers/net/znet.c | cur_frame_end_offset = inw(ioaddr); |
ioaddr | 595 | drivers/net/znet.c | update_stop_hit(ioaddr, (zn.rx_cur - zn.rx_start)<<1); |
ioaddr | 611 | drivers/net/znet.c | int ioaddr = dev->base_addr; |
ioaddr | 616 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); /* CMD0_RESET */ |
ioaddr | 656 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
ioaddr | 673 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 679 | drivers/net/znet.c | outb(CMD0_MULTICAST_LIST+CMD0_CHNL_1, ioaddr); |
ioaddr | 698 | drivers/net/znet.c | short ioaddr = dev->base_addr; |
ioaddr | 704 | drivers/net/znet.c | outb(CMD0_RESET, ioaddr); |
ioaddr | 729 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 730 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 734 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 735 | drivers/net/znet.c | outb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr); |
ioaddr | 739 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 740 | drivers/net/znet.c | outb(CMD0_IA_SETUP + CMD0_CHNL_1, ioaddr); |
ioaddr | 741 | drivers/net/znet.c | printk("stat:%02x ", inb(ioaddr)); show_dma(); |
ioaddr | 743 | drivers/net/znet.c | update_stop_hit(ioaddr, 8192); |
ioaddr | 745 | drivers/net/znet.c | outb(CMD0_Rx_ENABLE+CMD0_CHNL_0, ioaddr); |
ioaddr | 749 | drivers/net/znet.c | static void update_stop_hit(short ioaddr, unsigned short rx_stop_offset) |
ioaddr | 751 | drivers/net/znet.c | outb(CMD0_PORT_1, ioaddr); |
ioaddr | 755 | drivers/net/znet.c | outb((rx_stop_offset >> 6) | 0x80, ioaddr); |
ioaddr | 756 | drivers/net/znet.c | outb(CMD1_PORT_0, ioaddr); |
ioaddr | 176 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
ioaddr | 191 | drivers/sound/dev_table.c | ioaddr = (val & 0x000fff00) >> 8; |
ioaddr | 208 | drivers/sound/dev_table.c | snd_installed_cards[ptr].config.io_base = ioaddr; |
ioaddr | 217 | drivers/sound/dev_table.c | sound_chconf (int card_type, int ioaddr, int irq, int dma) |
ioaddr | 234 | drivers/sound/dev_table.c | if (ioaddr) |
ioaddr | 235 | drivers/sound/dev_table.c | snd_installed_cards[ptr].config.io_base = ioaddr; |
ioaddr | 341 | drivers/sound/dev_table.h | void sound_chconf(int card_type, int ioaddr, int irq, int dma); |
ioaddr | 179 | drivers/sound/opl3.c | opl3_detect (int ioaddr) |
ioaddr | 203 | drivers/sound/opl3.c | ioaddr = left_address; |
ioaddr | 205 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); /* |
ioaddr | 212 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); /* |
ioaddr | 218 | drivers/sound/opl3.c | stat1 = INB (ioaddr); /* |
ioaddr | 229 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER1_REGISTER, 0xff); /* |
ioaddr | 233 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, |
ioaddr | 247 | drivers/sound/opl3.c | stat2 = INB (ioaddr); /* |
ioaddr | 255 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); /* |
ioaddr | 262 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); /* |
ioaddr | 280 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* |
ioaddr | 284 | drivers/sound/opl3.c | opl3_command (ioaddr, TEST_REGISTER, ENABLE_WAVE_SELECT); |
ioaddr | 285 | drivers/sound/opl3.c | opl3_command (ioaddr, PERCUSSION_REGISTER, 0x00); /* |
ioaddr | 309 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20); |
ioaddr | 476 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); /* |
ioaddr | 480 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); /* |
ioaddr | 532 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); |
ioaddr | 533 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); |
ioaddr | 534 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], vol3); |
ioaddr | 535 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], vol4); |
ioaddr | 566 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], 0xff); /* |
ioaddr | 571 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], 0xff); /* |
ioaddr | 578 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], 0xff); |
ioaddr | 579 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], 0xff); |
ioaddr | 582 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, 0x00); /* |
ioaddr | 611 | drivers/sound/opl3.c | voice_shift = (map->ioaddr == left_address) ? 0 : 3; |
ioaddr | 632 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[0], instr->operators[0]); |
ioaddr | 633 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[1], instr->operators[1]); |
ioaddr | 638 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[0], instr->operators[4]); |
ioaddr | 639 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[1], instr->operators[5]); |
ioaddr | 644 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[0], instr->operators[6]); |
ioaddr | 645 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[1], instr->operators[7]); |
ioaddr | 650 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[0], instr->operators[8]); |
ioaddr | 651 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[1], instr->operators[9]); |
ioaddr | 661 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num, |
ioaddr | 674 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[2], instr->operators[OFFS_4OP + 0]); |
ioaddr | 675 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[3], instr->operators[OFFS_4OP + 1]); |
ioaddr | 680 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[2], instr->operators[OFFS_4OP + 4]); |
ioaddr | 681 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[3], instr->operators[OFFS_4OP + 5]); |
ioaddr | 686 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[2], instr->operators[OFFS_4OP + 6]); |
ioaddr | 687 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[3], instr->operators[OFFS_4OP + 7]); |
ioaddr | 692 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[2], instr->operators[OFFS_4OP + 8]); |
ioaddr | 693 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[3], instr->operators[OFFS_4OP + 9]); |
ioaddr | 703 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num + 3, fpc); |
ioaddr | 729 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 733 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 735 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num + 3, data); |
ioaddr | 826 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 829 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 834 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 837 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 929 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[cell-1], tmp);} |
ioaddr | 1029 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 1040 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 1188 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
ioaddr | 1189 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
ioaddr | 1191 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
ioaddr | 1215 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
ioaddr | 213 | drivers/sound/opl3.h | unsigned short ioaddr; /* I/O port (left or right side) */ |
ioaddr | 62 | drivers/sound/pas2_card.c | pas_read (int ioaddr) |
ioaddr | 64 | drivers/sound/pas2_card.c | return INB (ioaddr ^ translat_code); |
ioaddr | 68 | drivers/sound/pas2_card.c | pas_write (unsigned char data, int ioaddr) |
ioaddr | 70 | drivers/sound/pas2_card.c | OUTB (data, ioaddr ^ translat_code); |
ioaddr | 146 | drivers/sound/sound_calls.h | int opl3_detect (int ioaddr); |
ioaddr | 162 | drivers/sound/sound_calls.h | unsigned char pas_read(int ioaddr); |
ioaddr | 163 | drivers/sound/sound_calls.h | void pas_write(unsigned char data, int ioaddr); |
ioaddr | 100 | include/linux/kd.h | ushort ioaddr[MKDIOADDR]; /* valid i/o addresses */ |