tag | line | file | source code |
ioaddr | 138 | drivers/net/3c501.c | int ioaddr; |
ioaddr | 148 | drivers/net/3c501.c | ioaddr = el_base; |
ioaddr | 152 | drivers/net/3c501.c | outw(i, ioaddr + EL1_DATAPTR); |
ioaddr | 153 | drivers/net/3c501.c | station_addr[i] = inb(ioaddr + EL1_SAPROM); |
ioaddr | 163 | drivers/net/3c501.c | snarf_region(ioaddr, 16); |
ioaddr | 343 | drivers/net/3c501.c | short ioaddr; |
ioaddr | 350 | drivers/net/3c501.c | ioaddr = dev->base_addr; |
ioaddr | 370 | drivers/net/3c501.c | inw(ioaddr + EL1_DATAPTR), inw(ioaddr + EL1_RXPTR)); |
ioaddr | 507 | drivers/net/3c501.c | int ioaddr = dev->base_addr; |
ioaddr | 510 | drivers/net/3c501.c | printk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr); |
ioaddr | 35 | drivers/net/3c503.c | int el2probe1(int ioaddr, struct device *dev); |
ioaddr | 61 | drivers/net/3c503.c | short ioaddr = dev->base_addr; |
ioaddr | 63 | drivers/net/3c503.c | if (ioaddr < 0) |
ioaddr | 65 | drivers/net/3c503.c | if (ioaddr > 0) |
ioaddr | 66 | drivers/net/3c503.c | return ! el2probe1(ioaddr, dev); |
ioaddr | 116 | drivers/net/3c503.c | el2probe1(int ioaddr, struct device *dev) |
ioaddr | 123 | drivers/net/3c503.c | printk("3c503 probe at %#3x:", ioaddr); |
ioaddr | 124 | drivers/net/3c503.c | iobase_reg = inb(ioaddr+0x403); |
ioaddr | 125 | drivers/net/3c503.c | membase_reg = inb(ioaddr+0x404); |
ioaddr | 132 | drivers/net/3c503.c | saved_406 = inb_p(ioaddr + 0x406); |
ioaddr | 133 | drivers/net/3c503.c | outb_p(ECNTRL_RESET|ECNTRL_THIN, ioaddr + 0x406); /* Reset it... */ |
ioaddr | 134 | drivers/net/3c503.c | outb_p(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 136 | drivers/net/3c503.c | outb(ECNTRL_SAPROM|ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 138 | drivers/net/3c503.c | printk(" %2.2X", (station_addr[i] = inb(ioaddr + i))); |
ioaddr | 145 | drivers/net/3c503.c | outb(saved_406, ioaddr + 0x406); |
ioaddr | 150 | drivers/net/3c503.c | snarf_region(ioaddr, 16); |
ioaddr | 155 | drivers/net/3c503.c | outb(ECNTRL_THIN, ioaddr + 0x406); |
ioaddr | 156 | drivers/net/3c503.c | dev->base_addr = ioaddr; |
ioaddr | 159 | drivers/net/3c503.c | outb(EGACFR_NORM, ioaddr + 0x405); /* Enable RAM */ |
ioaddr | 236 | drivers/net/3c503.c | return ioaddr; |
ioaddr | 277 | drivers/net/3c507.c | static int el16_probe1(struct device *dev, short ioaddr); |
ioaddr | 319 | drivers/net/3c507.c | short ioaddr = *port; |
ioaddr | 322 | drivers/net/3c507.c | if (inb(ioaddr) == '*' && inb(ioaddr+1) == '3' |
ioaddr | 323 | drivers/net/3c507.c | && inb(ioaddr+2) == 'C' && inb(ioaddr+3) == 'O' |
ioaddr | 330 | drivers/net/3c507.c | res[0] = inb(ioaddr); res[1] = inb(ioaddr+1); |
ioaddr | 331 | drivers/net/3c507.c | res[2] = inb(ioaddr+2); res[3] = inb(ioaddr+3); |
ioaddr | 343 | drivers/net/3c507.c | int el16_probe1(struct device *dev, short ioaddr) |
ioaddr | 347 | drivers/net/3c507.c | printk("%s: 3c507 at %#x,", dev->name, ioaddr); |
ioaddr | 352 | drivers/net/3c507.c | irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 361 | drivers/net/3c507.c | snarf_region(ioaddr, 16); |
ioaddr | 362 | drivers/net/3c507.c | dev->base_addr = ioaddr; |
ioaddr | 364 | drivers/net/3c507.c | outb(0x01, ioaddr + MISC_CTRL); |
ioaddr | 366 | drivers/net/3c507.c | dev->dev_addr[i] = inb(ioaddr + i); |
ioaddr | 380 | drivers/net/3c507.c | char mem_config = inb(ioaddr + MEM_CONFIG); |
ioaddr | 394 | drivers/net/3c507.c | dev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0; |
ioaddr | 395 | drivers/net/3c507.c | dev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f; |
ioaddr | 462 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 484 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 516 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 520 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 539 | drivers/net/3c507.c | int ioaddr, status, boguscount = 0; |
ioaddr | 549 | drivers/net/3c507.c | ioaddr = dev->base_addr; |
ioaddr | 560 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 623 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); /* Issue channel-attn. */ |
ioaddr | 626 | drivers/net/3c507.c | outb(0, ioaddr + RESET_IRQ); |
ioaddr | 629 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 637 | drivers/net/3c507.c | int ioaddr = dev->base_addr; |
ioaddr | 645 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 648 | drivers/net/3c507.c | outb(0x80, ioaddr + MISC_CTRL); |
ioaddr | 723 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 728 | drivers/net/3c507.c | outb(0x20, ioaddr + MISC_CTRL); |
ioaddr | 751 | drivers/net/3c507.c | outb(0xA0, ioaddr + MISC_CTRL); |
ioaddr | 755 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 767 | drivers/net/3c507.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 771 | drivers/net/3c507.c | outb(0x84, ioaddr + MISC_CTRL); |
ioaddr | 782 | drivers/net/3c507.c | short ioaddr = dev->base_addr; |
ioaddr | 817 | drivers/net/3c507.c | dev->name, ioaddr, length, tx_block, lp->tx_head); |
ioaddr | 57 | drivers/net/3c509.c | #define EL3WINDOW(win_num) outw(0x0800+(win_num), ioaddr + EL3_CMD) |
ioaddr | 74 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index); |
ioaddr | 91 | drivers/net/3c509.c | ushort ioaddr, irq, if_port; |
ioaddr | 97 | drivers/net/3c509.c | for (ioaddr = 0x1000; ioaddr < 0x9000; ioaddr += 0x1000) { |
ioaddr | 98 | drivers/net/3c509.c | if (inw(ioaddr) != 0x6d50) |
ioaddr | 101 | drivers/net/3c509.c | irq = inw(ioaddr + 8) >> 12; |
ioaddr | 102 | drivers/net/3c509.c | if_port = inw(ioaddr + 6)>>14; |
ioaddr | 104 | drivers/net/3c509.c | phys_addr[i] = htons(read_eeprom(ioaddr, i)); |
ioaddr | 108 | drivers/net/3c509.c | read_eeprom(ioaddr, 7); |
ioaddr | 120 | drivers/net/3c509.c | ioaddr = mca_pos_base_addr(i); |
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 | 163 | drivers/net/3c509.c | ioaddr = 0x200 + ((iobase & 0x1f) << 4); |
ioaddr | 171 | drivers/net/3c509.c | && dev->base_addr != (unsigned short)ioaddr) { |
ioaddr | 182 | drivers/net/3c509.c | if (inw(ioaddr) != 0x6d50) |
ioaddr | 186 | drivers/net/3c509.c | dev->base_addr = ioaddr; |
ioaddr | 250 | drivers/net/3c509.c | static ushort read_eeprom(short ioaddr, int index) |
ioaddr | 254 | drivers/net/3c509.c | outw(EEPROM_READ + index, ioaddr + 10); |
ioaddr | 258 | drivers/net/3c509.c | return inw(ioaddr + 12); |
ioaddr | 288 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 298 | drivers/net/3c509.c | dev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS)); |
ioaddr | 301 | drivers/net/3c509.c | outw(0x0001, ioaddr + 4); |
ioaddr | 306 | drivers/net/3c509.c | outw((dev->irq << 12) | 0x0f00, ioaddr + 8); |
ioaddr | 312 | drivers/net/3c509.c | outb(dev->dev_addr[i], ioaddr + i); |
ioaddr | 316 | drivers/net/3c509.c | outw(0x1000, ioaddr + EL3_CMD); |
ioaddr | 320 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) | MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 326 | drivers/net/3c509.c | outw(0x8005, ioaddr + EL3_CMD); /* Accept b-case and phys addr only. */ |
ioaddr | 327 | drivers/net/3c509.c | outw(0xA800, ioaddr + EL3_CMD); /* Turn on statistics. */ |
ioaddr | 328 | drivers/net/3c509.c | outw(0x2000, ioaddr + EL3_CMD); /* Enable the receiver. */ |
ioaddr | 329 | drivers/net/3c509.c | outw(0x4800, ioaddr + EL3_CMD); /* Enable transmitter. */ |
ioaddr | 330 | drivers/net/3c509.c | outw(0x78ff, ioaddr + EL3_CMD); /* Allow all status bits to be seen. */ |
ioaddr | 334 | drivers/net/3c509.c | outw(0x7098, ioaddr + EL3_CMD); /* Set interrupt mask. */ |
ioaddr | 338 | drivers/net/3c509.c | dev->name, dev->irq, inw(ioaddr + EL3_STATUS)); |
ioaddr | 347 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 355 | drivers/net/3c509.c | dev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS)); |
ioaddr | 358 | drivers/net/3c509.c | outw(0x5800, ioaddr + EL3_CMD); /* TX_RESET */ |
ioaddr | 359 | drivers/net/3c509.c | outw(0x4800, ioaddr + EL3_CMD); /* TX_START */ |
ioaddr | 381 | drivers/net/3c509.c | dev->name, skb->len, inw(ioaddr + EL3_STATUS)); |
ioaddr | 385 | drivers/net/3c509.c | ushort status = inw(ioaddr + EL3_STATUS); |
ioaddr | 387 | drivers/net/3c509.c | && inw(ioaddr + EL3_STATUS) & 1) { /* Make sure. */ |
ioaddr | 390 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS), inb(ioaddr + TX_STATUS), |
ioaddr | 391 | drivers/net/3c509.c | inw(ioaddr + RX_STATUS)); |
ioaddr | 392 | drivers/net/3c509.c | outw(0x7800, ioaddr + EL3_CMD); /* Fake interrupt trigger. */ |
ioaddr | 393 | drivers/net/3c509.c | outw(0x6899, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 394 | drivers/net/3c509.c | outw(0x78ff, ioaddr + EL3_CMD); /* Set all status bits visible. */ |
ioaddr | 404 | drivers/net/3c509.c | outw(skb->len, ioaddr + TX_FIFO); |
ioaddr | 405 | drivers/net/3c509.c | outw(0x00, ioaddr + TX_FIFO); |
ioaddr | 407 | drivers/net/3c509.c | outsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2); |
ioaddr | 410 | drivers/net/3c509.c | if (inw(ioaddr + TX_FREE) > 1536) { |
ioaddr | 414 | drivers/net/3c509.c | outw(0x9000 + 1536, ioaddr + EL3_CMD); |
ioaddr | 425 | drivers/net/3c509.c | while (--i > 0 && (tx_status = inb(ioaddr + TX_STATUS)) > 0) { |
ioaddr | 429 | drivers/net/3c509.c | if (tx_status & 0x30) outw(0x5800, ioaddr + EL3_CMD); |
ioaddr | 430 | drivers/net/3c509.c | if (tx_status & 0x3C) outw(0x4800, ioaddr + EL3_CMD); |
ioaddr | 431 | drivers/net/3c509.c | outb(0x00, ioaddr + TX_STATUS); /* Pop the status stack. */ |
ioaddr | 443 | drivers/net/3c509.c | int ioaddr, status; |
ioaddr | 455 | drivers/net/3c509.c | ioaddr = dev->base_addr; |
ioaddr | 456 | drivers/net/3c509.c | status = inw(ioaddr + EL3_STATUS); |
ioaddr | 461 | drivers/net/3c509.c | while ((status = inw(ioaddr + EL3_STATUS)) & 0x01) { |
ioaddr | 470 | drivers/net/3c509.c | outw(0x6808, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 475 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 481 | drivers/net/3c509.c | outw(0x68FF, ioaddr + EL3_CMD); |
ioaddr | 485 | drivers/net/3c509.c | outw(0x6891, ioaddr + EL3_CMD); /* Ack IRQ */ |
ioaddr | 490 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS)); |
ioaddr | 514 | drivers/net/3c509.c | static void update_stats(int ioaddr, struct device *dev) |
ioaddr | 521 | drivers/net/3c509.c | outw(0xB000, ioaddr + EL3_CMD); |
ioaddr | 524 | drivers/net/3c509.c | lp->stats.tx_carrier_errors += inb(ioaddr + 0); |
ioaddr | 525 | drivers/net/3c509.c | lp->stats.tx_heartbeat_errors += inb(ioaddr + 1); |
ioaddr | 526 | drivers/net/3c509.c | /* Multiple collisions. */ inb(ioaddr + 2); |
ioaddr | 527 | drivers/net/3c509.c | lp->stats.collisions += inb(ioaddr + 3); |
ioaddr | 528 | drivers/net/3c509.c | lp->stats.tx_window_errors += inb(ioaddr + 4); |
ioaddr | 529 | drivers/net/3c509.c | lp->stats.rx_fifo_errors += inb(ioaddr + 5); |
ioaddr | 530 | drivers/net/3c509.c | lp->stats.tx_packets += inb(ioaddr + 6); |
ioaddr | 531 | drivers/net/3c509.c | lp->stats.rx_packets += inb(ioaddr + 7); |
ioaddr | 532 | drivers/net/3c509.c | /* Tx deferrals */ inb(ioaddr + 8); |
ioaddr | 533 | drivers/net/3c509.c | inw(ioaddr + 10); /* Total Rx and Tx octets. */ |
ioaddr | 534 | drivers/net/3c509.c | inw(ioaddr + 12); |
ioaddr | 538 | drivers/net/3c509.c | outw(0xA800, ioaddr + EL3_CMD); |
ioaddr | 546 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 551 | drivers/net/3c509.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS)); |
ioaddr | 552 | drivers/net/3c509.c | while ((rx_status = inw(ioaddr + RX_STATUS)) > 0) { |
ioaddr | 582 | drivers/net/3c509.c | insl(ioaddr+RX_FIFO, skb->data, |
ioaddr | 587 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 595 | drivers/net/3c509.c | inb(ioaddr + EL3_STATUS)); |
ioaddr | 596 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 597 | drivers/net/3c509.c | while (inw(ioaddr + EL3_STATUS) & 0x1000) |
ioaddr | 599 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS) ); |
ioaddr | 602 | drivers/net/3c509.c | inb(ioaddr + EL3_STATUS)); |
ioaddr | 614 | drivers/net/3c509.c | outw(0x4000, ioaddr + EL3_CMD); /* Rx discard */ |
ioaddr | 615 | drivers/net/3c509.c | while (inw(ioaddr + EL3_STATUS) & 0x1000) |
ioaddr | 617 | drivers/net/3c509.c | inw(ioaddr + EL3_STATUS) ); |
ioaddr | 622 | drivers/net/3c509.c | inw(ioaddr+EL3_STATUS), inw(ioaddr+8)); |
ioaddr | 637 | drivers/net/3c509.c | short ioaddr = dev->base_addr; |
ioaddr | 639 | drivers/net/3c509.c | outw(0x8007, ioaddr + EL3_CMD); |
ioaddr | 641 | drivers/net/3c509.c | outw(0x8008, ioaddr + EL3_CMD); |
ioaddr | 643 | drivers/net/3c509.c | outw(0x8005, ioaddr + EL3_CMD); |
ioaddr | 650 | drivers/net/3c509.c | int ioaddr = dev->base_addr; |
ioaddr | 659 | drivers/net/3c509.c | outw(0xB000, ioaddr + EL3_CMD); |
ioaddr | 662 | drivers/net/3c509.c | outw(0x1800, ioaddr + EL3_CMD); |
ioaddr | 663 | drivers/net/3c509.c | outw(0x5000, ioaddr + EL3_CMD); |
ioaddr | 667 | drivers/net/3c509.c | outw(0xb800, ioaddr + EL3_CMD); |
ioaddr | 671 | drivers/net/3c509.c | outw(inw(ioaddr + WN4_MEDIA) & ~MEDIA_TP, ioaddr + WN4_MEDIA); |
ioaddr | 678 | drivers/net/3c509.c | outw(0x0f00, ioaddr + 8); |
ioaddr | 683 | drivers/net/3c509.c | update_stats(ioaddr, dev); |
ioaddr | 546 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 550 | drivers/net/8390.c | ei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0); |
ioaddr | 551 | drivers/net/8390.c | ei_local->stat.rx_crc_errors += inb_p(ioaddr + EN0_COUNTER1); |
ioaddr | 552 | drivers/net/8390.c | ei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2); |
ioaddr | 566 | drivers/net/8390.c | short ioaddr = dev->base_addr; |
ioaddr | 571 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x08, ioaddr + EN0_RXCR); |
ioaddr | 573 | drivers/net/8390.c | outb_p(E8390_RXCONFIG | 0x10, ioaddr + EN0_RXCR); |
ioaddr | 575 | drivers/net/8390.c | outb_p(E8390_RXCONFIG, ioaddr + EN0_RXCR); |
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 | 147 | drivers/net/at1700.c | int ioaddr = *port; |
ioaddr | 148 | drivers/net/at1700.c | if (check_region(ioaddr, 32)) |
ioaddr | 150 | drivers/net/at1700.c | if (at1700_probe1(dev, ioaddr) == 0) |
ioaddr | 165 | drivers/net/at1700.c | int at1700_probe1(struct device *dev, short ioaddr) |
ioaddr | 177 | drivers/net/at1700.c | if ((inw(ioaddr + 2*i) | signature_invalid[i]) != signature[i]) { |
ioaddr | 180 | drivers/net/at1700.c | i, inw(ioaddr + 2*i), signature[i]); |
ioaddr | 183 | drivers/net/at1700.c | if (read_eeprom(ioaddr, 4) != 0x0000 |
ioaddr | 184 | drivers/net/at1700.c | || read_eeprom(ioaddr, 5) & 0x00ff != 0x00F4) |
ioaddr | 189 | drivers/net/at1700.c | snarf_region(ioaddr, 32); |
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 | 202 | drivers/net/at1700.c | ioaddr, irq); |
ioaddr | 204 | drivers/net/at1700.c | dev->base_addr = ioaddr; |
ioaddr | 209 | drivers/net/at1700.c | unsigned short eeprom_val = read_eeprom(ioaddr, 4+i); |
ioaddr | 222 | drivers/net/at1700.c | ushort setup_value = read_eeprom(ioaddr, 12); |
ioaddr | 230 | drivers/net/at1700.c | outb(0xe0, ioaddr + 7); |
ioaddr | 232 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 235 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 237 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 241 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 244 | drivers/net/at1700.c | outb(0xe8, ioaddr + 7); |
ioaddr | 248 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 295 | drivers/net/at1700.c | static int read_eeprom(int ioaddr, int location) |
ioaddr | 299 | drivers/net/at1700.c | short ee_addr = ioaddr + EEPROM_Ctrl; |
ioaddr | 300 | drivers/net/at1700.c | short ee_daddr = ioaddr + EEPROM_Data; |
ioaddr | 339 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 343 | drivers/net/at1700.c | outb(0xe0, ioaddr + CONFIG_1); |
ioaddr | 347 | drivers/net/at1700.c | outb(dev->dev_addr[i], ioaddr + 8 + i); |
ioaddr | 350 | drivers/net/at1700.c | outb(0xe4, ioaddr + 7); |
ioaddr | 352 | drivers/net/at1700.c | outb(0x00, ioaddr + 8 + i); |
ioaddr | 356 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 359 | drivers/net/at1700.c | outb(0x5a, ioaddr + CONFIG_0); |
ioaddr | 361 | drivers/net/at1700.c | outb(0xe8, ioaddr + CONFIG_1); |
ioaddr | 364 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 365 | drivers/net/at1700.c | outb(0x81, ioaddr + RX_INTR); |
ioaddr | 380 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 389 | drivers/net/at1700.c | inw(ioaddr + STATUS), inb(ioaddr + TX_STATUS) & 0x80 |
ioaddr | 392 | drivers/net/at1700.c | dev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4), |
ioaddr | 393 | drivers/net/at1700.c | inw(ioaddr + 6), inw(ioaddr + 8), inw(ioaddr + 10), |
ioaddr | 394 | drivers/net/at1700.c | inw(ioaddr + 12), inw(ioaddr + 14)); |
ioaddr | 397 | drivers/net/at1700.c | outw(0xffff, ioaddr + 24); |
ioaddr | 398 | drivers/net/at1700.c | outw(0xffff, ioaddr + TX_STATUS); |
ioaddr | 399 | drivers/net/at1700.c | outw(0xe85a, ioaddr + CONFIG_0); |
ioaddr | 400 | drivers/net/at1700.c | outw(0x8100, ioaddr + TX_INTR); |
ioaddr | 431 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 433 | drivers/net/at1700.c | outw(length, ioaddr + DATAPORT); |
ioaddr | 434 | drivers/net/at1700.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 441 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 450 | drivers/net/at1700.c | outb(0x82, ioaddr + TX_INTR); |
ioaddr | 466 | drivers/net/at1700.c | int ioaddr, status; |
ioaddr | 474 | drivers/net/at1700.c | ioaddr = dev->base_addr; |
ioaddr | 476 | drivers/net/at1700.c | status = inw(ioaddr + TX_STATUS); |
ioaddr | 477 | drivers/net/at1700.c | outw(status, ioaddr + TX_STATUS); |
ioaddr | 482 | drivers/net/at1700.c | || (inb(ioaddr + RX_MODE) & 0x40) == 0) { /* Got a packet(s). */ |
ioaddr | 489 | drivers/net/at1700.c | outb(0x80 | lp->tx_queue, ioaddr + TX_START); |
ioaddr | 498 | drivers/net/at1700.c | outb(0x00, ioaddr + TX_INTR); |
ioaddr | 512 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 515 | drivers/net/at1700.c | while ((inb(ioaddr + RX_MODE) & 0x40) == 0) { |
ioaddr | 516 | drivers/net/at1700.c | ushort status = inw(ioaddr + DATAPORT); |
ioaddr | 520 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), status); |
ioaddr | 523 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 535 | drivers/net/at1700.c | ushort pkt_len = inw(ioaddr + DATAPORT); |
ioaddr | 543 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 551 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 560 | drivers/net/at1700.c | insw(ioaddr + DATAPORT, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 592 | drivers/net/at1700.c | if ((inb(ioaddr + RX_MODE) & 0x40) == 0x40) |
ioaddr | 594 | drivers/net/at1700.c | outb(0x05, ioaddr + 14); |
ioaddr | 599 | drivers/net/at1700.c | dev->name, inb(ioaddr + RX_MODE), i); |
ioaddr | 608 | drivers/net/at1700.c | int ioaddr = dev->base_addr; |
ioaddr | 616 | drivers/net/at1700.c | outb(0xda, ioaddr + CONFIG_0); |
ioaddr | 621 | drivers/net/at1700.c | outb(0x00, ioaddr + CONFIG_1); |
ioaddr | 650 | drivers/net/at1700.c | short ioaddr = dev->base_addr; |
ioaddr | 652 | drivers/net/at1700.c | outw(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ |
ioaddr | 654 | drivers/net/at1700.c | outw(2, ioaddr + RX_MODE); /* Disable promiscuous, use normal mode */ |
ioaddr | 117 | drivers/net/atp.c | #define check_region(ioaddr, size) 0 |
ioaddr | 118 | drivers/net/atp.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 134 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr); |
ioaddr | 137 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd); |
ioaddr | 140 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int mode); |
ioaddr | 141 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length); |
ioaddr | 145 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *buffer, int data_mode); |
ioaddr | 171 | drivers/net/atp.c | int ioaddr = *port; |
ioaddr | 172 | drivers/net/atp.c | outb(0x57, ioaddr + PAR_DATA); |
ioaddr | 173 | drivers/net/atp.c | if (inb(ioaddr + PAR_DATA) != 0x57) |
ioaddr | 175 | drivers/net/atp.c | if (atp_probe1(dev, ioaddr) == 0) |
ioaddr | 182 | drivers/net/atp.c | static int atp_probe1(struct device *dev, short ioaddr) |
ioaddr | 186 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 189 | drivers/net/atp.c | saved_ctrl_reg = inb(ioaddr + PAR_CONTROL); |
ioaddr | 191 | drivers/net/atp.c | outb(0x04, ioaddr + PAR_CONTROL); |
ioaddr | 192 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 194 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR1); |
ioaddr | 198 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 201 | drivers/net/atp.c | status = read_nibble(ioaddr, CMR2_h); |
ioaddr | 203 | drivers/net/atp.c | outb(saved_ctrl_reg, ioaddr + PAR_CONTROL); |
ioaddr | 207 | drivers/net/atp.c | write_reg_byte(ioaddr, CMR2, 0x01); /* No accept mode, IRQ out. */ |
ioaddr | 208 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); /* Enable Tx and Rx. */ |
ioaddr | 211 | drivers/net/atp.c | if (ioaddr == 0x378) |
ioaddr | 215 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_TxRxOFF); /* Diable Tx and Rx units. */ |
ioaddr | 216 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 218 | drivers/net/atp.c | dev->base_addr = ioaddr; |
ioaddr | 229 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 296 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 300 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_EEPROM); /* Point to the EEPROM control registers. */ |
ioaddr | 304 | drivers/net/atp.c | if (eeprom_op(ioaddr, EE_READ(0)) == 0xffff) |
ioaddr | 309 | drivers/net/atp.c | ntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i))); |
ioaddr | 311 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 326 | drivers/net/atp.c | static unsigned short eeprom_op(short ioaddr, unsigned int cmd) |
ioaddr | 333 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_LOW); |
ioaddr | 335 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_HIGH); |
ioaddr | 337 | drivers/net/atp.c | if (read_nibble(ioaddr, PROM_DATA) & EE_DATA_READ) |
ioaddr | 341 | drivers/net/atp.c | write_reg_high(ioaddr, PROM_CMD, EE_CLK_LOW & ~EE_CS); |
ioaddr | 378 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 381 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 384 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 386 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 390 | drivers/net/atp.c | (read_nibble(ioaddr, CMR2_h) >> 3) & 0x0f); |
ioaddr | 393 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 394 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE); |
ioaddr | 397 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 400 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 401 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 411 | drivers/net/atp.c | static void trigger_send(short ioaddr, int length) |
ioaddr | 413 | drivers/net/atp.c | write_reg_byte(ioaddr, TxCNT0, length & 0xff); |
ioaddr | 414 | drivers/net/atp.c | write_reg(ioaddr, TxCNT1, length >> 8); |
ioaddr | 415 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_Xmit); |
ioaddr | 418 | drivers/net/atp.c | static void write_packet(short ioaddr, int length, unsigned char *packet, int data_mode) |
ioaddr | 421 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 424 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 426 | drivers/net/atp.c | write_byte_mode0(ioaddr, *packet++); |
ioaddr | 432 | drivers/net/atp.c | outb(Ctrl_LNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 433 | drivers/net/atp.c | outb(WrAddr+MAR, ioaddr + PAR_DATA); |
ioaddr | 435 | drivers/net/atp.c | outb((outbyte & 0x0f)|0x40, ioaddr + PAR_DATA); |
ioaddr | 436 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 438 | drivers/net/atp.c | outb(outbyte & 0x0f, ioaddr + PAR_DATA); |
ioaddr | 439 | drivers/net/atp.c | outb(Ctrl_HNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 441 | drivers/net/atp.c | write_byte_mode1(ioaddr, *packet++); |
ioaddr | 444 | drivers/net/atp.c | outb(0xff, ioaddr + PAR_DATA); |
ioaddr | 445 | drivers/net/atp.c | outb(Ctrl_HNibWrite | Ctrl_SelData | Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 452 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 461 | drivers/net/atp.c | inb(ioaddr + PAR_CONTROL) & 0x10 ? "network cable problem" |
ioaddr | 500 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 501 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, 0); |
ioaddr | 504 | drivers/net/atp.c | write_packet(ioaddr, length, buf, dev->if_port); |
ioaddr | 508 | drivers/net/atp.c | trigger_send(ioaddr, length); |
ioaddr | 517 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 518 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); |
ioaddr | 535 | drivers/net/atp.c | int ioaddr, status, boguscount = 20; |
ioaddr | 544 | drivers/net/atp.c | ioaddr = dev->base_addr; |
ioaddr | 548 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 551 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_NULL); |
ioaddr | 552 | drivers/net/atp.c | write_reg(ioaddr, IMR, 0); |
ioaddr | 556 | drivers/net/atp.c | status = read_nibble(ioaddr, ISR); |
ioaddr | 560 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_RxOK); /* Clear the Rx interrupt. */ |
ioaddr | 562 | drivers/net/atp.c | int read_status = read_nibble(ioaddr, CMR1); |
ioaddr | 570 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 573 | drivers/net/atp.c | write_reg_high(ioaddr, ISR, ISRh_RxErr); |
ioaddr | 574 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, lp->addr_mode); |
ioaddr | 586 | drivers/net/atp.c | write_reg(ioaddr, ISR, ISR_TxErr + ISR_TxOK); |
ioaddr | 596 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_ReXmit + CMR1_Xmit); |
ioaddr | 602 | drivers/net/atp.c | trigger_send(ioaddr, lp->saved_tx_size); |
ioaddr | 617 | drivers/net/atp.c | (read_nibble(ioaddr, CMR1) >> 3) & 15); |
ioaddr | 631 | drivers/net/atp.c | write_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]); |
ioaddr | 635 | drivers/net/atp.c | write_reg(ioaddr, CMR2, CMR2_IRQOUT); |
ioaddr | 637 | drivers/net/atp.c | outb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL); |
ioaddr | 639 | drivers/net/atp.c | write_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK); |
ioaddr | 640 | drivers/net/atp.c | write_reg_high(ioaddr, IMR, ISRh_RxErr); /* Hmmm, really needed? */ |
ioaddr | 653 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 661 | drivers/net/atp.c | outb(EOC+MAR, ioaddr + PAR_DATA); |
ioaddr | 662 | drivers/net/atp.c | read_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port); |
ioaddr | 691 | drivers/net/atp.c | read_block(ioaddr, pkt_len, skb->data, dev->if_port); |
ioaddr | 715 | drivers/net/atp.c | write_reg(ioaddr, CMR1, CMR1_NextPkt); |
ioaddr | 719 | drivers/net/atp.c | static void read_block(short ioaddr, int length, unsigned char *p, int data_mode) |
ioaddr | 723 | drivers/net/atp.c | outb(Ctrl_LNibRead, ioaddr + PAR_CONTROL); |
ioaddr | 725 | drivers/net/atp.c | ioaddr + PAR_DATA); |
ioaddr | 727 | drivers/net/atp.c | do *p++ = read_byte_mode0(ioaddr); while (--length > 0); |
ioaddr | 729 | drivers/net/atp.c | do *p++ = read_byte_mode2(ioaddr); while (--length > 0); |
ioaddr | 731 | drivers/net/atp.c | do *p++ = read_byte_mode4(ioaddr); while (--length > 0); |
ioaddr | 733 | drivers/net/atp.c | do *p++ = read_byte_mode6(ioaddr); while (--length > 0); |
ioaddr | 735 | drivers/net/atp.c | outb(EOC+HNib+MAR, ioaddr + PAR_DATA); |
ioaddr | 736 | drivers/net/atp.c | outb(Ctrl_SelData, ioaddr + PAR_CONTROL); |
ioaddr | 744 | drivers/net/atp.c | int ioaddr = dev->base_addr; |
ioaddr | 751 | drivers/net/atp.c | write_reg_high(ioaddr, CMR2, CMR2h_OFF); |
ioaddr | 754 | drivers/net/atp.c | outb(0x00, ioaddr + PAR_CONTROL); |
ioaddr | 759 | drivers/net/atp.c | write_reg_high(ioaddr, CMR1, CMR1h_RESET); |
ioaddr | 784 | drivers/net/atp.c | short ioaddr = dev->base_addr; |
ioaddr | 786 | 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 | 265 | drivers/net/depca.c | static int depca_probe1(struct device *dev, short ioaddr); |
ioaddr | 273 | drivers/net/depca.c | static int DevicePresent(short ioaddr); |
ioaddr | 305 | drivers/net/depca.c | int ioaddr = *port; |
ioaddr | 308 | drivers/net/depca.c | if (check_region(ioaddr, DEPCA_TOTAL_SIZE)) |
ioaddr | 346 | drivers/net/depca.c | dev->base_addr = ioaddr; /* assign the io address */ |
ioaddr | 352 | drivers/net/depca.c | status = depca_probe1(dev, ioaddr); |
ioaddr | 367 | drivers/net/depca.c | depca_probe1(struct device *dev, short ioaddr) |
ioaddr | 408 | drivers/net/depca.c | dev->base_addr = ioaddr; |
ioaddr | 410 | drivers/net/depca.c | printk("%s: DEPCA at %#3x is a %s, ", dev->name, ioaddr, name); |
ioaddr | 438 | drivers/net/depca.c | snarf_region(ioaddr, DEPCA_TOTAL_SIZE); |
ioaddr | 637 | drivers/net/depca.c | int i,nicsr,ioaddr = dev->base_addr; |
ioaddr | 757 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 916 | drivers/net/depca.c | int csr0, ioaddr, nicsr; |
ioaddr | 923 | drivers/net/depca.c | ioaddr = dev->base_addr; |
ioaddr | 1086 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1114 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1128 | drivers/net/depca.c | int ioaddr = dev->base_addr; |
ioaddr | 1174 | drivers/net/depca.c | short ioaddr = dev->base_addr; |
ioaddr | 1283 | drivers/net/depca.c | static int DevicePresent(short ioaddr) |
ioaddr | 1321 | drivers/net/depca.c | data = inb(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_PROM ioaddr+0x0c /* Ethernet address ROM data port */ |
ioaddr | 18 | drivers/net/depca.h | #define DEPCA_RBSA ioaddr+0x0e /* RAM buffer starting address (2k buff.) */ |
ioaddr | 288 | drivers/net/eexpress.c | static int eexp_probe1(struct device *dev, short ioaddr); |
ioaddr | 299 | drivers/net/eexpress.c | static int read_eeprom(int ioaddr, int location); |
ioaddr | 345 | drivers/net/eexpress.c | int eexp_probe1(struct device *dev, short ioaddr) |
ioaddr | 350 | drivers/net/eexpress.c | printk("%s: EtherExpress at %#x,", dev->name, ioaddr); |
ioaddr | 354 | drivers/net/eexpress.c | station_addr[0] = read_eeprom(ioaddr, 2); |
ioaddr | 355 | drivers/net/eexpress.c | station_addr[1] = read_eeprom(ioaddr, 3); |
ioaddr | 356 | drivers/net/eexpress.c | station_addr[2] = read_eeprom(ioaddr, 4); |
ioaddr | 366 | drivers/net/eexpress.c | snarf_region(ioaddr, 16); |
ioaddr | 367 | drivers/net/eexpress.c | dev->base_addr = ioaddr; |
ioaddr | 380 | drivers/net/eexpress.c | unsigned short setupval = read_eeprom(ioaddr, 0); |
ioaddr | 384 | drivers/net/eexpress.c | read_eeprom(ioaddr, 5) & 0x1 ? TP : BNC; |
ioaddr | 388 | drivers/net/eexpress.c | outb(0x00, ioaddr + SET_IRQ); |
ioaddr | 392 | drivers/net/eexpress.c | outb(ASIC_RESET, ioaddr + EEPROM_Ctrl); |
ioaddr | 449 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 465 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
ioaddr | 477 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 487 | drivers/net/eexpress.c | inw(ioaddr+SCB_STATUS) & 0x8000 ? "IRQ conflict" : |
ioaddr | 498 | drivers/net/eexpress.c | outw(0xf000|CUC_START|RX_START, ioaddr + SCB_CMD); |
ioaddr | 499 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 531 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 535 | drivers/net/eexpress.c | outb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 555 | drivers/net/eexpress.c | int ioaddr, status, boguscount = 0; |
ioaddr | 564 | drivers/net/eexpress.c | ioaddr = dev->base_addr; |
ioaddr | 567 | drivers/net/eexpress.c | status = inw(ioaddr + SCB_STATUS); |
ioaddr | 574 | drivers/net/eexpress.c | outb(irqrmap[dev->irq], ioaddr + SET_IRQ); |
ioaddr | 579 | drivers/net/eexpress.c | outw(lp->tx_reap, ioaddr + READ_PTR); |
ioaddr | 580 | drivers/net/eexpress.c | tx_status = inw(ioaddr); |
ioaddr | 616 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 622 | drivers/net/eexpress.c | outw(IDLELOOP, ioaddr + WRITE_PTR); |
ioaddr | 623 | drivers/net/eexpress.c | outw(0, ioaddr); |
ioaddr | 624 | drivers/net/eexpress.c | outw(CmdNOp, ioaddr); |
ioaddr | 625 | drivers/net/eexpress.c | outw(IDLELOOP, ioaddr); |
ioaddr | 630 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
ioaddr | 635 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 646 | drivers/net/eexpress.c | outw(cur_rxbuf, ioaddr + READ_PTR); |
ioaddr | 648 | drivers/net/eexpress.c | printk(" %04x", inw(ioaddr)); |
ioaddr | 655 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
ioaddr | 659 | drivers/net/eexpress.c | outw(ack_cmd, ioaddr + SCB_CMD); |
ioaddr | 660 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 664 | drivers/net/eexpress.c | inw(ioaddr + SCB_CMD)); |
ioaddr | 667 | drivers/net/eexpress.c | outb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ); |
ioaddr | 674 | drivers/net/eexpress.c | int ioaddr = dev->base_addr; |
ioaddr | 680 | drivers/net/eexpress.c | outw(RX_SUSPEND | CUC_SUSPEND, ioaddr + SCB_CMD); |
ioaddr | 681 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 684 | drivers/net/eexpress.c | outb(0, ioaddr + SET_IRQ); |
ioaddr | 717 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 724 | drivers/net/eexpress.c | outw(SET_MC_CMD + 6, ioaddr + WRITE_PTR); |
ioaddr | 725 | drivers/net/eexpress.c | outw(num_addrs * 6, ioaddr); |
ioaddr | 726 | drivers/net/eexpress.c | outsw(ioaddr, addrs, num_addrs*3); /* 3 = addr len in words */ |
ioaddr | 731 | drivers/net/eexpress.c | outw(99, ioaddr); /* Disable promiscuous mode, use normal mode */ |
ioaddr | 743 | drivers/net/eexpress.c | read_eeprom(int ioaddr, int location) |
ioaddr | 747 | drivers/net/eexpress.c | short ee_addr = ioaddr + EEPROM_Ctrl; |
ioaddr | 784 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 788 | drivers/net/eexpress.c | outb(inb(ioaddr + Config) | 0x02, ioaddr + Config); |
ioaddr | 791 | drivers/net/eexpress.c | outb(_586_RESET, ioaddr + EEPROM_Ctrl); |
ioaddr | 794 | drivers/net/eexpress.c | outw(0xfff6, ioaddr + WRITE_PTR); |
ioaddr | 795 | drivers/net/eexpress.c | outsw(ioaddr, init_words, sizeof(init_words)>>1); |
ioaddr | 798 | drivers/net/eexpress.c | outw(SA_OFFSET, ioaddr + WRITE_PTR); |
ioaddr | 799 | drivers/net/eexpress.c | outsw(ioaddr, dev->dev_addr, 3); |
ioaddr | 812 | drivers/net/eexpress.c | outb(0x00, ioaddr + EEPROM_Ctrl); |
ioaddr | 816 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 820 | drivers/net/eexpress.c | while (inw(ioaddr + SCB_STATUS) == 0) |
ioaddr | 823 | drivers/net/eexpress.c | dev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD)); |
ioaddr | 827 | drivers/net/eexpress.c | outb(0, ioaddr + SIGNAL_CA); |
ioaddr | 831 | drivers/net/eexpress.c | outb(inb(ioaddr + Config) & ~0x02, ioaddr + Config); |
ioaddr | 834 | drivers/net/eexpress.c | inw(ioaddr + SCB_STATUS)); |
ioaddr | 842 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 848 | drivers/net/eexpress.c | outw(cur_rxbuf, ioaddr + WRITE_PTR); |
ioaddr | 849 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Status */ |
ioaddr | 850 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Command */ |
ioaddr | 851 | drivers/net/eexpress.c | outw(cur_rxbuf + RX_BUF_SIZE, ioaddr); /* Link */ |
ioaddr | 852 | drivers/net/eexpress.c | outw(cur_rxbuf + 22, ioaddr); /* Buffer offset */ |
ioaddr | 853 | drivers/net/eexpress.c | outw(0xFeed, ioaddr); /* Pad for dest addr. */ |
ioaddr | 854 | drivers/net/eexpress.c | outw(0xF00d, ioaddr); |
ioaddr | 855 | drivers/net/eexpress.c | outw(0xF001, ioaddr); |
ioaddr | 856 | drivers/net/eexpress.c | outw(0x0505, ioaddr); /* Pad for source addr. */ |
ioaddr | 857 | drivers/net/eexpress.c | outw(0x2424, ioaddr); |
ioaddr | 858 | drivers/net/eexpress.c | outw(0x6565, ioaddr); |
ioaddr | 859 | drivers/net/eexpress.c | outw(0xdeaf, ioaddr); /* Pad for protocol. */ |
ioaddr | 861 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Buffer: Actual count */ |
ioaddr | 862 | drivers/net/eexpress.c | outw(-1, ioaddr); /* Buffer: Next (none). */ |
ioaddr | 863 | drivers/net/eexpress.c | outw(cur_rxbuf + 0x20, ioaddr); /* Buffer: Address low */ |
ioaddr | 864 | drivers/net/eexpress.c | outw(0x0000, ioaddr); |
ioaddr | 866 | drivers/net/eexpress.c | outw(0x8000 + RX_BUF_SIZE-0x20, ioaddr); |
ioaddr | 874 | drivers/net/eexpress.c | outw(lp->rx_tail + 2, ioaddr + WRITE_PTR); |
ioaddr | 875 | drivers/net/eexpress.c | outw(0xC000, ioaddr); /* Command, mark as last. */ |
ioaddr | 876 | drivers/net/eexpress.c | outw(lp->rx_head, ioaddr); /* Link */ |
ioaddr | 883 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 887 | drivers/net/eexpress.c | outw(tx_block, ioaddr + WRITE_PTR); |
ioaddr | 888 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Tx status */ |
ioaddr | 889 | drivers/net/eexpress.c | outw(CMD_INTR|CmdTx, ioaddr); /* Tx command */ |
ioaddr | 890 | drivers/net/eexpress.c | outw(tx_block+16, ioaddr); /* Next command is a NoOp. */ |
ioaddr | 891 | drivers/net/eexpress.c | outw(tx_block+8, ioaddr); /* Data Buffer offset. */ |
ioaddr | 894 | drivers/net/eexpress.c | outw(length | 0x8000, ioaddr); /* Byte count parameter. */ |
ioaddr | 895 | drivers/net/eexpress.c | outw(-1, ioaddr); /* No next data buffer. */ |
ioaddr | 896 | drivers/net/eexpress.c | outw(tx_block+22, ioaddr); /* Buffer follows the NoOp command. */ |
ioaddr | 897 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Buffer address high bits (always zero). */ |
ioaddr | 900 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Tx status */ |
ioaddr | 901 | drivers/net/eexpress.c | outw(CmdNOp, ioaddr); /* Tx command */ |
ioaddr | 902 | drivers/net/eexpress.c | outw(tx_block+16, ioaddr); /* Next is myself. */ |
ioaddr | 906 | drivers/net/eexpress.c | outsw(ioaddr + DATAPORT, buf, (length + 1) >> 1); |
ioaddr | 909 | drivers/net/eexpress.c | outw(lp->tx_cmd_link, ioaddr + WRITE_PTR); |
ioaddr | 910 | drivers/net/eexpress.c | outw(tx_block, ioaddr); |
ioaddr | 920 | drivers/net/eexpress.c | "reap %4x status %4.4x.\n", dev->name, ioaddr, length, |
ioaddr | 921 | drivers/net/eexpress.c | tx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS)); |
ioaddr | 932 | drivers/net/eexpress.c | short ioaddr = dev->base_addr; |
ioaddr | 933 | drivers/net/eexpress.c | short saved_write_ptr = inw(ioaddr + WRITE_PTR); |
ioaddr | 940 | drivers/net/eexpress.c | outw(rx_head, ioaddr + READ_PTR); |
ioaddr | 941 | drivers/net/eexpress.c | while ((frame_status = inw(ioaddr)) < 0) { /* Command complete */ |
ioaddr | 942 | drivers/net/eexpress.c | short rfd_cmd = inw(ioaddr); |
ioaddr | 943 | drivers/net/eexpress.c | short next_rx_frame = inw(ioaddr); |
ioaddr | 944 | drivers/net/eexpress.c | short data_buffer_addr = inw(ioaddr); |
ioaddr | 948 | drivers/net/eexpress.c | outw(data_buffer_addr, ioaddr + READ_PTR); |
ioaddr | 949 | drivers/net/eexpress.c | pkt_len = inw(ioaddr); |
ioaddr | 983 | drivers/net/eexpress.c | outw(data_buffer_addr + 10, ioaddr + READ_PTR); |
ioaddr | 985 | drivers/net/eexpress.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 1001 | drivers/net/eexpress.c | outw(rx_head, ioaddr + WRITE_PTR); |
ioaddr | 1002 | drivers/net/eexpress.c | outw(0x0000, ioaddr); |
ioaddr | 1003 | drivers/net/eexpress.c | outw(0xC000, ioaddr); |
ioaddr | 1014 | drivers/net/eexpress.c | outw(rx_tail+2, ioaddr + WRITE_PTR); |
ioaddr | 1015 | drivers/net/eexpress.c | outw(0x0000, ioaddr); /* Clear the end-of-list on the prev. RFD. */ |
ioaddr | 1018 | drivers/net/eexpress.c | outw(rx_tail+4, ioaddr + READ_PTR); |
ioaddr | 1019 | drivers/net/eexpress.c | if (inw(ioaddr) != rx_head) { |
ioaddr | 1021 | drivers/net/eexpress.c | dev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)), |
ioaddr | 1023 | drivers/net/eexpress.c | outw(rx_head, ioaddr); |
ioaddr | 1031 | drivers/net/eexpress.c | outw(rx_head, ioaddr + READ_PTR); |
ioaddr | 1038 | drivers/net/eexpress.c | outw(saved_write_ptr, ioaddr + WRITE_PTR); |
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 | 208 | drivers/net/lance.c | unsigned long lance_probe1(short ioaddr, unsigned long mem_start); |
ioaddr | 227 | drivers/net/lance.c | int ioaddr = *port; |
ioaddr | 229 | drivers/net/lance.c | if ( check_region(ioaddr, LANCE_TOTAL_SIZE) == 0 |
ioaddr | 230 | drivers/net/lance.c | && inb(ioaddr + 14) == 0x57 |
ioaddr | 231 | drivers/net/lance.c | && inb(ioaddr + 15) == 0x57) { |
ioaddr | 232 | drivers/net/lance.c | mem_start = lance_probe1(ioaddr, mem_start); |
ioaddr | 239 | drivers/net/lance.c | unsigned long lance_probe1(short ioaddr, unsigned long mem_start) |
ioaddr | 246 | drivers/net/lance.c | hpJ2405A = (inb(ioaddr) == 0x08 && inb(ioaddr+1) == 0x00 |
ioaddr | 247 | drivers/net/lance.c | && inb(ioaddr+2) == 0x09); |
ioaddr | 250 | drivers/net/lance.c | reset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */ |
ioaddr | 255 | drivers/net/lance.c | outw(reset_val, ioaddr+LANCE_RESET); |
ioaddr | 257 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */ |
ioaddr | 258 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) != 0x0004) |
ioaddr | 265 | drivers/net/lance.c | printk("%s: LANCE at %#3x,", dev->name, ioaddr); |
ioaddr | 270 | drivers/net/lance.c | printk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i)); |
ioaddr | 272 | drivers/net/lance.c | dev->base_addr = ioaddr; |
ioaddr | 273 | drivers/net/lance.c | snarf_region(ioaddr, LANCE_TOTAL_SIZE); |
ioaddr | 290 | drivers/net/lance.c | outw(88, ioaddr+LANCE_ADDR); |
ioaddr | 291 | drivers/net/lance.c | lp->old_lance = (inw(ioaddr+LANCE_DATA) != 0x3003); |
ioaddr | 295 | drivers/net/lance.c | inw(ioaddr+LANCE_DATA)); |
ioaddr | 306 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 307 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 308 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 309 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 310 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 315 | drivers/net/lance.c | short reset_val = inw(ioaddr+LANCE_RESET); |
ioaddr | 333 | drivers/net/lance.c | outw(0x0041, ioaddr+LANCE_DATA); |
ioaddr | 350 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 351 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 374 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 388 | drivers/net/lance.c | inw(ioaddr+LANCE_RESET); |
ioaddr | 396 | drivers/net/lance.c | outw(0, ioaddr+LANCE_RESET); |
ioaddr | 400 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 401 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_BUS_IF); |
ioaddr | 411 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_ADDR); |
ioaddr | 412 | drivers/net/lance.c | outw((short) (int) &lp->init_block, ioaddr+LANCE_DATA); |
ioaddr | 413 | drivers/net/lance.c | outw(0x0002, ioaddr+LANCE_ADDR); |
ioaddr | 414 | drivers/net/lance.c | outw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA); |
ioaddr | 416 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_ADDR); |
ioaddr | 417 | drivers/net/lance.c | outw(0x0d15, ioaddr+LANCE_DATA); |
ioaddr | 419 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 420 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 427 | drivers/net/lance.c | if (inw(ioaddr+LANCE_DATA) & 0x0100) |
ioaddr | 429 | drivers/net/lance.c | outw(0x0142, ioaddr+LANCE_DATA); |
ioaddr | 433 | drivers/net/lance.c | dev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA)); |
ioaddr | 471 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 479 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 481 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 482 | drivers/net/lance.c | outw(0x0001, ioaddr+LANCE_DATA); |
ioaddr | 501 | drivers/net/lance.c | outw(0x0043, ioaddr+LANCE_DATA); |
ioaddr | 526 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 528 | drivers/net/lance.c | inw(ioaddr+LANCE_DATA)); |
ioaddr | 529 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); |
ioaddr | 575 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_ADDR); |
ioaddr | 576 | drivers/net/lance.c | outw(0x0048, ioaddr+LANCE_DATA); |
ioaddr | 593 | drivers/net/lance.c | int csr0, ioaddr; |
ioaddr | 600 | drivers/net/lance.c | ioaddr = dev->base_addr; |
ioaddr | 692 | drivers/net/lance.c | dev->name, inw(ioaddr + LANCE_ADDR), |
ioaddr | 765 | drivers/net/lance.c | int ioaddr = dev->base_addr; |
ioaddr | 771 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 772 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 774 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 778 | drivers/net/lance.c | dev->name, inw(ioaddr+LANCE_DATA)); |
ioaddr | 782 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); |
ioaddr | 798 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 802 | drivers/net/lance.c | saved_addr = inw(ioaddr+LANCE_ADDR); |
ioaddr | 803 | drivers/net/lance.c | outw(112, ioaddr+LANCE_ADDR); |
ioaddr | 804 | drivers/net/lance.c | lp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA); |
ioaddr | 805 | drivers/net/lance.c | outw(saved_addr, ioaddr+LANCE_ADDR); |
ioaddr | 821 | drivers/net/lance.c | short ioaddr = dev->base_addr; |
ioaddr | 824 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 825 | drivers/net/lance.c | outw(0x0004, ioaddr+LANCE_DATA); /* Temporarily stop the lance. */ |
ioaddr | 827 | drivers/net/lance.c | outw(15, ioaddr+LANCE_ADDR); |
ioaddr | 834 | drivers/net/lance.c | outw(8 + i, ioaddr+LANCE_ADDR); |
ioaddr | 835 | drivers/net/lance.c | outw(multicast_table[i], ioaddr+LANCE_DATA); |
ioaddr | 837 | drivers/net/lance.c | outw(0x0000, ioaddr+LANCE_DATA); /* Unset promiscuous mode */ |
ioaddr | 839 | drivers/net/lance.c | outw(0x8000, ioaddr+LANCE_DATA); /* Set promiscuous mode */ |
ioaddr | 842 | drivers/net/lance.c | outw(0, ioaddr+LANCE_ADDR); |
ioaddr | 843 | 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 | 136 | drivers/net/plip.c | extern int plip_probe(int ioaddr, struct device *dev); |
ioaddr | 79 | drivers/net/skeleton.c | #define check_region(ioaddr, size) 0 |
ioaddr | 80 | drivers/net/skeleton.c | #define snarf_region(ioaddr, size); do ; while (0) |
ioaddr | 107 | drivers/net/skeleton.c | static int netcard_probe1(struct device *dev, short ioaddr); |
ioaddr | 120 | drivers/net/skeleton.c | extern void hardware_send_packet(short ioaddr, char *buf, int length); |
ioaddr | 142 | drivers/net/skeleton.c | int ioaddr = *port; |
ioaddr | 143 | drivers/net/skeleton.c | if (check_region(ioaddr, ETHERCARD_TOTAL_SIZE)) |
ioaddr | 145 | drivers/net/skeleton.c | if (inb(ioaddr) != 0x57) |
ioaddr | 147 | drivers/net/skeleton.c | dev->base_addr = ioaddr; |
ioaddr | 148 | drivers/net/skeleton.c | if (netcard_probe1(dev, ioaddr) == 0) |
ioaddr | 156 | drivers/net/skeleton.c | int netcard_probe1(struct device *dev, short ioaddr) |
ioaddr | 163 | drivers/net/skeleton.c | station_addr[i] = inb(ioaddr + i); |
ioaddr | 203 | drivers/net/skeleton.c | snarf_region(ioaddr, ETHERCARD_TOTAL_SIZE); |
ioaddr | 262 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 280 | drivers/net/skeleton.c | outb(0x00, ioaddr); |
ioaddr | 293 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 334 | drivers/net/skeleton.c | hardware_send_packet(ioaddr, buf, length); |
ioaddr | 341 | drivers/net/skeleton.c | if (inw(ioaddr) == /*RU*/81) |
ioaddr | 355 | drivers/net/skeleton.c | int ioaddr, status, boguscount = 0; |
ioaddr | 363 | drivers/net/skeleton.c | ioaddr = dev->base_addr; |
ioaddr | 365 | drivers/net/skeleton.c | status = inw(ioaddr + 0); |
ioaddr | 391 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 395 | drivers/net/skeleton.c | int status = inw(ioaddr); |
ioaddr | 396 | drivers/net/skeleton.c | int pkt_len = inw(ioaddr); |
ioaddr | 427 | drivers/net/skeleton.c | insw(ioaddr, skb->data, (pkt_len + 1) >> 1); |
ioaddr | 454 | drivers/net/skeleton.c | int ioaddr = dev->base_addr; |
ioaddr | 466 | drivers/net/skeleton.c | outw(0x00, ioaddr+0); /* Release the physical interrupt line. */ |
ioaddr | 485 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 489 | drivers/net/skeleton.c | lp->stats.rx_missed_errors = inw(ioaddr+1); |
ioaddr | 505 | drivers/net/skeleton.c | short ioaddr = dev->base_addr; |
ioaddr | 507 | drivers/net/skeleton.c | outw(69, ioaddr); /* Enable promiscuous mode */ |
ioaddr | 509 | 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 | 136 | drivers/sound/dev_table.c | int card_type, ioaddr, irq, dma, ptr, j; |
ioaddr | 149 | drivers/sound/dev_table.c | ioaddr = (val & 0x000fff00) >> 8; |
ioaddr | 163 | drivers/sound/dev_table.c | supported_drivers[ptr].config.io_base = ioaddr; |
ioaddr | 170 | drivers/sound/dev_table.c | void sound_chconf(int card_type, int ioaddr, int irq, int dma) |
ioaddr | 184 | drivers/sound/dev_table.c | if (ioaddr) supported_drivers[ptr].config.io_base = ioaddr; |
ioaddr | 238 | drivers/sound/dev_table.h | void sound_chconf(int card_type, int ioaddr, int irq, int dma); |
ioaddr | 165 | drivers/sound/opl3.c | opl3_detect (int ioaddr) |
ioaddr | 187 | drivers/sound/opl3.c | ioaddr = left_address; |
ioaddr | 189 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); /* Reset timers 1 and 2 */ |
ioaddr | 190 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); /* Reset the IRQ of FM |
ioaddr | 193 | drivers/sound/opl3.c | stat1 = INB (ioaddr); /* Read status register */ |
ioaddr | 200 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER1_REGISTER, 0xff); /* Set timer 1 to 0xff */ |
ioaddr | 201 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, |
ioaddr | 211 | drivers/sound/opl3.c | stat2 = INB (ioaddr); /* Read status after timers have expired */ |
ioaddr | 215 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK); /* Reset timers 1 and 2 */ |
ioaddr | 216 | drivers/sound/opl3.c | opl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET); /* Reset the IRQ of FM |
ioaddr | 227 | drivers/sound/opl3.c | opl3_command (ioaddr, KEYON_BLOCK + i, 0); /* Note off */ |
ioaddr | 229 | drivers/sound/opl3.c | opl3_command (ioaddr, TEST_REGISTER, ENABLE_WAVE_SELECT); |
ioaddr | 230 | drivers/sound/opl3.c | opl3_command (ioaddr, PERCUSSION_REGISTER, 0x00); /* Melodic mode. */ |
ioaddr | 250 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20); |
ioaddr | 376 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); /* Modulator volume */ |
ioaddr | 377 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); /* Carrier volume */ |
ioaddr | 420 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1); |
ioaddr | 421 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2); |
ioaddr | 422 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], vol3); |
ioaddr | 423 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], vol4); |
ioaddr | 450 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[1], 0xff); /* Carrier volume to min */ |
ioaddr | 451 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[0], 0xff); /* Modulator volume to */ |
ioaddr | 455 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[2], 0xff); |
ioaddr | 456 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KSL_LEVEL + map->op[3], 0xff); |
ioaddr | 459 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, 0x00); /* Note off */ |
ioaddr | 483 | drivers/sound/opl3.c | voice_shift = (map->ioaddr == left_address) ? 0 : 3; |
ioaddr | 500 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[0], instr->operators[0]); |
ioaddr | 501 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[1], instr->operators[1]); |
ioaddr | 504 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[0], instr->operators[4]); |
ioaddr | 505 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[1], instr->operators[5]); |
ioaddr | 508 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[0], instr->operators[6]); |
ioaddr | 509 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[1], instr->operators[7]); |
ioaddr | 512 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[0], instr->operators[8]); |
ioaddr | 513 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[1], instr->operators[9]); |
ioaddr | 519 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num, |
ioaddr | 530 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[2], instr->operators[OFFS_4OP + 0]); |
ioaddr | 531 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[3], instr->operators[OFFS_4OP + 1]); |
ioaddr | 534 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[2], instr->operators[OFFS_4OP + 4]); |
ioaddr | 535 | drivers/sound/opl3.c | opl3_command (map->ioaddr, ATTACK_DECAY + map->op[3], instr->operators[OFFS_4OP + 5]); |
ioaddr | 538 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[2], instr->operators[OFFS_4OP + 6]); |
ioaddr | 539 | drivers/sound/opl3.c | opl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[3], instr->operators[OFFS_4OP + 7]); |
ioaddr | 542 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[2], instr->operators[OFFS_4OP + 8]); |
ioaddr | 543 | drivers/sound/opl3.c | opl3_command (map->ioaddr, WAVE_SELECT + map->op[3], instr->operators[OFFS_4OP + 9]); |
ioaddr | 549 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num + 3, fpc); |
ioaddr | 571 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 575 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 577 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num + 3, data); |
ioaddr | 658 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 661 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 666 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 669 | drivers/sound/opl3.c | opl3_command (physical_voices[logical_voices[i]].ioaddr, |
ioaddr | 754 | drivers/sound/opl3.c | opl3_command (map->ioaddr, AM_VIB + map->op[cell-1], tmp);} |
ioaddr | 852 | drivers/sound/opl3.c | opl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data); |
ioaddr | 857 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data); |
ioaddr | 915 | drivers/sound/opl3.c | if (physical_voices[i].ioaddr == USE_LEFT) |
ioaddr | 916 | drivers/sound/opl3.c | physical_voices[i].ioaddr = left_address; |
ioaddr | 918 | drivers/sound/opl3.c | physical_voices[i].ioaddr = right_address; |
ioaddr | 933 | 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 | 57 | drivers/sound/pas2_card.c | pas_read (int ioaddr) |
ioaddr | 59 | drivers/sound/pas2_card.c | return INB (ioaddr ^ translat_code); |
ioaddr | 63 | drivers/sound/pas2_card.c | pas_write (unsigned char data, int ioaddr) |
ioaddr | 65 | drivers/sound/pas2_card.c | OUTB (data, ioaddr ^ translat_code); |
ioaddr | 140 | drivers/sound/sound_calls.h | int opl3_detect (int ioaddr); |
ioaddr | 156 | drivers/sound/sound_calls.h | unsigned char pas_read(int ioaddr); |
ioaddr | 157 | drivers/sound/sound_calls.h | void pas_write(unsigned char data, int ioaddr); |
ioaddr | 27 | include/linux/ddi.h | int ioaddr; /* main I/O (port) address */ |
ioaddr | 100 | include/linux/kd.h | ushort ioaddr[MKDIOADDR]; /* valid i/o addresses */ |