taglinefilesource code
ioaddr61drivers/net/3c501.cstatic int  el1_probe1(struct device *dev, int ioaddr);
ioaddr86drivers/net/3c501.c#define RX_STATUS (ioaddr + 0x06)
ioaddr88drivers/net/3c501.c#define TX_STATUS (ioaddr + 0x07)
ioaddr90drivers/net/3c501.c#define GP_LOW     (ioaddr + 0x08)
ioaddr91drivers/net/3c501.c#define GP_HIGH   (ioaddr + 0x09)
ioaddr92drivers/net/3c501.c#define RX_BUF_CLR (ioaddr + 0x0A)
ioaddr93drivers/net/3c501.c#define RX_LOW    (ioaddr + 0x0A)
ioaddr94drivers/net/3c501.c#define RX_HIGH   (ioaddr + 0x0B)
ioaddr95drivers/net/3c501.c#define SAPROM    (ioaddr + 0x0C)
ioaddr96drivers/net/3c501.c#define AX_STATUS (ioaddr + 0x0E)
ioaddr98drivers/net/3c501.c#define DATAPORT  (ioaddr + 0x0F)
ioaddr148drivers/net/3c501.cint ioaddr = netcard_portlist[i];
ioaddr149drivers/net/3c501.cif (check_region(ioaddr, EL1_IO_EXTENT))
ioaddr151drivers/net/3c501.cif (el1_probe1(dev, ioaddr) == 0)
ioaddr161drivers/net/3c501.cel1_probe1(struct device *dev, int ioaddr)
ioaddr170drivers/net/3c501.coutw(i, ioaddr + EL1_DATAPTR);
ioaddr171drivers/net/3c501.cstation_addr[i] = inb(ioaddr + EL1_SAPROM);
ioaddr185drivers/net/3c501.csnarf_region(ioaddr, EL1_IO_EXTENT);
ioaddr206drivers/net/3c501.cmname, ioaddr);
ioaddr213drivers/net/3c501.cdev->base_addr = ioaddr;
ioaddr248drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr273drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr334drivers/net/3c501.cint ioaddr;
ioaddr342drivers/net/3c501.cioaddr = dev->base_addr;
ioaddr362drivers/net/3c501.cinw(ioaddr + EL1_DATAPTR), inw(ioaddr + EL1_RXPTR));
ioaddr427drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr465drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr474drivers/net/3c501.coutb(dev->dev_addr[i], ioaddr + i);
ioaddr491drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr494drivers/net/3c501.cprintk("%s: Shutting down ethercard at %#x.\n", dev->name, ioaddr);
ioaddr526drivers/net/3c501.cint ioaddr = dev->base_addr;
ioaddr46drivers/net/3c503.cint el2_probe1(struct device *dev, int ioaddr);
ioaddr127drivers/net/3c503.cint ioaddr = netcard_portlist[i];
ioaddr128drivers/net/3c503.cif (check_region(ioaddr, EL2_IO_EXTENT))
ioaddr130drivers/net/3c503.cif (el2_probe1(dev, ioaddr) == 0)
ioaddr142drivers/net/3c503.cel2_probe1(struct device *dev, int ioaddr)
ioaddr148drivers/net/3c503.cif (inb(ioaddr + 0x408) == 0xff)
ioaddr153drivers/net/3c503.ciobase_reg = inb(ioaddr+0x403);
ioaddr154drivers/net/3c503.cmembase_reg = inb(ioaddr+0x404);
ioaddr160drivers/net/3c503.csaved_406 = inb_p(ioaddr + 0x406);
ioaddr161drivers/net/3c503.coutb_p(ECNTRL_RESET|ECNTRL_THIN, ioaddr + 0x406); /* Reset it... */
ioaddr162drivers/net/3c503.coutb_p(ECNTRL_THIN, ioaddr + 0x406);
ioaddr164drivers/net/3c503.coutb(ECNTRL_SAPROM|ECNTRL_THIN, ioaddr + 0x406);
ioaddr165drivers/net/3c503.cif (   inb(ioaddr + 0) != 0x02
ioaddr166drivers/net/3c503.c|| inb(ioaddr + 1) != 0x60
ioaddr167drivers/net/3c503.c|| inb(ioaddr + 2) != 0x8c) {
ioaddr169drivers/net/3c503.coutb(saved_406, ioaddr + 0x406);
ioaddr173drivers/net/3c503.csnarf_region(ioaddr, EL2_IO_EXTENT);
ioaddr181drivers/net/3c503.cdev->base_addr = ioaddr;
ioaddr184drivers/net/3c503.cprintk("%s: 3c503 at %#3x,", dev->name, ioaddr);
ioaddr188drivers/net/3c503.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
ioaddr191drivers/net/3c503.coutb(ECNTRL_THIN, ioaddr + 0x406);
ioaddr195drivers/net/3c503.coutb(EGACFR_NORM, ioaddr + 0x405);  /* Enable RAM */
ioaddr282drivers/net/3c507.cstatic int  el16_probe1(struct device *dev, int ioaddr);
ioaddr317drivers/net/3c507.cint ioaddr = netcard_portlist[i];
ioaddr318drivers/net/3c507.cif (check_region(ioaddr, EL16_IO_EXTENT))
ioaddr320drivers/net/3c507.cif (el16_probe1(dev, ioaddr) == 0)
ioaddr327drivers/net/3c507.cint el16_probe1(struct device *dev, int ioaddr)
ioaddr346drivers/net/3c507.cif (inb(ioaddr) == '*' && inb(ioaddr+1) == '3'
ioaddr347drivers/net/3c507.c&& inb(ioaddr+2) == 'C' && inb(ioaddr+3) == 'O')
ioaddr359drivers/net/3c507.cprintk("%s: 3c507 at %#x,", dev->name, ioaddr);
ioaddr364drivers/net/3c507.cirq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
ioaddr373drivers/net/3c507.csnarf_region(ioaddr, EL16_IO_EXTENT);
ioaddr374drivers/net/3c507.cdev->base_addr = ioaddr;
ioaddr376drivers/net/3c507.coutb(0x01, ioaddr + MISC_CTRL);
ioaddr378drivers/net/3c507.cdev->dev_addr[i] = inb(ioaddr + i);
ioaddr392drivers/net/3c507.cchar mem_config = inb(ioaddr + MEM_CONFIG);
ioaddr406drivers/net/3c507.cdev->if_port = (inb(ioaddr + ROM_CONFIG) & 0x80) ? 1 : 0;
ioaddr407drivers/net/3c507.cdev->irq = inb(ioaddr + IRQ_CONFIG) & 0x0f;
ioaddr450drivers/net/3c507.cint ioaddr = dev->base_addr;
ioaddr472drivers/net/3c507.coutb(0, ioaddr + SIGNAL_CA);      /* Issue channel-attn. */
ioaddr495drivers/net/3c507.coutb(0x80, ioaddr + MISC_CTRL);
ioaddr499drivers/net/3c507.coutb(0x84, ioaddr + MISC_CTRL);
ioaddr517drivers/net/3c507.cint ioaddr, status, boguscount = 0;
ioaddr527drivers/net/3c507.cioaddr = dev->base_addr;
ioaddr538drivers/net/3c507.coutb(0x80, ioaddr + MISC_CTRL);
ioaddr601drivers/net/3c507.coutb(0, ioaddr + SIGNAL_CA);      /* Issue channel-attn. */
ioaddr604drivers/net/3c507.coutb(0, ioaddr + RESET_IRQ);
ioaddr607drivers/net/3c507.coutb(0x84, ioaddr + MISC_CTRL);
ioaddr615drivers/net/3c507.cint ioaddr = dev->base_addr;
ioaddr623drivers/net/3c507.coutb(0, ioaddr + SIGNAL_CA);
ioaddr626drivers/net/3c507.coutb(0x80, ioaddr + MISC_CTRL);
ioaddr701drivers/net/3c507.cshort ioaddr = dev->base_addr;
ioaddr706drivers/net/3c507.coutb(0x20, ioaddr + MISC_CTRL);
ioaddr729drivers/net/3c507.coutb(0xA0, ioaddr + MISC_CTRL);
ioaddr733drivers/net/3c507.coutb(0, ioaddr + SIGNAL_CA);
ioaddr745drivers/net/3c507.coutb(0, ioaddr + SIGNAL_CA);
ioaddr749drivers/net/3c507.coutb(0x84, ioaddr + MISC_CTRL);
ioaddr760drivers/net/3c507.cshort ioaddr = dev->base_addr;
ioaddr795drivers/net/3c507.cdev->name, ioaddr, length, tx_block, lp->tx_head);
ioaddr68drivers/net/3c509.c#define EL3WINDOW(win_num) outw(SelectWindow + (win_num), ioaddr + EL3_CMD)
ioaddr102drivers/net/3c509.cstatic ushort read_eeprom(short ioaddr, int index);
ioaddr119drivers/net/3c509.cushort ioaddr, irq, if_port;
ioaddr128drivers/net/3c509.cioaddr = eisa_addr;
ioaddr132drivers/net/3c509.cif (inw(ioaddr + 0xC80) != 0x6d50)
ioaddr136drivers/net/3c509.coutw(SelectWindow | 0, ioaddr + 0xC80 + EL3_CMD);
ioaddr138drivers/net/3c509.cirq = inw(ioaddr + WN0_IRQ) >> 12;
ioaddr139drivers/net/3c509.cif_port = inw(ioaddr + 6)>>14;
ioaddr141drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
ioaddr144drivers/net/3c509.cread_eeprom(ioaddr, 3);
ioaddr156drivers/net/3c509.cioaddr = mca_pos_base_addr(i);
ioaddr157drivers/net/3c509.cirq = inw(ioaddr + WN0_IRQ) >> 12;
ioaddr158drivers/net/3c509.cif_port = inw(ioaddr + 6)>>14;
ioaddr160drivers/net/3c509.cphys_addr[i] = htons(read_eeprom(ioaddr, i));
ioaddr202drivers/net/3c509.cioaddr = 0x200 + ((iobase & 0x1f) << 4);
ioaddr207drivers/net/3c509.c&&  dev->base_addr != (unsigned short)ioaddr) {
ioaddr218drivers/net/3c509.cif (inw(ioaddr) != 0x6d50)
ioaddr222drivers/net/3c509.coutw(0x0f00, ioaddr + WN0_IRQ);
ioaddr224drivers/net/3c509.cdev->base_addr = ioaddr;
ioaddr264drivers/net/3c509.cstatic ushort read_eeprom(short ioaddr, int index)
ioaddr268drivers/net/3c509.coutw(EEPROM_READ + index, ioaddr + 10);
ioaddr272drivers/net/3c509.creturn inw(ioaddr + 12);
ioaddr302drivers/net/3c509.cint ioaddr = dev->base_addr;
ioaddr305drivers/net/3c509.coutw(TxReset, ioaddr + EL3_CMD);
ioaddr306drivers/net/3c509.coutw(RxReset, ioaddr + EL3_CMD);
ioaddr307drivers/net/3c509.coutw(SetReadZero | 0x00, ioaddr + EL3_CMD);
ioaddr316drivers/net/3c509.cdev->irq, ioaddr + EL3_STATUS, inw(ioaddr + EL3_STATUS));
ioaddr319drivers/net/3c509.coutw(0x0001, ioaddr + 4);
ioaddr324drivers/net/3c509.coutw((dev->irq << 12) | 0x0f00, ioaddr + WN0_IRQ);
ioaddr330drivers/net/3c509.coutb(dev->dev_addr[i], ioaddr + i);
ioaddr334drivers/net/3c509.coutw(StartCoax, ioaddr + EL3_CMD);
ioaddr338drivers/net/3c509.coutw(inw(ioaddr + WN4_MEDIA) | MEDIA_TP, ioaddr + WN4_MEDIA);
ioaddr342drivers/net/3c509.coutw(StatsDisable, ioaddr + EL3_CMD);
ioaddr345drivers/net/3c509.cinb(ioaddr + i);
ioaddr346drivers/net/3c509.cinb(ioaddr + 10);
ioaddr347drivers/net/3c509.cinb(ioaddr + 12);
ioaddr353drivers/net/3c509.coutw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD);
ioaddr354drivers/net/3c509.coutw(StatsEnable, ioaddr + EL3_CMD); /* Turn on statistics. */
ioaddr360drivers/net/3c509.coutw(RxEnable, ioaddr + EL3_CMD); /* Enable the receiver. */
ioaddr361drivers/net/3c509.coutw(TxEnable, ioaddr + EL3_CMD); /* Enable transmitter. */
ioaddr363drivers/net/3c509.coutw(SetReadZero | 0xff, ioaddr + EL3_CMD);
ioaddr364drivers/net/3c509.coutw(AckIntr | 0x69, ioaddr + EL3_CMD); /* Ack IRQ */
ioaddr365drivers/net/3c509.coutw(SetIntrMask | 0x98, ioaddr + EL3_CMD); /* Set interrupt mask. */
ioaddr369drivers/net/3c509.cdev->name, dev->irq, inw(ioaddr + EL3_STATUS));
ioaddr381drivers/net/3c509.cint ioaddr = dev->base_addr;
ioaddr389drivers/net/3c509.cdev->name, inb(ioaddr + TX_STATUS), inw(ioaddr + EL3_STATUS));
ioaddr392drivers/net/3c509.coutw(TxReset, ioaddr + EL3_CMD);
ioaddr393drivers/net/3c509.coutw(TxEnable, ioaddr + EL3_CMD);
ioaddr407drivers/net/3c509.cdev->name, skb->len, inw(ioaddr + EL3_STATUS));
ioaddr411drivers/net/3c509.cushort status = inw(ioaddr + EL3_STATUS);
ioaddr413drivers/net/3c509.c&& inw(ioaddr + EL3_STATUS) & 1) {       /* Make sure. */
ioaddr416drivers/net/3c509.cinw(ioaddr + EL3_STATUS), inb(ioaddr + TX_STATUS),
ioaddr417drivers/net/3c509.cinw(ioaddr + RX_STATUS));
ioaddr419drivers/net/3c509.coutw(SetReadZero | 0x00, ioaddr + EL3_CMD);
ioaddr420drivers/net/3c509.coutw(AckIntr | 0x69, ioaddr + EL3_CMD); /* Ack IRQ */
ioaddr421drivers/net/3c509.coutw(SetReadZero | 0xff, ioaddr + EL3_CMD);
ioaddr431drivers/net/3c509.coutw(skb->len, ioaddr + TX_FIFO);
ioaddr432drivers/net/3c509.coutw(0x00, ioaddr + TX_FIFO);
ioaddr434drivers/net/3c509.coutsl(ioaddr + TX_FIFO, skb->data, (skb->len + 3) >> 2);
ioaddr437drivers/net/3c509.cif (inw(ioaddr + TX_FREE) > 1536) {
ioaddr441drivers/net/3c509.coutw(SetTxThreshold + 1536, ioaddr + EL3_CMD);
ioaddr451drivers/net/3c509.cwhile (--i > 0  &&  (tx_status = inb(ioaddr + TX_STATUS)) > 0) {
ioaddr453drivers/net/3c509.cif (tx_status & 0x30) outw(TxReset, ioaddr + EL3_CMD);
ioaddr454drivers/net/3c509.cif (tx_status & 0x3C) outw(TxEnable, ioaddr + EL3_CMD);
ioaddr455drivers/net/3c509.coutb(0x00, ioaddr + TX_STATUS); /* Pop the status stack. */
ioaddr467drivers/net/3c509.cint ioaddr, status;
ioaddr479drivers/net/3c509.cioaddr = dev->base_addr;
ioaddr480drivers/net/3c509.cstatus = inw(ioaddr + EL3_STATUS);
ioaddr485drivers/net/3c509.cwhile ((status = inw(ioaddr + EL3_STATUS)) & 0x91) {
ioaddr494drivers/net/3c509.coutw(AckIntr | 0x08, ioaddr + EL3_CMD);
ioaddr499drivers/net/3c509.cupdate_stats(ioaddr, dev);
ioaddr505drivers/net/3c509.coutw(AckIntr | 0xFF, ioaddr + EL3_CMD);
ioaddr509drivers/net/3c509.coutw(AckIntr | 0x41, ioaddr + EL3_CMD); /* Ack IRQ */
ioaddr515drivers/net/3c509.cinw(ioaddr + EL3_STATUS));
ioaddr541drivers/net/3c509.cstatic void update_stats(int ioaddr, struct device *dev)
ioaddr548drivers/net/3c509.coutw(StatsDisable, ioaddr + EL3_CMD);
ioaddr551drivers/net/3c509.clp->stats.tx_carrier_errors   += inb(ioaddr + 0);
ioaddr552drivers/net/3c509.clp->stats.tx_heartbeat_errors  += inb(ioaddr + 1);
ioaddr553drivers/net/3c509.c/* Multiple collisions. */       inb(ioaddr + 2);
ioaddr554drivers/net/3c509.clp->stats.collisions      += inb(ioaddr + 3);
ioaddr555drivers/net/3c509.clp->stats.tx_window_errors    += inb(ioaddr + 4);
ioaddr556drivers/net/3c509.clp->stats.rx_fifo_errors    += inb(ioaddr + 5);
ioaddr557drivers/net/3c509.clp->stats.tx_packets      += inb(ioaddr + 6);
ioaddr558drivers/net/3c509.c/* Rx packets  */        inb(ioaddr + 7);
ioaddr559drivers/net/3c509.c/* Tx deferrals */        inb(ioaddr + 8);
ioaddr560drivers/net/3c509.cinw(ioaddr + 10);  /* Total Rx and Tx octets. */
ioaddr561drivers/net/3c509.cinw(ioaddr + 12);
ioaddr565drivers/net/3c509.coutw(StatsEnable, ioaddr + EL3_CMD);
ioaddr573drivers/net/3c509.cint ioaddr = dev->base_addr;
ioaddr578drivers/net/3c509.cinw(ioaddr+EL3_STATUS), inw(ioaddr+RX_STATUS));
ioaddr579drivers/net/3c509.cwhile ((rx_status = inw(ioaddr + RX_STATUS)) > 0) {
ioaddr604drivers/net/3c509.cinsl(ioaddr+RX_FIFO, skb->data,
ioaddr608drivers/net/3c509.coutw(RxDiscard, ioaddr + EL3_CMD); /* Pop top Rx packet. */
ioaddr616drivers/net/3c509.coutw(RxDiscard, ioaddr + EL3_CMD);
ioaddr617drivers/net/3c509.cwhile (inw(ioaddr + EL3_STATUS) & 0x1000)
ioaddr619drivers/net/3c509.cinw(ioaddr + EL3_STATUS) );
ioaddr635drivers/net/3c509.cshort ioaddr = dev->base_addr;
ioaddr639drivers/net/3c509.coutw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD);
ioaddr642drivers/net/3c509.cioaddr + EL3_CMD);
ioaddr644drivers/net/3c509.coutw(SetRxFilter | RxStation | RxBroadcast, ioaddr + EL3_CMD);
ioaddr651drivers/net/3c509.cint ioaddr = dev->base_addr;
ioaddr660drivers/net/3c509.coutw(StatsDisable, ioaddr + EL3_CMD);
ioaddr663drivers/net/3c509.coutw(RxDisable, ioaddr + EL3_CMD);
ioaddr664drivers/net/3c509.coutw(TxDisable, ioaddr + EL3_CMD);
ioaddr668drivers/net/3c509.coutw(StopCoax, ioaddr + EL3_CMD);
ioaddr672drivers/net/3c509.coutw(inw(ioaddr + WN4_MEDIA) & ~MEDIA_TP, ioaddr + WN4_MEDIA);
ioaddr679drivers/net/3c509.coutw(0x0f00, ioaddr + WN0_IRQ);
ioaddr684drivers/net/3c509.cupdate_stats(ioaddr, dev);
ioaddr533drivers/net/8390.cshort ioaddr = dev->base_addr;
ioaddr537drivers/net/8390.cei_local->stat.rx_frame_errors += inb_p(ioaddr + EN0_COUNTER0);
ioaddr538drivers/net/8390.cei_local->stat.rx_crc_errors   += inb_p(ioaddr + EN0_COUNTER1);
ioaddr539drivers/net/8390.cei_local->stat.rx_missed_errors+= inb_p(ioaddr + EN0_COUNTER2);
ioaddr553drivers/net/8390.cshort ioaddr = dev->base_addr;
ioaddr558drivers/net/8390.coutb_p(E8390_RXCONFIG | 0x08, ioaddr + EN0_RXCR);
ioaddr560drivers/net/8390.coutb_p(E8390_RXCONFIG | 0x18, ioaddr + EN0_RXCR);
ioaddr562drivers/net/8390.coutb_p(E8390_RXCONFIG, ioaddr + EN0_RXCR);
ioaddr59drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev);
ioaddr78drivers/net/ac3200.cunsigned short ioaddr = dev->base_addr;
ioaddr80drivers/net/ac3200.cif (ioaddr > 0x1ff)    /* Check a single specified location. */
ioaddr81drivers/net/ac3200.creturn ac_probe1(ioaddr, dev);
ioaddr82drivers/net/ac3200.celse if (ioaddr > 0)    /* Don't probe at all. */
ioaddr89drivers/net/ac3200.cfor (ioaddr = 0x1000; ioaddr < 0x9000; ioaddr += 0x1000)
ioaddr90drivers/net/ac3200.cif (ac_probe1(ioaddr, dev) == 0)
ioaddr96drivers/net/ac3200.cstatic int ac_probe1(int ioaddr, struct device *dev)
ioaddr101drivers/net/ac3200.cprintk("AC3200 ethercard probe at %#3x:", ioaddr);
ioaddr104drivers/net/ac3200.cprintk(" %02x", inb(ioaddr + AC_SA_PROM + i));
ioaddr109drivers/net/ac3200.cif (inb(ioaddr + AC_SA_PROM + 0) != AC_ADDR0
ioaddr110drivers/net/ac3200.c|| inb(ioaddr + AC_SA_PROM + 1) != AC_ADDR1
ioaddr111drivers/net/ac3200.c|| inb(ioaddr + AC_SA_PROM + 2) != AC_ADDR2 ) {
ioaddr120drivers/net/ac3200.cif (inl(ioaddr + AC_ID_PORT) != AC_EISA_ID) {
ioaddr122drivers/net/ac3200.cinl(ioaddr + AC_EISA_ID), AC_EISA_ID); 
ioaddr127drivers/net/ac3200.cdev->dev_addr[i] = inb(ioaddr + AC_SA_PROM + i);
ioaddr131drivers/net/ac3200.c" EISA ID %02x %02x %02x %02x.\n", inb(ioaddr + AC_CONFIG),
ioaddr132drivers/net/ac3200.cinb(ioaddr + AC_ID_PORT + 0), inb(ioaddr + AC_ID_PORT + 1),
ioaddr133drivers/net/ac3200.cinb(ioaddr + AC_ID_PORT + 2), inb(ioaddr + AC_ID_PORT + 3));
ioaddr138drivers/net/ac3200.cdev->irq = config2irq(inb(ioaddr + AC_CONFIG));
ioaddr147drivers/net/ac3200.cdev->base_addr = ioaddr;
ioaddr156drivers/net/ac3200.coutb((inb(ioaddr + AC_CONFIG) & ~7) | i, ioaddr + AC_CONFIG);
ioaddr160drivers/net/ac3200.cdev->if_port = inb(ioaddr + AC_CONFIG) >> 6;
ioaddr161drivers/net/ac3200.cdev->mem_start = config2mem(inb(ioaddr + AC_CONFIG));
ioaddr175drivers/net/ac3200.cdev->name, ioaddr, dev->irq, port_name[dev->if_port],
ioaddr195drivers/net/ac3200.cint ioaddr = dev->base_addr;
ioaddr206drivers/net/ac3200.cushort ioaddr = dev->base_addr;
ioaddr208drivers/net/ac3200.coutb(AC_RESET, ioaddr + AC_RESET_PORT);
ioaddr212drivers/net/ac3200.coutb(AC_ENABLE, ioaddr + AC_RESET_PORT);
ioaddr257drivers/net/ac3200.coutb(0x00, ioaddr + 6);  /* Disable interrupts. */
ioaddr203drivers/net/apricot.cshort ioaddr = dev->base_addr;
ioaddr239drivers/net/apricot.coutw(0, ioaddr+4);
ioaddr249drivers/net/apricot.cshort ioaddr = dev->base_addr;
ioaddr253drivers/net/apricot.coutw(0, ioaddr);
ioaddr254drivers/net/apricot.coutw(0, ioaddr);
ioaddr255drivers/net/apricot.coutb(4, ioaddr+0xf);
ioaddr256drivers/net/apricot.coutw(((((int)&lp->scp) & 0xffff) | 2), ioaddr);
ioaddr257drivers/net/apricot.coutw((((int)&lp->scp)>>16) & 0xffff, ioaddr);
ioaddr271drivers/net/apricot.c(void) inb (ioaddr+0x10);
ioaddr272drivers/net/apricot.coutb(4, ioaddr+0xf);
ioaddr273drivers/net/apricot.coutw(0, ioaddr+4);
ioaddr426drivers/net/apricot.ci596_reset(struct device *dev, struct i596_private *lp, int ioaddr)
ioaddr444drivers/net/apricot.coutw(0, ioaddr+4);
ioaddr469drivers/net/apricot.cint ioaddr = dev->base_addr;
ioaddr496drivers/net/apricot.coutw (0, ioaddr+4);
ioaddr512drivers/net/apricot.ci596_reset(dev, lp, ioaddr);
ioaddr543drivers/net/apricot.cint ioaddr = dev->base_addr;
ioaddr561drivers/net/apricot.ci596_reset(dev,lp, ioaddr);
ioaddr567drivers/net/apricot.coutw(0, ioaddr+4);
ioaddr654drivers/net/apricot.cint ioaddr = 0x300;
ioaddr659drivers/net/apricot.cif (check_region(ioaddr, APRICOT_TOTAL_SIZE))
ioaddr663drivers/net/apricot.cchecksum += inb(ioaddr + 8 + i);
ioaddr673drivers/net/apricot.cprintk("%s: Apricot 82596 at %#3x,", dev->name, ioaddr);
ioaddr676drivers/net/apricot.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr +8 + i));
ioaddr678drivers/net/apricot.cdev->base_addr = ioaddr;
ioaddr682drivers/net/apricot.csnarf_region(ioaddr, APRICOT_TOTAL_SIZE);
ioaddr708drivers/net/apricot.cshort ioaddr;
ioaddr724drivers/net/apricot.cioaddr = dev->base_addr;
ioaddr858drivers/net/apricot.c(void) inb (ioaddr+0x10);
ioaddr859drivers/net/apricot.coutb (4, ioaddr+0xf);
ioaddr860drivers/net/apricot.coutw (0, ioaddr+4);
ioaddr872drivers/net/apricot.cint ioaddr = dev->base_addr;
ioaddr883drivers/net/apricot.coutw(0, ioaddr+4);
ioaddr119drivers/net/at1700.cstatic int at1700_probe1(struct device *dev, short ioaddr);
ioaddr120drivers/net/at1700.cstatic int read_eeprom(int ioaddr, int location);
ioaddr154drivers/net/at1700.cint ioaddr = at1700_probe_list[i];
ioaddr155drivers/net/at1700.cif (check_region(ioaddr, AT1700_IO_EXTENT))
ioaddr157drivers/net/at1700.cif (at1700_probe1(dev, ioaddr) == 0)
ioaddr173drivers/net/at1700.cint at1700_probe1(struct device *dev, short ioaddr)
ioaddr183drivers/net/at1700.cioaddr, read_eeprom(ioaddr, 4), read_eeprom(ioaddr, 5),
ioaddr184drivers/net/at1700.cread_eeprom(ioaddr, 6), inw(ioaddr + EEPROM_Ctrl));
ioaddr186drivers/net/at1700.cif (at1700_probe_list[inb(ioaddr + IOCONFIG) & 0x07] != ioaddr
ioaddr187drivers/net/at1700.c|| read_eeprom(ioaddr, 4) != 0x0000
ioaddr188drivers/net/at1700.c|| read_eeprom(ioaddr, 5) & 0xff00 != 0xF400)
ioaddr192drivers/net/at1700.coutb(0, ioaddr + RESET);
ioaddr194drivers/net/at1700.cirq = irqmap[(read_eeprom(ioaddr, 12)&0x04)
ioaddr195drivers/net/at1700.c| (read_eeprom(ioaddr, 0)>>14)];
ioaddr200drivers/net/at1700.c"IRQ %d.\n", ioaddr, irq);
ioaddr210drivers/net/at1700.csnarf_region(ioaddr, AT1700_IO_EXTENT);
ioaddr213drivers/net/at1700.cioaddr, irq);
ioaddr215drivers/net/at1700.cdev->base_addr = ioaddr;
ioaddr220drivers/net/at1700.cunsigned short eeprom_val = read_eeprom(ioaddr, 4+i);
ioaddr233drivers/net/at1700.cushort setup_value = read_eeprom(ioaddr, 12);
ioaddr240drivers/net/at1700.coutb(0xe0, ioaddr + 7);
ioaddr242drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
ioaddr245drivers/net/at1700.coutb(0xe4, ioaddr + 7);
ioaddr247drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
ioaddr251drivers/net/at1700.coutb(0xda, ioaddr + CONFIG_0);
ioaddr254drivers/net/at1700.coutb(0xe8, ioaddr + 7);
ioaddr258drivers/net/at1700.coutb(0x00, ioaddr + CONFIG_1);
ioaddr280drivers/net/at1700.cstatic int read_eeprom(int ioaddr, int location)
ioaddr284drivers/net/at1700.cshort ee_addr = ioaddr + EEPROM_Ctrl;
ioaddr285drivers/net/at1700.cshort ee_daddr = ioaddr + EEPROM_Data;
ioaddr324drivers/net/at1700.cint ioaddr = dev->base_addr;
ioaddr328drivers/net/at1700.coutb(0xe0, ioaddr + CONFIG_1);
ioaddr332drivers/net/at1700.coutb(dev->dev_addr[i], ioaddr + 8 + i);
ioaddr335drivers/net/at1700.coutb(0xe4, ioaddr + 7);
ioaddr337drivers/net/at1700.coutb(0x00, ioaddr + 8 + i);
ioaddr341drivers/net/at1700.coutb(0xda, ioaddr + CONFIG_0);
ioaddr344drivers/net/at1700.coutb(0x5a, ioaddr + CONFIG_0);
ioaddr346drivers/net/at1700.coutb(0xe8, ioaddr + CONFIG_1);
ioaddr349drivers/net/at1700.coutb(0x00, ioaddr + TX_INTR);
ioaddr350drivers/net/at1700.coutb(0x81, ioaddr + RX_INTR);
ioaddr365drivers/net/at1700.cint ioaddr = dev->base_addr;
ioaddr374drivers/net/at1700.cinw(ioaddr + STATUS), inb(ioaddr + TX_STATUS) & 0x80
ioaddr377drivers/net/at1700.cdev->name, inw(ioaddr + 0), inw(ioaddr + 2), inw(ioaddr + 4),
ioaddr378drivers/net/at1700.cinw(ioaddr + 6), inw(ioaddr + 8), inw(ioaddr + 10),
ioaddr379drivers/net/at1700.cinw(ioaddr + 12), inw(ioaddr + 14));
ioaddr382drivers/net/at1700.coutw(0xffff, ioaddr + 24);
ioaddr383drivers/net/at1700.coutw(0xffff, ioaddr + TX_STATUS);
ioaddr384drivers/net/at1700.coutw(0xe85a, ioaddr + CONFIG_0);
ioaddr385drivers/net/at1700.coutw(0x8100, ioaddr + TX_INTR);
ioaddr407drivers/net/at1700.coutb(0x00, ioaddr + TX_INTR);
ioaddr409drivers/net/at1700.coutw(length, ioaddr + DATAPORT);
ioaddr410drivers/net/at1700.coutsw(ioaddr + DATAPORT, buf, (length + 1) >> 1);
ioaddr417drivers/net/at1700.coutb(0x80 | lp->tx_queue, ioaddr + TX_START);
ioaddr428drivers/net/at1700.coutb(0x82, ioaddr + TX_INTR);
ioaddr443drivers/net/at1700.cint ioaddr, status;
ioaddr451drivers/net/at1700.cioaddr = dev->base_addr;
ioaddr453drivers/net/at1700.cstatus = inw(ioaddr + TX_STATUS);
ioaddr454drivers/net/at1700.coutw(status, ioaddr + TX_STATUS);
ioaddr459drivers/net/at1700.c||  (inb(ioaddr + RX_MODE) & 0x40) == 0) {      /* Got a packet(s). */
ioaddr466drivers/net/at1700.coutb(0x80 | lp->tx_queue, ioaddr + TX_START);
ioaddr475drivers/net/at1700.coutb(0x00, ioaddr + TX_INTR);
ioaddr491drivers/net/at1700.cint ioaddr = dev->base_addr;
ioaddr494drivers/net/at1700.cwhile ((inb(ioaddr + RX_MODE) & 0x40) == 0) {
ioaddr495drivers/net/at1700.cushort status = inw(ioaddr + DATAPORT);
ioaddr499drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), status);
ioaddr502drivers/net/at1700.coutb(0x05, ioaddr + 14);
ioaddr514drivers/net/at1700.cushort pkt_len = inw(ioaddr + DATAPORT);
ioaddr521drivers/net/at1700.coutb(0x05, ioaddr + 14);
ioaddr529drivers/net/at1700.coutb(0x05, ioaddr + 14);
ioaddr536drivers/net/at1700.cinsw(ioaddr + DATAPORT, skb->data, (pkt_len + 1) >> 1);
ioaddr559drivers/net/at1700.cif ((inb(ioaddr + RX_MODE) & 0x40) == 0x40)
ioaddr561drivers/net/at1700.cinw(ioaddr + DATAPORT);        /* dummy status read */
ioaddr562drivers/net/at1700.coutb(0x05, ioaddr + 14);
ioaddr567drivers/net/at1700.cdev->name, inb(ioaddr + RX_MODE), i);
ioaddr576drivers/net/at1700.cint ioaddr = dev->base_addr;
ioaddr584drivers/net/at1700.coutb(0xda, ioaddr + CONFIG_0);
ioaddr589drivers/net/at1700.coutb(0x00, ioaddr + CONFIG_1);
ioaddr617drivers/net/at1700.cshort ioaddr = dev->base_addr;
ioaddr619drivers/net/at1700.coutb(3, ioaddr + RX_MODE);  /* Enable promiscuous mode */
ioaddr621drivers/net/at1700.coutb(2, ioaddr + RX_MODE);  /* Disable promiscuous, use normal mode */
ioaddr116drivers/net/atp.c#define check_region(ioaddr, size)    0
ioaddr117drivers/net/atp.c#define snarf_region(ioaddr, size);    do ; while (0)
ioaddr133drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr);
ioaddr135drivers/net/atp.cstatic unsigned short eeprom_op(short ioaddr, unsigned int cmd);
ioaddr138drivers/net/atp.cstatic void write_packet(short ioaddr, int length, unsigned char *packet, int mode);
ioaddr139drivers/net/atp.cstatic void trigger_send(short ioaddr, int length);
ioaddr143drivers/net/atp.cstatic void read_block(short ioaddr, int length, unsigned char *buffer, int data_mode);
ioaddr167drivers/net/atp.cint ioaddr = *port;
ioaddr168drivers/net/atp.coutb(0x57, ioaddr + PAR_DATA);
ioaddr169drivers/net/atp.cif (inb(ioaddr + PAR_DATA) != 0x57)
ioaddr171drivers/net/atp.cif (atp_probe1(dev, ioaddr) == 0)
ioaddr178drivers/net/atp.cstatic int atp_probe1(struct device *dev, short ioaddr)
ioaddr182drivers/net/atp.coutb(0xff, ioaddr + PAR_DATA);
ioaddr185drivers/net/atp.csaved_ctrl_reg = inb(ioaddr + PAR_CONTROL);
ioaddr187drivers/net/atp.coutb(0x04, ioaddr + PAR_CONTROL);
ioaddr188drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RESET);
ioaddr190drivers/net/atp.cstatus = read_nibble(ioaddr, CMR1);
ioaddr194drivers/net/atp.coutb(saved_ctrl_reg, ioaddr + PAR_CONTROL);
ioaddr197drivers/net/atp.cstatus = read_nibble(ioaddr, CMR2_h);
ioaddr199drivers/net/atp.coutb(saved_ctrl_reg, ioaddr + PAR_CONTROL);
ioaddr203drivers/net/atp.cwrite_reg_byte(ioaddr, CMR2, 0x01);      /* No accept mode, IRQ out. */
ioaddr204drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE);  /* Enable Tx and Rx. */
ioaddr207drivers/net/atp.cif (ioaddr == 0x378)
ioaddr211drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_TxRxOFF); /* Disable Tx and Rx units. */
ioaddr212drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_NULL);
ioaddr214drivers/net/atp.cdev->base_addr = ioaddr;
ioaddr225drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RESET);
ioaddr258drivers/net/atp.cshort ioaddr = dev->base_addr;
ioaddr262drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_EEPROM);    /* Point to the EEPROM control registers. */
ioaddr266drivers/net/atp.cif (eeprom_op(ioaddr, EE_READ(0)) == 0xffff)
ioaddr271drivers/net/atp.cntohs(eeprom_op(ioaddr, EE_READ(sa_offset + i)));
ioaddr273drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_NULL);
ioaddr288drivers/net/atp.cstatic unsigned short eeprom_op(short ioaddr, unsigned int cmd)
ioaddr295drivers/net/atp.cwrite_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_LOW);
ioaddr297drivers/net/atp.cwrite_reg_high(ioaddr, PROM_CMD, outval | EE_CLK_HIGH);
ioaddr299drivers/net/atp.cif (read_nibble(ioaddr, PROM_DATA) & EE_DATA_READ)
ioaddr303drivers/net/atp.cwrite_reg_high(ioaddr, PROM_CMD, EE_CLK_LOW & ~EE_CS);
ioaddr340drivers/net/atp.cint ioaddr = dev->base_addr;
ioaddr343drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RESET);
ioaddr346drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
ioaddr348drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
ioaddr352drivers/net/atp.c(read_nibble(ioaddr, CMR2_h) >> 3) & 0x0f);
ioaddr355drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_IRQOUT);
ioaddr356drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RxENABLE | CMR1h_TxENABLE);
ioaddr359drivers/net/atp.coutb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL);
ioaddr362drivers/net/atp.cwrite_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK);
ioaddr363drivers/net/atp.cwrite_reg_high(ioaddr, IMR, ISRh_RxErr);
ioaddr373drivers/net/atp.cstatic void trigger_send(short ioaddr, int length)
ioaddr375drivers/net/atp.cwrite_reg_byte(ioaddr, TxCNT0, length & 0xff);
ioaddr376drivers/net/atp.cwrite_reg(ioaddr, TxCNT1, length >> 8);
ioaddr377drivers/net/atp.cwrite_reg(ioaddr, CMR1, CMR1_Xmit);
ioaddr380drivers/net/atp.cstatic void write_packet(short ioaddr, int length, unsigned char *packet, int data_mode)
ioaddr383drivers/net/atp.coutb(EOC+MAR, ioaddr + PAR_DATA);
ioaddr386drivers/net/atp.coutb(WrAddr+MAR, ioaddr + PAR_DATA);
ioaddr388drivers/net/atp.cwrite_byte_mode0(ioaddr, *packet++);
ioaddr394drivers/net/atp.coutb(Ctrl_LNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL);
ioaddr395drivers/net/atp.coutb(WrAddr+MAR, ioaddr + PAR_DATA);
ioaddr397drivers/net/atp.coutb((outbyte & 0x0f)|0x40, ioaddr + PAR_DATA);
ioaddr398drivers/net/atp.coutb(outbyte & 0x0f, ioaddr + PAR_DATA);
ioaddr400drivers/net/atp.coutb(outbyte & 0x0f, ioaddr + PAR_DATA);
ioaddr401drivers/net/atp.coutb(Ctrl_HNibWrite + Ctrl_IRQEN, ioaddr + PAR_CONTROL);
ioaddr403drivers/net/atp.cwrite_byte_mode1(ioaddr, *packet++);
ioaddr406drivers/net/atp.coutb(0xff, ioaddr + PAR_DATA);
ioaddr407drivers/net/atp.coutb(Ctrl_HNibWrite | Ctrl_SelData | Ctrl_IRQEN, ioaddr + PAR_CONTROL);
ioaddr414drivers/net/atp.cint ioaddr = dev->base_addr;
ioaddr423drivers/net/atp.cinb(ioaddr + PAR_CONTROL) & 0x10 ? "network cable problem"
ioaddr453drivers/net/atp.cwrite_reg(ioaddr, IMR, 0);
ioaddr454drivers/net/atp.cwrite_reg_high(ioaddr, IMR, 0);
ioaddr457drivers/net/atp.cwrite_packet(ioaddr, length, buf, dev->if_port);
ioaddr461drivers/net/atp.ctrigger_send(ioaddr, length);
ioaddr470drivers/net/atp.cwrite_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK);
ioaddr471drivers/net/atp.cwrite_reg_high(ioaddr, IMR, ISRh_RxErr);
ioaddr487drivers/net/atp.cint ioaddr, status, boguscount = 20;
ioaddr496drivers/net/atp.cioaddr = dev->base_addr;
ioaddr500drivers/net/atp.coutb(Ctrl_SelData, ioaddr + PAR_CONTROL);
ioaddr503drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_NULL);
ioaddr504drivers/net/atp.cwrite_reg(ioaddr, IMR, 0);
ioaddr508drivers/net/atp.cstatus = read_nibble(ioaddr, ISR);
ioaddr512drivers/net/atp.cwrite_reg(ioaddr, ISR, ISR_RxOK); /* Clear the Rx interrupt. */
ioaddr514drivers/net/atp.cint read_status = read_nibble(ioaddr, CMR1);
ioaddr522drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, CMR2h_OFF);
ioaddr525drivers/net/atp.cwrite_reg_high(ioaddr, ISR, ISRh_RxErr);
ioaddr526drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
ioaddr538drivers/net/atp.cwrite_reg(ioaddr, ISR, ISR_TxErr + ISR_TxOK);
ioaddr548drivers/net/atp.cwrite_reg(ioaddr, CMR1, CMR1_ReXmit + CMR1_Xmit);
ioaddr554drivers/net/atp.ctrigger_send(ioaddr, lp->saved_tx_size);
ioaddr569drivers/net/atp.c(read_nibble(ioaddr, CMR1) >> 3) & 15);
ioaddr583drivers/net/atp.cwrite_reg_byte(ioaddr, PAR0 + i, dev->dev_addr[i]);
ioaddr587drivers/net/atp.cwrite_reg(ioaddr, CMR2, CMR2_IRQOUT);
ioaddr589drivers/net/atp.coutb(Ctrl_SelData + Ctrl_IRQEN, ioaddr + PAR_CONTROL);
ioaddr591drivers/net/atp.cwrite_reg(ioaddr, IMR, ISR_RxOK | ISR_TxErr | ISR_TxOK);
ioaddr592drivers/net/atp.cwrite_reg_high(ioaddr, IMR, ISRh_RxErr);       /* Hmmm, really needed? */
ioaddr605drivers/net/atp.cint ioaddr = dev->base_addr;
ioaddr613drivers/net/atp.coutb(EOC+MAR, ioaddr + PAR_DATA);
ioaddr614drivers/net/atp.cread_block(ioaddr, 8, (unsigned char*)&rx_head, dev->if_port);
ioaddr640drivers/net/atp.cread_block(ioaddr, pkt_len, skb->data, dev->if_port);
ioaddr655drivers/net/atp.cwrite_reg(ioaddr, CMR1, CMR1_NextPkt);
ioaddr659drivers/net/atp.cstatic void read_block(short ioaddr, int length, unsigned char *p, int data_mode)
ioaddr663drivers/net/atp.coutb(Ctrl_LNibRead, ioaddr + PAR_CONTROL);
ioaddr665drivers/net/atp.cioaddr + PAR_DATA);
ioaddr667drivers/net/atp.cdo  *p++ = read_byte_mode0(ioaddr);  while (--length > 0);
ioaddr669drivers/net/atp.cdo  *p++ = read_byte_mode2(ioaddr);  while (--length > 0);
ioaddr671drivers/net/atp.cdo      *p++ = read_byte_mode4(ioaddr);  while (--length > 0);
ioaddr673drivers/net/atp.cdo      *p++ = read_byte_mode6(ioaddr);  while (--length > 0);
ioaddr675drivers/net/atp.coutb(EOC+HNib+MAR, ioaddr + PAR_DATA);
ioaddr676drivers/net/atp.coutb(Ctrl_SelData, ioaddr + PAR_CONTROL);
ioaddr684drivers/net/atp.cint ioaddr = dev->base_addr;
ioaddr691drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, CMR2h_OFF);
ioaddr694drivers/net/atp.coutb(0x00, ioaddr + PAR_CONTROL);
ioaddr699drivers/net/atp.cwrite_reg_high(ioaddr, CMR1, CMR1h_RESET);
ioaddr723drivers/net/atp.cshort ioaddr = dev->base_addr;
ioaddr725drivers/net/atp.cwrite_reg_high(ioaddr, CMR2, lp->addr_mode);
ioaddr107drivers/net/atp.hextern inline unsigned char read_byte_mode0(short ioaddr)
ioaddr111drivers/net/atp.houtb(Ctrl_LNibRead, ioaddr + PAR_CONTROL);
ioaddr112drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);
ioaddr113drivers/net/atp.hlow_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f;
ioaddr114drivers/net/atp.houtb(Ctrl_HNibRead, ioaddr + PAR_CONTROL);
ioaddr115drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);  /* Settling time delay -- needed!  */
ioaddr116drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);  /* Settling time delay -- needed!  */
ioaddr117drivers/net/atp.hreturn low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0);
ioaddr121drivers/net/atp.hextern inline unsigned char read_byte_mode2(short ioaddr)
ioaddr125drivers/net/atp.houtb(Ctrl_LNibRead, ioaddr + PAR_CONTROL);
ioaddr126drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);
ioaddr127drivers/net/atp.hlow_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f;
ioaddr128drivers/net/atp.houtb(Ctrl_HNibRead, ioaddr + PAR_CONTROL);
ioaddr129drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);  /* Settling time delay -- needed!  */
ioaddr130drivers/net/atp.hreturn low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0);
ioaddr134drivers/net/atp.hextern inline unsigned char read_byte_mode4(short ioaddr)
ioaddr138drivers/net/atp.houtb(RdAddr | MAR, ioaddr + PAR_DATA);
ioaddr139drivers/net/atp.hlow_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f;
ioaddr140drivers/net/atp.houtb(RdAddr | HNib | MAR, ioaddr + PAR_DATA);
ioaddr141drivers/net/atp.hreturn low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0);
ioaddr145drivers/net/atp.hextern inline unsigned char read_byte_mode6(short ioaddr)
ioaddr149drivers/net/atp.houtb(RdAddr | MAR, ioaddr + PAR_DATA);
ioaddr150drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);
ioaddr151drivers/net/atp.hlow_nib = (inbyte(ioaddr + PAR_STATUS) >> 3) & 0x0f;
ioaddr152drivers/net/atp.houtb(RdAddr | HNib | MAR, ioaddr + PAR_DATA);
ioaddr153drivers/net/atp.hinbyte(ioaddr + PAR_STATUS);
ioaddr154drivers/net/atp.hreturn low_nib | ((inbyte(ioaddr + PAR_STATUS) << 1) & 0xf0);
ioaddr222drivers/net/atp.hextern inline void write_byte_mode0(short ioaddr, unsigned char value)
ioaddr224drivers/net/atp.houtb(value & 0x0f, ioaddr + PAR_DATA);
ioaddr225drivers/net/atp.houtb((value>>4) | 0x10, ioaddr + PAR_DATA);
ioaddr228drivers/net/atp.hextern inline void write_byte_mode1(short ioaddr, unsigned char value)
ioaddr230drivers/net/atp.houtb(value & 0x0f, ioaddr + PAR_DATA);
ioaddr231drivers/net/atp.houtb(Ctrl_IRQEN | Ctrl_LNibWrite, ioaddr + PAR_CONTROL);
ioaddr232drivers/net/atp.houtb((value>>4) | 0x10, ioaddr + PAR_DATA);
ioaddr233drivers/net/atp.houtb(Ctrl_IRQEN | Ctrl_HNibWrite, ioaddr + PAR_CONTROL);
ioaddr237drivers/net/atp.hextern inline void write_word_mode0(short ioaddr, unsigned short value)
ioaddr239drivers/net/atp.houtb(value & 0x0f, ioaddr + PAR_DATA);
ioaddr241drivers/net/atp.houtb((value & 0x0f) | 0x10, ioaddr + PAR_DATA);
ioaddr243drivers/net/atp.houtb(value & 0x0f, ioaddr + PAR_DATA);
ioaddr245drivers/net/atp.houtb((value & 0x0f) | 0x10, ioaddr + PAR_DATA);
ioaddr325drivers/net/depca.cstatic int depca_probe1(struct device *dev, short ioaddr);
ioaddr333drivers/net/depca.cstatic int DevicePresent(short ioaddr);
ioaddr341drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, int ioaddr);
ioaddr399drivers/net/depca.cdepca_probe1(struct device *dev, short ioaddr)
ioaddr439drivers/net/depca.cdev->base_addr = ioaddr;
ioaddr441drivers/net/depca.cif ((ioaddr&0x0fff)==DEPCA_EISA_IO_PORTS) {/* EISA slot address */
ioaddr443drivers/net/depca.cdev->name, name, ioaddr, ((ioaddr>>12)&0x0f));
ioaddr445drivers/net/depca.cprintk("%s: %s at %#3x", dev->name, name, ioaddr);
ioaddr474drivers/net/depca.csnarf_region(ioaddr, DEPCA_TOTAL_SIZE);
ioaddr670drivers/net/depca.cint i,nicsr,ioaddr = dev->base_addr;
ioaddr802drivers/net/depca.cint ioaddr = dev->base_addr;
ioaddr954drivers/net/depca.cint csr0, ioaddr, nicsr;
ioaddr960drivers/net/depca.cioaddr = dev->base_addr;
ioaddr1140drivers/net/depca.cint nicsr, ioaddr = dev->base_addr;
ioaddr1181drivers/net/depca.cint ioaddr = dev->base_addr;
ioaddr1197drivers/net/depca.cint ioaddr = dev->base_addr;
ioaddr1243drivers/net/depca.cshort ioaddr = dev->base_addr;
ioaddr1324drivers/net/depca.cint ioaddr = *port;
ioaddr1326drivers/net/depca.cif (DevicePresent(ioaddr) == 0) {
ioaddr1328drivers/net/depca.cdev = alloc_device(dev, ioaddr);
ioaddr1330drivers/net/depca.cif ((status = depca_probe1(dev, ioaddr)) == 0) {
ioaddr1346drivers/net/depca.cint i, ioaddr = DEPCA_EISA_IO_PORTS;
ioaddr1349drivers/net/depca.cioaddr+=0x1000;                         /* get the first slot address */
ioaddr1350drivers/net/depca.cfor (status = -ENODEV, i=1; i<MAX_EISA_SLOTS; i++, ioaddr+=0x1000) {
ioaddr1352drivers/net/depca.cif (DevicePresent(ioaddr) == 0) {
ioaddr1354drivers/net/depca.cdev = alloc_device(dev, ioaddr);
ioaddr1356drivers/net/depca.cif ((status = depca_probe1(dev, ioaddr)) == 0) {
ioaddr1370drivers/net/depca.cstatic struct device *alloc_device(struct device *dev, int ioaddr)
ioaddr1404drivers/net/depca.cdev->base_addr = ioaddr;            /* assign the io address */
ioaddr1459drivers/net/depca.cstatic int DevicePresent(short ioaddr)
ioaddr13drivers/net/depca.h#define DEPCA_NICSR ioaddr+0x00   /* Network interface CSR */
ioaddr14drivers/net/depca.h#define DEPCA_RBI   ioaddr+0x02   /* RAM buffer index (2k buffer mode) */
ioaddr15drivers/net/depca.h#define DEPCA_DATA  ioaddr+0x04   /* LANCE registers' data port */
ioaddr16drivers/net/depca.h#define DEPCA_ADDR  ioaddr+0x06   /* LANCE registers' address port */
ioaddr17drivers/net/depca.h#define DEPCA_HBASE ioaddr+0x08   /* EISA high memory base address reg. */
ioaddr18drivers/net/depca.h#define DEPCA_PROM  ioaddr+0x0c   /* Ethernet address ROM data port */
ioaddr19drivers/net/depca.h#define DEPCA_CNFG  ioaddr+0x0c   /* EISA Configuration port */
ioaddr20drivers/net/depca.h#define DEPCA_RBSA  ioaddr+0x0e   /* RAM buffer starting address (2k buff.) */
ioaddr147drivers/net/depca.h#define DEPCA_EISA_ID   ioaddr+0x80   /* ID long word for EISA card */
ioaddr148drivers/net/depca.h#define DEPCA_EISA_CTRL ioaddr+0x84   /* Control word for EISA card */
ioaddr94drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr);
ioaddr132drivers/net/e2100.cint e21_probe1(struct device *dev, int ioaddr)
ioaddr138drivers/net/e2100.cif (inb(ioaddr + E21_SAPROM + 0) != 0x00
ioaddr139drivers/net/e2100.c|| inb(ioaddr + E21_SAPROM + 1) != 0x00
ioaddr140drivers/net/e2100.c|| inb(ioaddr + E21_SAPROM + 2) != 0x1d)
ioaddr144drivers/net/e2100.coutb(E8390_NODMA + E8390_STOP, ioaddr);
ioaddr146drivers/net/e2100.cstatus = inb(ioaddr);
ioaddr151drivers/net/e2100.csnarf_region(ioaddr, E21_IO_EXTENT);
ioaddr155drivers/net/e2100.cstation_addr[i] = inb(ioaddr + E21_SAPROM + i);
ioaddr157drivers/net/e2100.cinb(ioaddr + E21_MEDIA);     /* Point to media selection. */
ioaddr158drivers/net/e2100.coutb(0, ioaddr + E21_ASIC);   /* and disable the secondary interface. */
ioaddr160drivers/net/e2100.cprintk("%s: E21** at %#3x,", dev->name, ioaddr);
ioaddr179drivers/net/e2100.cdev->base_addr = ioaddr;
ioaddr196drivers/net/e2100.cinb(ioaddr + E21_MEDIA);   /* Turn automatic media detection on. */
ioaddr198drivers/net/e2100.cif (station_addr[i] != inb(ioaddr + E21_SAPROM + 8 + i)) {
ioaddr236drivers/net/e2100.cshort ioaddr = dev->base_addr;
ioaddr244drivers/net/e2100.cinb(ioaddr + E21_IRQ_LOW);
ioaddr245drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq & 7));
ioaddr246drivers/net/e2100.cinb(ioaddr + E21_IRQ_HIGH);       /* High IRQ bit, and if_port. */
ioaddr247drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + (dev->irq > 7 ? 1:0)
ioaddr249drivers/net/e2100.cinb(ioaddr + E21_MEM_BASE);
ioaddr250drivers/net/e2100.coutb(0, ioaddr + E21_ASIC + ((dev->mem_start >> 17) & 7));
ioaddr258drivers/net/e2100.cshort ioaddr = dev->base_addr;
ioaddr260drivers/net/e2100.coutb(0x01, ioaddr);
ioaddr276drivers/net/e2100.cshort ioaddr = dev->base_addr;
ioaddr280drivers/net/e2100.cmem_on(ioaddr, shared_mem, start_page);
ioaddr289drivers/net/e2100.cmem_off(ioaddr);
ioaddr298drivers/net/e2100.cshort ioaddr = dev->base_addr;
ioaddr304drivers/net/e2100.cmem_on(ioaddr, shared_mem, start_page);
ioaddr307drivers/net/e2100.cmem_off(ioaddr);
ioaddr313drivers/net/e2100.cshort ioaddr = dev->base_addr;
ioaddr322drivers/net/e2100.cinb(ioaddr + E21_IRQ_LOW);
ioaddr323drivers/net/e2100.coutb(0, ioaddr + E21_ASIC);
ioaddr324drivers/net/e2100.cinb(ioaddr + E21_IRQ_HIGH);       /* High IRQ bit, and if_port. */
ioaddr325drivers/net/e2100.coutb(0, ioaddr + E21_ASIC);
ioaddr333drivers/net/e2100.cmem_off(ioaddr);
ioaddr283drivers/net/eexpress.cstatic int  eexp_probe1(struct device *dev, short ioaddr);
ioaddr292drivers/net/eexpress.cstatic int read_eeprom(int ioaddr, int location);
ioaddr338drivers/net/eexpress.cint eexp_probe1(struct device *dev, short ioaddr)
ioaddr343drivers/net/eexpress.cprintk("%s: EtherExpress at %#x,", dev->name, ioaddr);
ioaddr347drivers/net/eexpress.cstation_addr[0] = read_eeprom(ioaddr, 2);
ioaddr348drivers/net/eexpress.cstation_addr[1] = read_eeprom(ioaddr, 3);
ioaddr349drivers/net/eexpress.cstation_addr[2] = read_eeprom(ioaddr, 4);
ioaddr359drivers/net/eexpress.csnarf_region(ioaddr, 16);
ioaddr360drivers/net/eexpress.cdev->base_addr = ioaddr;
ioaddr373drivers/net/eexpress.cunsigned short setupval = read_eeprom(ioaddr, 0);
ioaddr377drivers/net/eexpress.cread_eeprom(ioaddr, 5) & 0x1 ? TP : BNC;
ioaddr381drivers/net/eexpress.coutb(0x00, ioaddr + SET_IRQ);
ioaddr385drivers/net/eexpress.coutb(ASIC_RESET, ioaddr + EEPROM_Ctrl);
ioaddr417drivers/net/eexpress.cint ioaddr = dev->base_addr;
ioaddr433drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
ioaddr445drivers/net/eexpress.cint ioaddr = dev->base_addr;
ioaddr455drivers/net/eexpress.cinw(ioaddr+SCB_STATUS) & 0x8000 ? "IRQ conflict" :
ioaddr466drivers/net/eexpress.coutw(0xf000|CUC_START|RX_START, ioaddr + SCB_CMD);
ioaddr467drivers/net/eexpress.coutb(0, ioaddr + SIGNAL_CA);
ioaddr490drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
ioaddr494drivers/net/eexpress.coutb(0x08 | irqrmap[dev->irq], ioaddr + SET_IRQ);
ioaddr513drivers/net/eexpress.cint ioaddr, status, boguscount = 0;
ioaddr522drivers/net/eexpress.cioaddr = dev->base_addr;
ioaddr525drivers/net/eexpress.cstatus = inw(ioaddr + SCB_STATUS);
ioaddr532drivers/net/eexpress.coutb(irqrmap[dev->irq], ioaddr + SET_IRQ);
ioaddr537drivers/net/eexpress.coutw(lp->tx_reap, ioaddr + READ_PTR);
ioaddr538drivers/net/eexpress.ctx_status = inw(ioaddr);
ioaddr574drivers/net/eexpress.cshort saved_write_ptr = inw(ioaddr + WRITE_PTR);
ioaddr580drivers/net/eexpress.coutw(IDLELOOP, ioaddr + WRITE_PTR);
ioaddr581drivers/net/eexpress.coutw(0, ioaddr);
ioaddr582drivers/net/eexpress.coutw(CmdNOp, ioaddr);
ioaddr583drivers/net/eexpress.coutw(IDLELOOP, ioaddr);
ioaddr588drivers/net/eexpress.coutw(saved_write_ptr, ioaddr + WRITE_PTR);
ioaddr593drivers/net/eexpress.cshort saved_write_ptr = inw(ioaddr + WRITE_PTR);
ioaddr604drivers/net/eexpress.coutw(cur_rxbuf, ioaddr + READ_PTR);
ioaddr606drivers/net/eexpress.cprintk(" %04x", inw(ioaddr));
ioaddr613drivers/net/eexpress.coutw(saved_write_ptr, ioaddr + WRITE_PTR);
ioaddr617drivers/net/eexpress.coutw(ack_cmd, ioaddr + SCB_CMD);
ioaddr618drivers/net/eexpress.coutb(0, ioaddr + SIGNAL_CA);
ioaddr622drivers/net/eexpress.cinw(ioaddr + SCB_CMD));
ioaddr625drivers/net/eexpress.coutb(irqrmap[dev->irq] | 0x08, ioaddr + SET_IRQ);
ioaddr632drivers/net/eexpress.cint ioaddr = dev->base_addr;
ioaddr638drivers/net/eexpress.coutw(RX_SUSPEND | CUC_SUSPEND, ioaddr + SCB_CMD);
ioaddr639drivers/net/eexpress.coutb(0, ioaddr + SIGNAL_CA);
ioaddr642drivers/net/eexpress.coutb(0, ioaddr + SET_IRQ);
ioaddr674drivers/net/eexpress.cshort ioaddr = dev->base_addr;
ioaddr681drivers/net/eexpress.coutw(SET_MC_CMD + 6, ioaddr + WRITE_PTR);
ioaddr682drivers/net/eexpress.coutw(num_addrs * 6, ioaddr);
ioaddr683drivers/net/eexpress.coutsw(ioaddr, addrs, num_addrs*3);    /* 3 = addr len in words */
ioaddr688drivers/net/eexpress.coutw(99, ioaddr);    /* Disable promiscuous mode, use normal mode */
ioaddr699drivers/net/eexpress.cread_eeprom(int ioaddr, int location)
ioaddr703drivers/net/eexpress.cshort ee_addr = ioaddr + EEPROM_Ctrl;
ioaddr740drivers/net/eexpress.cshort ioaddr = dev->base_addr;
ioaddr744drivers/net/eexpress.coutb(inb(ioaddr + Config) | 0x02, ioaddr + Config);
ioaddr747drivers/net/eexpress.coutb(_586_RESET, ioaddr + EEPROM_Ctrl);
ioaddr750drivers/net/eexpress.coutw(0xfff6, ioaddr + WRITE_PTR);
ioaddr751drivers/net/eexpress.coutsw(ioaddr, init_words, sizeof(init_words)>>1);
ioaddr754drivers/net/eexpress.coutw(SA_OFFSET, ioaddr + WRITE_PTR);
ioaddr755drivers/net/eexpress.coutsw(ioaddr, dev->dev_addr, 3);
ioaddr768drivers/net/eexpress.coutb(0x00, ioaddr + EEPROM_Ctrl);
ioaddr772drivers/net/eexpress.coutb(0, ioaddr + SIGNAL_CA);
ioaddr776drivers/net/eexpress.cwhile (inw(ioaddr + SCB_STATUS) == 0)
ioaddr779drivers/net/eexpress.cdev->name, inw(ioaddr + SCB_STATUS), inw(ioaddr + SCB_CMD));
ioaddr783drivers/net/eexpress.coutb(0, ioaddr + SIGNAL_CA);
ioaddr787drivers/net/eexpress.coutb(inb(ioaddr + Config) & ~0x02, ioaddr + Config);
ioaddr790drivers/net/eexpress.cinw(ioaddr + SCB_STATUS));
ioaddr798drivers/net/eexpress.cshort ioaddr = dev->base_addr;
ioaddr804drivers/net/eexpress.coutw(cur_rxbuf, ioaddr + WRITE_PTR);
ioaddr805drivers/net/eexpress.coutw(0x0000, ioaddr);         /* Status */
ioaddr806drivers/net/eexpress.coutw(0x0000, ioaddr);        /* Command */
ioaddr807drivers/net/eexpress.coutw(cur_rxbuf + RX_BUF_SIZE, ioaddr); /* Link */
ioaddr808drivers/net/eexpress.coutw(cur_rxbuf + 22, ioaddr);    /* Buffer offset */
ioaddr809drivers/net/eexpress.coutw(0xFeed, ioaddr);         /* Pad for dest addr. */
ioaddr810drivers/net/eexpress.coutw(0xF00d, ioaddr);
ioaddr811drivers/net/eexpress.coutw(0xF001, ioaddr);
ioaddr812drivers/net/eexpress.coutw(0x0505, ioaddr);         /* Pad for source addr. */
ioaddr813drivers/net/eexpress.coutw(0x2424, ioaddr);
ioaddr814drivers/net/eexpress.coutw(0x6565, ioaddr);
ioaddr815drivers/net/eexpress.coutw(0xdeaf, ioaddr);        /* Pad for protocol. */
ioaddr817drivers/net/eexpress.coutw(0x0000, ioaddr);        /* Buffer: Actual count */
ioaddr818drivers/net/eexpress.coutw(-1, ioaddr);          /* Buffer: Next (none). */
ioaddr819drivers/net/eexpress.coutw(cur_rxbuf + 0x20, ioaddr);    /* Buffer: Address low */
ioaddr820drivers/net/eexpress.coutw(0x0000, ioaddr);
ioaddr822drivers/net/eexpress.coutw(0x8000 + RX_BUF_SIZE-0x20, ioaddr);
ioaddr830drivers/net/eexpress.coutw(lp->rx_tail + 2, ioaddr + WRITE_PTR);
ioaddr831drivers/net/eexpress.coutw(0xC000, ioaddr);          /* Command, mark as last. */
ioaddr832drivers/net/eexpress.coutw(lp->rx_head, ioaddr);        /* Link */
ioaddr839drivers/net/eexpress.cshort ioaddr = dev->base_addr;
ioaddr843drivers/net/eexpress.coutw(tx_block, ioaddr + WRITE_PTR);
ioaddr844drivers/net/eexpress.coutw(0x0000, ioaddr);    /* Tx status */
ioaddr845drivers/net/eexpress.coutw(CMD_INTR|CmdTx, ioaddr);    /* Tx command */
ioaddr846drivers/net/eexpress.coutw(tx_block+16, ioaddr);  /* Next command is a NoOp. */
ioaddr847drivers/net/eexpress.coutw(tx_block+8, ioaddr);  /* Data Buffer offset. */
ioaddr850drivers/net/eexpress.coutw(length | 0x8000, ioaddr); /* Byte count parameter. */
ioaddr851drivers/net/eexpress.coutw(-1, ioaddr);      /* No next data buffer. */
ioaddr852drivers/net/eexpress.coutw(tx_block+22, ioaddr);  /* Buffer follows the NoOp command. */
ioaddr853drivers/net/eexpress.coutw(0x0000, ioaddr);    /* Buffer address high bits (always zero). */
ioaddr856drivers/net/eexpress.coutw(0x0000, ioaddr);    /* Tx status */
ioaddr857drivers/net/eexpress.coutw(CmdNOp, ioaddr);    /* Tx command */
ioaddr858drivers/net/eexpress.coutw(tx_block+16, ioaddr);  /* Next is myself. */
ioaddr862drivers/net/eexpress.coutsw(ioaddr + DATAPORT, buf, (length + 1) >> 1);
ioaddr865drivers/net/eexpress.coutw(lp->tx_cmd_link, ioaddr + WRITE_PTR);
ioaddr866drivers/net/eexpress.coutw(tx_block, ioaddr);
ioaddr876drivers/net/eexpress.c"reap %4x status %4.4x.\n", dev->name, ioaddr, length,
ioaddr877drivers/net/eexpress.ctx_block, lp->tx_head, lp->tx_reap, inw(ioaddr + SCB_STATUS));
ioaddr888drivers/net/eexpress.cshort ioaddr = dev->base_addr;
ioaddr889drivers/net/eexpress.cshort saved_write_ptr = inw(ioaddr + WRITE_PTR);
ioaddr896drivers/net/eexpress.coutw(rx_head, ioaddr + READ_PTR);
ioaddr897drivers/net/eexpress.cwhile ((frame_status = inw(ioaddr)) < 0) {    /* Command complete */
ioaddr898drivers/net/eexpress.cshort rfd_cmd = inw(ioaddr);
ioaddr899drivers/net/eexpress.cshort next_rx_frame = inw(ioaddr);
ioaddr900drivers/net/eexpress.cshort data_buffer_addr = inw(ioaddr);
ioaddr904drivers/net/eexpress.coutw(data_buffer_addr, ioaddr + READ_PTR);
ioaddr905drivers/net/eexpress.cpkt_len = inw(ioaddr);
ioaddr935drivers/net/eexpress.coutw(data_buffer_addr + 10, ioaddr + READ_PTR);
ioaddr937drivers/net/eexpress.cinsw(ioaddr, skb->data, (pkt_len + 1) >> 1);
ioaddr944drivers/net/eexpress.coutw(rx_head, ioaddr + WRITE_PTR);
ioaddr945drivers/net/eexpress.coutw(0x0000, ioaddr);
ioaddr946drivers/net/eexpress.coutw(0xC000, ioaddr);
ioaddr957drivers/net/eexpress.coutw(rx_tail+2, ioaddr + WRITE_PTR);
ioaddr958drivers/net/eexpress.coutw(0x0000, ioaddr);  /* Clear the end-of-list on the prev. RFD. */
ioaddr961drivers/net/eexpress.coutw(rx_tail+4, ioaddr + READ_PTR);
ioaddr962drivers/net/eexpress.cif (inw(ioaddr) != rx_head) {
ioaddr964drivers/net/eexpress.cdev->name, rx_tail, (outw(rx_tail+4, ioaddr + READ_PTR),inw(ioaddr)),
ioaddr966drivers/net/eexpress.coutw(rx_head, ioaddr);
ioaddr974drivers/net/eexpress.coutw(rx_head, ioaddr + READ_PTR);
ioaddr981drivers/net/eexpress.coutw(saved_write_ptr, ioaddr + WRITE_PTR);
ioaddr100drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr);
ioaddr135drivers/net/hp-plus.cint ioaddr = hpplus_portlist[i];
ioaddr136drivers/net/hp-plus.cif (check_region(ioaddr, HP_IO_EXTENT))
ioaddr138drivers/net/hp-plus.cif (hpp_probe1(dev, ioaddr) == 0)
ioaddr147drivers/net/hp-plus.cint hpp_probe1(struct device *dev, int ioaddr)
ioaddr155drivers/net/hp-plus.cif (inw(ioaddr + HP_ID) != 0x4850
ioaddr156drivers/net/hp-plus.c|| (inw(ioaddr + HP_PAGING) & 0xfff0) != 0x5300)
ioaddr162drivers/net/hp-plus.cprintk("%s: %s at %#3x,", dev->name, name, ioaddr);
ioaddr165drivers/net/hp-plus.coutw(MAC_Page, ioaddr + HP_PAGING);
ioaddr168drivers/net/hp-plus.cunsigned char inval = inb(ioaddr + 8 + i);
ioaddr173drivers/net/hp-plus.cchecksum += inb(ioaddr + 14);
ioaddr180drivers/net/hp-plus.coutw(ID_Page, ioaddr + HP_PAGING);
ioaddr181drivers/net/hp-plus.cprintk(" ID %4.4x", inw(ioaddr + 12));
ioaddr185drivers/net/hp-plus.csnarf_region(ioaddr, HP_IO_EXTENT);
ioaddr188drivers/net/hp-plus.coutw(HW_Page, ioaddr + HP_PAGING);
ioaddr190drivers/net/hp-plus.cint irq = inb(ioaddr + 13) & 0x0f;
ioaddr191drivers/net/hp-plus.cint option = inw(ioaddr + HPP_OPTION);
ioaddr195drivers/net/hp-plus.cmem_start = inw(ioaddr + 9) << 8;
ioaddr206drivers/net/hp-plus.coutw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14);
ioaddr209drivers/net/hp-plus.cdev->base_addr = ioaddr + NIC_OFFSET;
ioaddr236drivers/net/hp-plus.coutw(Perf_Page, ioaddr + HP_PAGING);
ioaddr239drivers/net/hp-plus.coutw(inw(ioaddr + HPP_OPTION) & ~EnableIRQ, ioaddr + HPP_OPTION);
ioaddr247drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr255drivers/net/hp-plus.coption_reg = inw(ioaddr + HPP_OPTION);
ioaddr256drivers/net/hp-plus.coutw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION);
ioaddr259drivers/net/hp-plus.coutw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION);
ioaddr262drivers/net/hp-plus.coutw(HW_Page, ioaddr + HP_PAGING);
ioaddr263drivers/net/hp-plus.coutw((HP_START_PG + TX_2X_PAGES) | ((HP_STOP_PG - 1) << 8), ioaddr + 14);
ioaddr266drivers/net/hp-plus.coutw(Perf_Page, ioaddr + HP_PAGING);
ioaddr274drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr275drivers/net/hp-plus.cint option_reg = inw(ioaddr + HPP_OPTION);
ioaddr281drivers/net/hp-plus.cioaddr + HPP_OPTION);
ioaddr289drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr290drivers/net/hp-plus.cint option_reg = inw(ioaddr + HPP_OPTION);
ioaddr294drivers/net/hp-plus.coutw(option_reg & ~(NICReset + ChipReset), ioaddr + HPP_OPTION);
ioaddr299drivers/net/hp-plus.coutw(option_reg | (EnableIRQ + NICReset + ChipReset), ioaddr + HPP_OPTION);
ioaddr304drivers/net/hp-plus.cif ((inb_p(ioaddr+NIC_OFFSET+EN0_ISR) & ENISR_RESET) == 0)
ioaddr317drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr319drivers/net/hp-plus.coutw(ring_offset, ioaddr + HPP_IN_ADDR);
ioaddr320drivers/net/hp-plus.cinsw(ioaddr + HP_DATAPORT, buf, count>>1);
ioaddr322drivers/net/hp-plus.cbuf[count-1] = inw(ioaddr + HP_DATAPORT);
ioaddr329drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr330drivers/net/hp-plus.cint option_reg = inw(ioaddr + HPP_OPTION);
ioaddr332drivers/net/hp-plus.coutw(ring_offset, ioaddr + HPP_IN_ADDR);
ioaddr334drivers/net/hp-plus.coutw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION);
ioaddr337drivers/net/hp-plus.coutw(option_reg, ioaddr + HPP_OPTION);
ioaddr348drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr349drivers/net/hp-plus.coutw(start_page << 8, ioaddr + HPP_OUT_ADDR);
ioaddr350drivers/net/hp-plus.coutsl(ioaddr + HP_DATAPORT, buf, (count+3)>>2);
ioaddr358drivers/net/hp-plus.cint ioaddr = dev->base_addr - NIC_OFFSET;
ioaddr359drivers/net/hp-plus.cint option_reg = inw(ioaddr + HPP_OPTION);
ioaddr361drivers/net/hp-plus.coutw(start_page << 8, ioaddr + HPP_OUT_ADDR);
ioaddr362drivers/net/hp-plus.coutw(option_reg & ~(MemDisable + BootROMEnb), ioaddr + HPP_OPTION);
ioaddr364drivers/net/hp-plus.coutw(option_reg, ioaddr + HPP_OPTION);
ioaddr57drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr);
ioaddr90drivers/net/hp.cint ioaddr = hppclan_portlist[i];
ioaddr91drivers/net/hp.cif (check_region(ioaddr, HP_IO_EXTENT))
ioaddr93drivers/net/hp.cif (hp_probe1(dev, ioaddr) == 0)
ioaddr101drivers/net/hp.cint hp_probe1(struct device *dev, int ioaddr)
ioaddr109drivers/net/hp.cif (inb(ioaddr) != 0x08
ioaddr110drivers/net/hp.c|| inb(ioaddr+1) != 0x00
ioaddr111drivers/net/hp.c|| inb(ioaddr+2) != 0x09
ioaddr112drivers/net/hp.c|| inb(ioaddr+14) == 0x57)
ioaddr117drivers/net/hp.cif ((board_id = inb(ioaddr + HP_ID)) & 0x80) {
ioaddr129drivers/net/hp.csnarf_region(ioaddr, HP_IO_EXTENT);
ioaddr131drivers/net/hp.cprintk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr);
ioaddr134drivers/net/hp.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
ioaddr146drivers/net/hp.coutb_p(irqmap[irq] | HP_RUN, ioaddr + HP_CONFIGURE);
ioaddr147drivers/net/hp.coutb_p( 0x00 | HP_RUN, ioaddr + HP_CONFIGURE);
ioaddr173drivers/net/hp.cdev->base_addr = ioaddr + NIC_OFFSET;
ioaddr40drivers/net/lance.cunsigned long lance_probe1(short ioaddr, unsigned long mem_start);
ioaddr249drivers/net/lance.cint ioaddr = *port;
ioaddr251drivers/net/lance.cif (   check_region(ioaddr, LANCE_TOTAL_SIZE) == 0
ioaddr252drivers/net/lance.c&& inb(ioaddr + 14) == 0x57
ioaddr253drivers/net/lance.c&& inb(ioaddr + 15) == 0x57) {
ioaddr254drivers/net/lance.cmem_start = lance_probe1(ioaddr, mem_start);
ioaddr261drivers/net/lance.cunsigned long lance_probe1(short ioaddr, unsigned long mem_start)
ioaddr282drivers/net/lance.c&& ioaddr_table[inb(hp_port) & 3] == ioaddr)
ioaddr286drivers/net/lance.chpJ2405A = (inb(ioaddr) == 0x08 && inb(ioaddr+1) == 0x00
ioaddr287drivers/net/lance.c&& inb(ioaddr+2) == 0x09);
ioaddr290drivers/net/lance.creset_val = inw(ioaddr+LANCE_RESET); /* Reset the LANCE */
ioaddr295drivers/net/lance.coutw(reset_val, ioaddr+LANCE_RESET);
ioaddr297drivers/net/lance.coutw(0x0000, ioaddr+LANCE_ADDR); /* Switch to window 0 */
ioaddr298drivers/net/lance.cif (inw(ioaddr+LANCE_DATA) != 0x0004)
ioaddr302drivers/net/lance.coutw(88, ioaddr+LANCE_ADDR);
ioaddr303drivers/net/lance.cif (inw(ioaddr+LANCE_ADDR) != 88) {
ioaddr306drivers/net/lance.cint chip_version = inw(ioaddr+LANCE_DATA);
ioaddr307drivers/net/lance.coutw(89, ioaddr+LANCE_ADDR);
ioaddr308drivers/net/lance.cchip_version |= inw(ioaddr+LANCE_DATA) << 16;
ioaddr324drivers/net/lance.cprintk("%s: %s at %#3x,", dev->name, chip_table[lance_version].name, ioaddr);
ioaddr329drivers/net/lance.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
ioaddr331drivers/net/lance.cdev->base_addr = ioaddr;
ioaddr332drivers/net/lance.csnarf_region(ioaddr, LANCE_TOTAL_SIZE);
ioaddr359drivers/net/lance.coutw(0x0001, ioaddr+LANCE_ADDR);
ioaddr360drivers/net/lance.cinw(ioaddr+LANCE_ADDR);
ioaddr361drivers/net/lance.coutw((short) (int) &lp->init_block, ioaddr+LANCE_DATA);
ioaddr362drivers/net/lance.coutw(0x0002, ioaddr+LANCE_ADDR);
ioaddr363drivers/net/lance.cinw(ioaddr+LANCE_ADDR);
ioaddr364drivers/net/lance.coutw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA);
ioaddr365drivers/net/lance.coutw(0x0000, ioaddr+LANCE_ADDR);
ioaddr366drivers/net/lance.cinw(ioaddr+LANCE_ADDR);
ioaddr378drivers/net/lance.cshort reset_val = inw(ioaddr+LANCE_RESET);
ioaddr384drivers/net/lance.coutw(8, ioaddr+LANCE_ADDR);
ioaddr385drivers/net/lance.cbus_info = inw(ioaddr+LANCE_BUS_IF);
ioaddr409drivers/net/lance.coutw(0x0041, ioaddr+LANCE_DATA);
ioaddr421drivers/net/lance.cif (inw(ioaddr+LANCE_DATA) & 0x0100)
ioaddr443drivers/net/lance.coutw(0x7f04, ioaddr+LANCE_DATA); /* Clear the memory error bits. */
ioaddr450drivers/net/lance.coutw(0x0001, ioaddr+LANCE_DATA);
ioaddr452drivers/net/lance.cif (inw(ioaddr+LANCE_DATA) & 0x0900)
ioaddr454drivers/net/lance.cif (inw(ioaddr+LANCE_DATA) & 0x0100) {
ioaddr472drivers/net/lance.coutw(0x0002, ioaddr+LANCE_ADDR);
ioaddr473drivers/net/lance.coutw(0x0002, ioaddr+LANCE_BUS_IF);
ioaddr494drivers/net/lance.cint ioaddr = dev->base_addr;
ioaddr507drivers/net/lance.cinw(ioaddr+LANCE_RESET);
ioaddr517drivers/net/lance.coutw(0, ioaddr+LANCE_RESET);
ioaddr521drivers/net/lance.coutw(0x0002, ioaddr+LANCE_ADDR);
ioaddr522drivers/net/lance.coutw(0x0002, ioaddr+LANCE_BUS_IF);
ioaddr532drivers/net/lance.coutw(0x0001, ioaddr+LANCE_ADDR);
ioaddr533drivers/net/lance.coutw((short) (int) &lp->init_block, ioaddr+LANCE_DATA);
ioaddr534drivers/net/lance.coutw(0x0002, ioaddr+LANCE_ADDR);
ioaddr535drivers/net/lance.coutw(((int)&lp->init_block) >> 16, ioaddr+LANCE_DATA);
ioaddr537drivers/net/lance.coutw(0x0004, ioaddr+LANCE_ADDR);
ioaddr538drivers/net/lance.coutw(0x0d15, ioaddr+LANCE_DATA);
ioaddr540drivers/net/lance.coutw(0x0000, ioaddr+LANCE_ADDR);
ioaddr541drivers/net/lance.coutw(0x0001, ioaddr+LANCE_DATA);
ioaddr548drivers/net/lance.cif (inw(ioaddr+LANCE_DATA) & 0x0100)
ioaddr550drivers/net/lance.coutw(0x0142, ioaddr+LANCE_DATA);
ioaddr554drivers/net/lance.cdev->name, i, (int) &lp->init_block, inw(ioaddr+LANCE_DATA));
ioaddr593drivers/net/lance.cint ioaddr = dev->base_addr;
ioaddr601drivers/net/lance.coutw(0, ioaddr+LANCE_ADDR);
ioaddr603drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
ioaddr604drivers/net/lance.coutw(0x0004, ioaddr+LANCE_DATA);
ioaddr624drivers/net/lance.coutw(0x0043, ioaddr+LANCE_DATA);
ioaddr641drivers/net/lance.coutw(0x0000, ioaddr+LANCE_ADDR);
ioaddr643drivers/net/lance.cinw(ioaddr+LANCE_DATA));
ioaddr644drivers/net/lance.coutw(0x0000, ioaddr+LANCE_DATA);
ioaddr695drivers/net/lance.coutw(0x0000, ioaddr+LANCE_ADDR);
ioaddr696drivers/net/lance.coutw(0x0048, ioaddr+LANCE_DATA);
ioaddr718drivers/net/lance.cint csr0, ioaddr, boguscnt=10;
ioaddr725drivers/net/lance.cioaddr = dev->base_addr;
ioaddr824drivers/net/lance.cdev->name, inw(ioaddr + LANCE_ADDR),
ioaddr898drivers/net/lance.cint ioaddr = dev->base_addr;
ioaddr905drivers/net/lance.coutw(112, ioaddr+LANCE_ADDR);
ioaddr906drivers/net/lance.clp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA);
ioaddr908drivers/net/lance.coutw(0, ioaddr+LANCE_ADDR);
ioaddr912drivers/net/lance.cdev->name, inw(ioaddr+LANCE_DATA));
ioaddr916drivers/net/lance.coutw(0x0004, ioaddr+LANCE_DATA);
ioaddr932drivers/net/lance.cshort ioaddr = dev->base_addr;
ioaddr937drivers/net/lance.csaved_addr = inw(ioaddr+LANCE_ADDR);
ioaddr938drivers/net/lance.coutw(112, ioaddr+LANCE_ADDR);
ioaddr939drivers/net/lance.clp->stats.rx_missed_errors = inw(ioaddr+LANCE_DATA);
ioaddr940drivers/net/lance.coutw(saved_addr, ioaddr+LANCE_ADDR);
ioaddr956drivers/net/lance.cshort ioaddr = dev->base_addr;
ioaddr959drivers/net/lance.coutw(0, ioaddr+LANCE_ADDR);
ioaddr960drivers/net/lance.coutw(0x0004, ioaddr+LANCE_DATA); /* Temporarily stop the lance.   */
ioaddr962drivers/net/lance.coutw(15, ioaddr+LANCE_ADDR);
ioaddr969drivers/net/lance.coutw(8 + i, ioaddr+LANCE_ADDR);
ioaddr970drivers/net/lance.coutw(multicast_table[i], ioaddr+LANCE_DATA);
ioaddr972drivers/net/lance.coutw(0x0000, ioaddr+LANCE_DATA); /* Unset promiscuous mode */
ioaddr974drivers/net/lance.coutw(0x8000, ioaddr+LANCE_DATA); /* Set promiscuous mode */
ioaddr977drivers/net/lance.coutw(0, ioaddr+LANCE_ADDR);
ioaddr978drivers/net/lance.coutw(0x0142, ioaddr+LANCE_DATA); /* Resume normal operation. */
ioaddr63drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr);
ioaddr109drivers/net/ne.cint ioaddr = netcard_portlist[i];
ioaddr110drivers/net/ne.cif (check_region(ioaddr, NE_IO_EXTENT))
ioaddr112drivers/net/ne.cif (ne_probe1(dev, ioaddr) == 0)
ioaddr120drivers/net/ne.cstatic int ne_probe1(struct device *dev, int ioaddr)
ioaddr128drivers/net/ne.cint reg0 = inb(ioaddr);
ioaddr135drivers/net/ne.coutb_p(E8390_NODMA+E8390_PAGE1+E8390_STOP, ioaddr + E8390_CMD);
ioaddr136drivers/net/ne.cregd = inb_p(ioaddr + 0x0d);
ioaddr137drivers/net/ne.coutb_p(0xff, ioaddr + 0x0d);
ioaddr138drivers/net/ne.coutb_p(E8390_NODMA+E8390_PAGE0, ioaddr + E8390_CMD);
ioaddr139drivers/net/ne.cinb_p(ioaddr + EN0_COUNTER0); /* Clear the counter by reading. */
ioaddr140drivers/net/ne.cif (inb_p(ioaddr + EN0_COUNTER0) != 0) {
ioaddr141drivers/net/ne.coutb_p(reg0, ioaddr);
ioaddr142drivers/net/ne.coutb(regd, ioaddr + 0x0d);  /* Restore the old values. */
ioaddr147drivers/net/ne.cprintk("NE*000 ethercard probe at %#3x:", ioaddr);
ioaddr170drivers/net/ne.coutb_p(program_seq[i].value, ioaddr + program_seq[i].offset);
ioaddr173drivers/net/ne.cSA_prom[i] = inb(ioaddr + NE_DATAPORT);
ioaddr174drivers/net/ne.cSA_prom[i+1] = inb(ioaddr + NE_DATAPORT);
ioaddr181drivers/net/ne.coutb_p(0x49, ioaddr + EN0_DCFG);
ioaddr237drivers/net/ne.coutb_p(0x50, ioaddr + EN0_IMR);  /* Enable one interrupt. */
ioaddr238drivers/net/ne.coutb_p(0x00, ioaddr + EN0_RCNTLO);
ioaddr239drivers/net/ne.coutb_p(0x00, ioaddr + EN0_RCNTHI);
ioaddr240drivers/net/ne.coutb_p(E8390_RREAD+E8390_START, ioaddr); /* Trigger it... */
ioaddr241drivers/net/ne.coutb_p(0x00, ioaddr + EN0_IMR);     /* Mask it again. */
ioaddr260drivers/net/ne.cdev->base_addr = ioaddr;
ioaddr262drivers/net/ne.csnarf_region(ioaddr, NE_IO_EXTENT);
ioaddr269drivers/net/ne.cdev->name, name, ioaddr, dev->irq);
ioaddr184drivers/net/ni52.c#define check_region(ioaddr, size)     0
ioaddr185drivers/net/ni52.c#define  snarf_region(ioaddr, size);    do ; while (0)
ioaddr193drivers/net/ni52.cstatic int     ni52_probe1(struct device *dev,int ioaddr);
ioaddr362drivers/net/ni52.cint ioaddr = *port;
ioaddr363drivers/net/ni52.cif (check_region(ioaddr, NI52_TOTAL_SIZE))
ioaddr365drivers/net/ni52.cif( !(inb(ioaddr+NI52_MAGIC1) == NI52_MAGICVAL1) || 
ioaddr366drivers/net/ni52.c!(inb(ioaddr+NI52_MAGIC2) == NI52_MAGICVAL2))
ioaddr369drivers/net/ni52.cdev->base_addr = ioaddr;
ioaddr370drivers/net/ni52.cif (ni52_probe1(dev, ioaddr) == 0)
ioaddr378drivers/net/ni52.cstatic int ni52_probe1(struct device *dev,int ioaddr)
ioaddr392drivers/net/ni52.csnarf_region(ioaddr,NI52_TOTAL_SIZE);
ioaddr57drivers/net/ni65.c#define check_region(ioaddr, size)              0
ioaddr58drivers/net/ni65.c#define snarf_region(ioaddr, size);             do ; while (0)
ioaddr191drivers/net/ni65.cint ioaddr = *port;
ioaddr192drivers/net/ni65.cif (check_region(ioaddr, NI65_TOTAL_SIZE))
ioaddr194drivers/net/ni65.cif( !(inb(ioaddr+L_EBASE+6) == CARD_ID0) || 
ioaddr195drivers/net/ni65.c!(inb(ioaddr+L_EBASE+7) == CARD_ID1) )
ioaddr197drivers/net/ni65.cdev->base_addr = ioaddr;
ioaddr198drivers/net/ni65.cif (ni65_probe1(dev, ioaddr) == 0)
ioaddr207drivers/net/ni65.cstatic int ni65_probe1(struct device *dev,int ioaddr)
ioaddr247drivers/net/ni65.csnarf_region(ioaddr,NI65_TOTAL_SIZE);
ioaddr160drivers/net/sk_g16.c#define SK_POS0     ioaddr      /* Card-ID Low (R) */
ioaddr161drivers/net/sk_g16.c#define SK_POS1     ioaddr+1    /* Card-ID High (R) */
ioaddr162drivers/net/sk_g16.c#define SK_POS2     ioaddr+2    /* Card-Enable, Boot-ROM Disable (RW) */
ioaddr163drivers/net/sk_g16.c#define SK_POS3     ioaddr+3    /* Base address of RAM */
ioaddr164drivers/net/sk_g16.c#define SK_POS4     ioaddr+4    /* IRQ */
ioaddr332drivers/net/sk_g16.c#define check_region(ioaddr, size)              0
ioaddr333drivers/net/sk_g16.c#define snarf_region(ioaddr, size);             do ; while (0)
ioaddr487drivers/net/sk_g16.cstatic int   SK_probe(struct device *dev, short ioaddr);
ioaddr555drivers/net/sk_g16.cint ioaddr         = 0;            /* I/O port address used for POS regs */
ioaddr585drivers/net/sk_g16.cioaddr = *port;           /* we need ioaddr for accessing POS regs */
ioaddr589drivers/net/sk_g16.cif (check_region(ioaddr, ETHERCARD_TOTAL_SIZE))
ioaddr602drivers/net/sk_g16.cdev->base_addr = ioaddr;  /* Set I/O Port Address */
ioaddr604drivers/net/sk_g16.cif (SK_probe(dev, ioaddr) == 0)  
ioaddr637drivers/net/sk_g16.cint SK_probe(struct device *dev, short ioaddr)
ioaddr786drivers/net/sk_g16.csnarf_region(ioaddr, ETHERCARD_TOTAL_SIZE);
ioaddr867drivers/net/sk_g16.cint ioaddr = dev->base_addr;
ioaddr2006drivers/net/sk_g16.cint ioaddr = dev->base_addr;
ioaddr97drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr);
ioaddr108drivers/net/skeleton.cextern void  hardware_send_packet(short ioaddr, char *buf, int length);
ioaddr136drivers/net/skeleton.cint ioaddr = netcard_portlist[i];
ioaddr137drivers/net/skeleton.cif (check_region(ioaddr, NETCARD_IO_EXTENT))
ioaddr139drivers/net/skeleton.cif (netcard_probe1(dev, ioaddr) == 0)
ioaddr151drivers/net/skeleton.cstatic int netcard_probe1(struct device *dev, int ioaddr)
ioaddr159drivers/net/skeleton.cif (inb(ioaddr + 0) != SA_ADDR0
ioaddr160drivers/net/skeleton.c||   inb(ioaddr + 1) != SA_ADDR1
ioaddr161drivers/net/skeleton.c||   inb(ioaddr + 2) != SA_ADDR2) {
ioaddr172drivers/net/skeleton.cprintk("%s: %s found at %#3x, ", dev->name, "network card", ioaddr);
ioaddr175drivers/net/skeleton.cdev->base_addr = ioaddr;
ioaddr179drivers/net/skeleton.cprintk(" %2.2x", dev->dev_addr[i] = inb(ioaddr + i));
ioaddr226drivers/net/skeleton.coutw(0x1234, ioaddr + 8);
ioaddr250drivers/net/skeleton.csnarf_region(ioaddr, NETCARD_IO_EXTENT);
ioaddr281drivers/net/skeleton.cint ioaddr = dev->base_addr;
ioaddr298drivers/net/skeleton.coutb(0x00, ioaddr);
ioaddr311drivers/net/skeleton.cint ioaddr = dev->base_addr;
ioaddr343drivers/net/skeleton.chardware_send_packet(ioaddr, buf, length);
ioaddr349drivers/net/skeleton.cif (inw(ioaddr) == /*RU*/81)
ioaddr363drivers/net/skeleton.cint ioaddr, status, boguscount = 0;
ioaddr371drivers/net/skeleton.cioaddr = dev->base_addr;
ioaddr373drivers/net/skeleton.cstatus = inw(ioaddr + 0);
ioaddr400drivers/net/skeleton.cint ioaddr = dev->base_addr;
ioaddr404drivers/net/skeleton.cint status = inw(ioaddr);
ioaddr405drivers/net/skeleton.cint pkt_len = inw(ioaddr);
ioaddr433drivers/net/skeleton.cinsw(ioaddr, skb->data, (pkt_len + 1) >> 1);
ioaddr451drivers/net/skeleton.cint ioaddr = dev->base_addr;
ioaddr463drivers/net/skeleton.coutw(0x00, ioaddr+0);    /* Release the physical interrupt line. */
ioaddr482drivers/net/skeleton.cshort ioaddr = dev->base_addr;
ioaddr486drivers/net/skeleton.clp->stats.rx_missed_errors = inw(ioaddr+1);
ioaddr501drivers/net/skeleton.cshort ioaddr = dev->base_addr;
ioaddr503drivers/net/skeleton.coutw(69, ioaddr);    /* Enable promiscuous mode */
ioaddr505drivers/net/skeleton.coutw(99, ioaddr);    /* Disable promiscuous mode, use normal mode */
ioaddr40drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr);
ioaddr79drivers/net/smc-ultra.cint ioaddr = ultra_portlist[i];
ioaddr80drivers/net/smc-ultra.cif (check_region(ioaddr, ULTRA_IO_EXTENT))
ioaddr82drivers/net/smc-ultra.cif (ultra_probe1(dev, ioaddr) == 0)
ioaddr90drivers/net/smc-ultra.cint ultra_probe1(struct device *dev, int ioaddr)
ioaddr97drivers/net/smc-ultra.cunsigned char num_pages, irqreg, addr, reg4 = inb(ioaddr + 4) & 0x7f;
ioaddr100drivers/net/smc-ultra.cif ((inb(ioaddr + 7) & 0xF0) != 0x20)
ioaddr104drivers/net/smc-ultra.coutb(reg4, ioaddr + 4);
ioaddr107drivers/net/smc-ultra.cchecksum += inb(ioaddr + 8 + i);
ioaddr114drivers/net/smc-ultra.cprintk("%s: SMC Ultra at %#3x,", dev->name, ioaddr);
ioaddr117drivers/net/smc-ultra.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
ioaddr121drivers/net/smc-ultra.coutb(0x80 | reg4, ioaddr + 4);
ioaddr124drivers/net/smc-ultra.coutb(0x80 | inb(ioaddr + 0x0c), ioaddr + 0x0c);
ioaddr125drivers/net/smc-ultra.cirqreg = inb(ioaddr + 0xd);
ioaddr126drivers/net/smc-ultra.caddr = inb(ioaddr + 0xb);
ioaddr130drivers/net/smc-ultra.coutb(reg4, ioaddr + 4);
ioaddr151drivers/net/smc-ultra.csnarf_region(ioaddr, 32);
ioaddr154drivers/net/smc-ultra.cdev->base_addr = ioaddr+ULTRA_NIC_OFFSET;
ioaddr194drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* ASIC addr */
ioaddr199drivers/net/smc-ultra.coutb(ULTRA_MEMENB, ioaddr);  /* Enable memory, 16 bit mode. */
ioaddr200drivers/net/smc-ultra.coutb(0x80, ioaddr + 5);
ioaddr201drivers/net/smc-ultra.coutb(0x01, ioaddr + 6);    /* Enable interrupts and memory. */
ioaddr256drivers/net/smc-ultra.cint ioaddr = dev->base_addr - ULTRA_NIC_OFFSET; /* CMDREG */
ioaddr264drivers/net/smc-ultra.coutb(0x00, ioaddr + 6);    /* Disable interrupts. */
ioaddr41drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr);
ioaddr90drivers/net/wd.cint ioaddr = wd_portlist[i];
ioaddr91drivers/net/wd.cif (check_region(ioaddr, WD_IO_EXTENT))
ioaddr93drivers/net/wd.cif (wd_probe1(dev, ioaddr) == 0)
ioaddr101drivers/net/wd.cint wd_probe1(struct device *dev, int ioaddr)
ioaddr110drivers/net/wd.cchecksum += inb(ioaddr + 8 + i);
ioaddr111drivers/net/wd.cif (inb(ioaddr + 8) == 0xff   /* Extra check to avoid soundcard. */
ioaddr112drivers/net/wd.c|| inb(ioaddr + 9) == 0xff
ioaddr119drivers/net/wd.cprintk("%s: WD80x3 at %#3x, ", dev->name, ioaddr);
ioaddr121drivers/net/wd.cprintk(" %2.2X", dev->dev_addr[i] = inb(ioaddr + 8 + i));
ioaddr128drivers/net/wd.cif (inb(ioaddr+0) == 'P' && inb(ioaddr+1) == 'D') {
ioaddr129drivers/net/wd.cunsigned char reg5 = inb(ioaddr+5);
ioaddr131drivers/net/wd.cswitch (inb(ioaddr+2)) {
ioaddr148drivers/net/wd.cif (inb(ioaddr+i) != inb(ioaddr+8+i))
ioaddr155drivers/net/wd.cint tmp = inb(ioaddr+1); /* fiddle with 16bit bit */
ioaddr156drivers/net/wd.coutb( tmp ^ 0x01, ioaddr+1 ); /* attempt to clear 16bit bit */
ioaddr157drivers/net/wd.cif (((inb( ioaddr+1) & 0x01) == 0x01) /* A 16 bit card */
ioaddr159drivers/net/wd.cint asic_reg5 = inb(ioaddr+WD_CMDREG5);
ioaddr161drivers/net/wd.coutb( NIC16 | (asic_reg5&0x1f), ioaddr+WD_CMDREG5);
ioaddr162drivers/net/wd.coutb(tmp, ioaddr+1);
ioaddr169drivers/net/wd.coutb(tmp, ioaddr+1);      /* Restore original reg1 value. */
ioaddr172drivers/net/wd.cif ( !ancient && (inb(ioaddr+1) & 0x01) != (word16 & 0x01))
ioaddr174drivers/net/wd.cword16 ? 16 : 8, (inb(ioaddr+1) & 0x01) ? 16 : 8);
ioaddr184drivers/net/wd.cint reg0 = inb(ioaddr);
ioaddr190drivers/net/wd.cint high_addr_bits = inb(ioaddr+WD_CMDREG5) & 0x1f;
ioaddr200drivers/net/wd.cdev->base_addr = ioaddr+WD_NIC_OFFSET;
ioaddr204drivers/net/wd.cint reg1 = inb(ioaddr+1);
ioaddr205drivers/net/wd.cint reg4 = inb(ioaddr+4);
ioaddr207drivers/net/wd.cshort nic_addr = ioaddr+WD_NIC_OFFSET;
ioaddr239drivers/net/wd.csnarf_region(ioaddr, WD_IO_EXTENT);
ioaddr271drivers/net/wd.cint ioaddr = dev->base_addr - WD_NIC_OFFSET; /* WD_CMDREG */
ioaddr279drivers/net/wd.coutb(ei_status.reg5, ioaddr+WD_CMDREG5);
ioaddr280drivers/net/wd.coutb(ei_status.reg0, ioaddr); /* WD_CMDREG */
ioaddr192drivers/net/znet.cstatic void update_stop_hit(short ioaddr, unsigned short rx_stop_offset);
ioaddr289drivers/net/znet.cint ioaddr = dev->base_addr;
ioaddr306drivers/net/znet.cif (inb(ioaddr) != 0x10 && inb(ioaddr) != 0x00)
ioaddr320drivers/net/znet.cint ioaddr = dev->base_addr;
ioaddr331drivers/net/znet.coutb(CMD0_STAT0, ioaddr); event = inb(ioaddr);
ioaddr332drivers/net/znet.coutb(CMD0_STAT1, ioaddr); tx_status = inw(ioaddr);
ioaddr333drivers/net/znet.coutb(CMD0_STAT2, ioaddr); rx_offset = inw(ioaddr);
ioaddr334drivers/net/znet.coutb(CMD0_STAT3, ioaddr); state = inb(ioaddr);
ioaddr340drivers/net/znet.coutb(CMD0_RESET, ioaddr);
ioaddr350drivers/net/znet.coutb(CMD0_STAT0, ioaddr);
ioaddr351drivers/net/znet.cif (inw(ioaddr) == 0x0010
ioaddr352drivers/net/znet.c&& inw(ioaddr) == 0x0000
ioaddr353drivers/net/znet.c&& inw(ioaddr) == 0x0010)
ioaddr394drivers/net/znet.coutb(CMD0_TRANSMIT + CMD0_CHNL_1,ioaddr);
ioaddr410drivers/net/znet.cint ioaddr;
ioaddr419drivers/net/znet.cioaddr = dev->base_addr;
ioaddr421drivers/net/znet.coutb(CMD0_STAT0, ioaddr);
ioaddr423drivers/net/znet.cushort status = inb(ioaddr);
ioaddr426drivers/net/znet.coutb(CMD0_STAT1, ioaddr);
ioaddr427drivers/net/znet.cresult = inw(ioaddr);
ioaddr428drivers/net/znet.coutb(CMD0_STAT2, ioaddr);
ioaddr429drivers/net/znet.crx_ptr = inw(ioaddr);
ioaddr430drivers/net/znet.coutb(CMD0_STAT3, ioaddr);
ioaddr431drivers/net/znet.crunning = inb(ioaddr);
ioaddr441drivers/net/znet.coutb(CMD0_STAT1, ioaddr);
ioaddr442drivers/net/znet.ctx_status = inw(ioaddr);
ioaddr465drivers/net/znet.coutb(CMD0_ACK,ioaddr);
ioaddr475drivers/net/znet.cint ioaddr = dev->base_addr;
ioaddr481drivers/net/znet.coutb(CMD0_STAT2, ioaddr);
ioaddr482drivers/net/znet.ccur_frame_end_offset = inw(ioaddr);
ioaddr595drivers/net/znet.cupdate_stop_hit(ioaddr, (zn.rx_cur - zn.rx_start)<<1);
ioaddr611drivers/net/znet.cint ioaddr = dev->base_addr;
ioaddr616drivers/net/znet.coutb(CMD0_RESET, ioaddr);      /* CMD0_RESET */
ioaddr656drivers/net/znet.cshort ioaddr = dev->base_addr;
ioaddr673drivers/net/znet.coutb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr);
ioaddr679drivers/net/znet.coutb(CMD0_MULTICAST_LIST+CMD0_CHNL_1, ioaddr);
ioaddr698drivers/net/znet.cshort ioaddr = dev->base_addr;
ioaddr704drivers/net/znet.coutb(CMD0_RESET, ioaddr);
ioaddr729drivers/net/znet.cprintk("stat:%02x ", inb(ioaddr)); show_dma();
ioaddr730drivers/net/znet.coutb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr);
ioaddr734drivers/net/znet.cprintk("stat:%02x ", inb(ioaddr)); show_dma();
ioaddr735drivers/net/znet.coutb(CMD0_CONFIGURE+CMD0_CHNL_1, ioaddr);
ioaddr739drivers/net/znet.cprintk("stat:%02x ", inb(ioaddr)); show_dma();
ioaddr740drivers/net/znet.coutb(CMD0_IA_SETUP + CMD0_CHNL_1, ioaddr);
ioaddr741drivers/net/znet.cprintk("stat:%02x ", inb(ioaddr)); show_dma();
ioaddr743drivers/net/znet.cupdate_stop_hit(ioaddr, 8192);
ioaddr745drivers/net/znet.coutb(CMD0_Rx_ENABLE+CMD0_CHNL_0, ioaddr);
ioaddr749drivers/net/znet.cstatic void update_stop_hit(short ioaddr, unsigned short rx_stop_offset)
ioaddr751drivers/net/znet.coutb(CMD0_PORT_1, ioaddr);
ioaddr755drivers/net/znet.coutb((rx_stop_offset >> 6) | 0x80, ioaddr);
ioaddr756drivers/net/znet.coutb(CMD1_PORT_0, ioaddr);
ioaddr176drivers/sound/dev_table.cint             card_type, ioaddr, irq, dma, ptr, j;
ioaddr191drivers/sound/dev_table.cioaddr = (val & 0x000fff00) >> 8;
ioaddr208drivers/sound/dev_table.csnd_installed_cards[ptr].config.io_base = ioaddr;
ioaddr217drivers/sound/dev_table.csound_chconf (int card_type, int ioaddr, int irq, int dma)
ioaddr234drivers/sound/dev_table.cif (ioaddr)
ioaddr235drivers/sound/dev_table.csnd_installed_cards[ptr].config.io_base = ioaddr;
ioaddr341drivers/sound/dev_table.hvoid sound_chconf(int card_type, int ioaddr, int irq, int dma);
ioaddr179drivers/sound/opl3.copl3_detect (int ioaddr)
ioaddr203drivers/sound/opl3.cioaddr = left_address;
ioaddr205drivers/sound/opl3.copl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK);  /*
ioaddr212drivers/sound/opl3.copl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET);  /*
ioaddr218drivers/sound/opl3.cstat1 = INB (ioaddr);    /*
ioaddr229drivers/sound/opl3.copl3_command (ioaddr, TIMER1_REGISTER, 0xff);  /*
ioaddr233drivers/sound/opl3.copl3_command (ioaddr, TIMER_CONTROL_REGISTER,
ioaddr247drivers/sound/opl3.cstat2 = INB (ioaddr);    /*
ioaddr255drivers/sound/opl3.copl3_command (ioaddr, TIMER_CONTROL_REGISTER, TIMER1_MASK | TIMER2_MASK);  /*
ioaddr262drivers/sound/opl3.copl3_command (ioaddr, TIMER_CONTROL_REGISTER, IRQ_RESET);  /*
ioaddr280drivers/sound/opl3.copl3_command (ioaddr, KEYON_BLOCK + i, 0);  /*
ioaddr284drivers/sound/opl3.copl3_command (ioaddr, TEST_REGISTER, ENABLE_WAVE_SELECT);
ioaddr285drivers/sound/opl3.copl3_command (ioaddr, PERCUSSION_REGISTER, 0x00);  /*
ioaddr309drivers/sound/opl3.copl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20);
ioaddr476drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1);  /*
ioaddr480drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2);  /*
ioaddr532drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[0], vol1);
ioaddr533drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[1], vol2);
ioaddr534drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[2], vol3);
ioaddr535drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[3], vol4);
ioaddr566drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[1], 0xff);  /*
ioaddr571drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[0], 0xff);  /*
ioaddr578drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[2], 0xff);
ioaddr579drivers/sound/opl3.copl3_command (map->ioaddr, KSL_LEVEL + map->op[3], 0xff);
ioaddr582drivers/sound/opl3.copl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, 0x00);  /*
ioaddr611drivers/sound/opl3.cvoice_shift = (map->ioaddr == left_address) ? 0 : 3;
ioaddr632drivers/sound/opl3.copl3_command (map->ioaddr, AM_VIB + map->op[0], instr->operators[0]);
ioaddr633drivers/sound/opl3.copl3_command (map->ioaddr, AM_VIB + map->op[1], instr->operators[1]);
ioaddr638drivers/sound/opl3.copl3_command (map->ioaddr, ATTACK_DECAY + map->op[0], instr->operators[4]);
ioaddr639drivers/sound/opl3.copl3_command (map->ioaddr, ATTACK_DECAY + map->op[1], instr->operators[5]);
ioaddr644drivers/sound/opl3.copl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[0], instr->operators[6]);
ioaddr645drivers/sound/opl3.copl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[1], instr->operators[7]);
ioaddr650drivers/sound/opl3.copl3_command (map->ioaddr, WAVE_SELECT + map->op[0], instr->operators[8]);
ioaddr651drivers/sound/opl3.copl3_command (map->ioaddr, WAVE_SELECT + map->op[1], instr->operators[9]);
ioaddr661drivers/sound/opl3.copl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num,
ioaddr674drivers/sound/opl3.copl3_command (map->ioaddr, AM_VIB + map->op[2], instr->operators[OFFS_4OP + 0]);
ioaddr675drivers/sound/opl3.copl3_command (map->ioaddr, AM_VIB + map->op[3], instr->operators[OFFS_4OP + 1]);
ioaddr680drivers/sound/opl3.copl3_command (map->ioaddr, ATTACK_DECAY + map->op[2], instr->operators[OFFS_4OP + 4]);
ioaddr681drivers/sound/opl3.copl3_command (map->ioaddr, ATTACK_DECAY + map->op[3], instr->operators[OFFS_4OP + 5]);
ioaddr686drivers/sound/opl3.copl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[2], instr->operators[OFFS_4OP + 6]);
ioaddr687drivers/sound/opl3.copl3_command (map->ioaddr, SUSTAIN_RELEASE + map->op[3], instr->operators[OFFS_4OP + 7]);
ioaddr692drivers/sound/opl3.copl3_command (map->ioaddr, WAVE_SELECT + map->op[2], instr->operators[OFFS_4OP + 8]);
ioaddr693drivers/sound/opl3.copl3_command (map->ioaddr, WAVE_SELECT + map->op[3], instr->operators[OFFS_4OP + 9]);
ioaddr703drivers/sound/opl3.copl3_command (map->ioaddr, FEEDBACK_CONNECTION + map->voice_num + 3, fpc);
ioaddr729drivers/sound/opl3.copl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data);
ioaddr733drivers/sound/opl3.copl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data);
ioaddr735drivers/sound/opl3.copl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num + 3, data);
ioaddr826drivers/sound/opl3.copl3_command (physical_voices[logical_voices[i]].ioaddr,
ioaddr829drivers/sound/opl3.copl3_command (physical_voices[logical_voices[i]].ioaddr,
ioaddr834drivers/sound/opl3.copl3_command (physical_voices[logical_voices[i]].ioaddr,
ioaddr837drivers/sound/opl3.copl3_command (physical_voices[logical_voices[i]].ioaddr,
ioaddr929drivers/sound/opl3.copl3_command (map->ioaddr, AM_VIB + map->op[cell-1], tmp);}
ioaddr1029drivers/sound/opl3.copl3_command (map->ioaddr, FNUM_LOW + map->voice_num, data);
ioaddr1040drivers/sound/opl3.copl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, data);
ioaddr1188drivers/sound/opl3.cif (physical_voices[i].ioaddr == USE_LEFT)
ioaddr1189drivers/sound/opl3.cphysical_voices[i].ioaddr = left_address;
ioaddr1191drivers/sound/opl3.cphysical_voices[i].ioaddr = right_address;
ioaddr1215drivers/sound/opl3.cphysical_voices[i].ioaddr = left_address;
ioaddr213drivers/sound/opl3.hunsigned short ioaddr; /* I/O port (left or right side) */
ioaddr62drivers/sound/pas2_card.cpas_read (int ioaddr)
ioaddr64drivers/sound/pas2_card.creturn INB (ioaddr ^ translat_code);
ioaddr68drivers/sound/pas2_card.cpas_write (unsigned char data, int ioaddr)
ioaddr70drivers/sound/pas2_card.cOUTB (data, ioaddr ^ translat_code);
ioaddr146drivers/sound/sound_calls.hint opl3_detect (int ioaddr);
ioaddr162drivers/sound/sound_calls.hunsigned char pas_read(int ioaddr);
ioaddr163drivers/sound/sound_calls.hvoid pas_write(unsigned char data, int ioaddr);
ioaddr100include/linux/kd.hushort ioaddr[MKDIOADDR];  /* valid i/o addresses */