arcnet_outb
arcnet_outb(0, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(NORXflag, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(0, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(NORXflag, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(0, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(0x00, ioaddr, COM20020_REG_W_COMMAND);
arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(STARTIOcmd, ioaddr, COM20020_REG_W_COMMAND);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(0x42, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(CFLAGScmd | RESETclear | CONFIGclear,
arcnet_outb(0 | RDDATAflag | AUTOINCflag,
arcnet_outb(0, ioaddr, COM20020_REG_W_ADDR_LO);
arcnet_outb(dev->dev_addr[0], ioaddr, COM20020_REG_W_XREG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(STARTIOcmd, ioaddr, COM20020_REG_W_COMMAND);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(dev->dev_addr[0], ioaddr, COM20020_REG_W_XREG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->config | RESETcfg, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(CFLAGScmd | RESETclear | CONFIGclear,
arcnet_outb(CONFIGcmd | EXTconf, ioaddr, COM20020_REG_W_COMMAND);
arcnet_outb(mask, ioaddr, COM20020_REG_W_INTMASK);
arcnet_outb(cmd, ioaddr, COM20020_REG_W_COMMAND);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG);
arcnet_outb(lp->setup, ioaddr, COM20020_REG_W_XREG);
arcnet_outb((ofs >> 8) | RDDATAflag | AUTOINCflag,
arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO);
arcnet_outb((ofs >> 8) | AUTOINCflag, ioaddr, COM20020_REG_W_ADDR_HI);
arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO);
arcnet_outb(XTOcfg(3) | RESETcfg, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(XTOcfg(3), ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(val, ioaddr, COM20020_REG_W_SUBADR);
arcnet_outb(lp->config | 0x80, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb(lp->config, ioaddr, COM20020_REG_W_CONFIG);
arcnet_outb((count >> 8) | RDDATAflag | AUTOINCflag,
arcnet_outb(count & 0xff, ioaddr, COM20020_REG_W_ADDR_LO);
arcnet_outb((offset >> 8) | AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI);
arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO);
arcnet_outb((offset >> 8) | AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI);
arcnet_outb(offset & 0xff, ioaddr,COM9026_REG_W_ADDR_LO);
arcnet_outb(*(dest++), ioaddr, COM9026_REG_RW_MEMDATA);
arcnet_outb(CFLAGScmd | RESETclear | CONFIGclear,
arcnet_outb((0x16 | IOMAPflag) & ~ENABLE16flag,
arcnet_outb(AUTOINCflag, ioaddr, COM9026_REG_W_ADDR_HI);
arcnet_outb(0, ioaddr, COM9026_REG_W_ADDR_LO);
arcnet_outb(NORXflag, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(0, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(lp->config, ioaddr, COM9026_REG_RW_CONFIG);
arcnet_outb(arcnet_inb(ioaddr, COM9026_REG_RW_CONFIG) & ~IOMAPflag,
arcnet_outb(lp->config, ioaddr, COM9026_REG_RW_CONFIG);
arcnet_outb(CFLAGScmd | RESETclear, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(CFLAGScmd | CONFIGclear, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(CONFIGcmd | EXTconf, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(cmd, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(mask, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(arcnet_inb(ioaddr, COM9026_REG_RW_CONFIG) & ~IOMAPflag,
arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI);
arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO);
arcnet_outb(offset >> 8, ioaddr, COM9026_REG_W_ADDR_HI);
arcnet_outb(offset & 0xff, ioaddr, COM9026_REG_W_ADDR_LO);
arcnet_outb(datum, ioaddr, COM9026_REG_RW_MEMDATA);
arcnet_outb(CFLAGScmd | RESETclear | CONFIGclear,
arcnet_outb(NORXflag, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(0, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(cmd, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(mask, ioaddr, COM9026_REG_W_INTMASK);
arcnet_outb(CFLAGScmd | RESETclear, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(CFLAGScmd | CONFIGclear, ioaddr, COM9026_REG_W_COMMAND);
arcnet_outb(arcnet_inb(ioaddr, COM9026_REG_RW_CONFIG) | ENABLE16flag,
arcnet_outb(CONFIGcmd | EXTconf, ioaddr, COM9026_REG_W_COMMAND);