for (i = 0; i < 6; i++) 
for (i = 0; i < 8; i++) 
static void fjn_reset(struct net_device *dev){    struct local_info_t *lp = netdev_priv(dev);    kio_addr_t ioaddr = dev->base_addr;    int i;    DEBUG(4, "fjn_reset(%s) called.\n",dev->name);    /* Reset controller */    if( sram_config == 0 ) 	outb(CONFIG0_RST, ioaddr + CONFIG_0);    else	outb(CONFIG0_RST_1, ioaddr + CONFIG_0);    /* Power On chip and select bank 0 */    if (lp->cardtype == MBH10302)	outb(BANK_0, ioaddr + CONFIG_1);    else	outb(BANK_0U, ioaddr + CONFIG_1);    /* Set Tx modes */    outb(D_TX_MODE, ioaddr + TX_MODE);    /* set Rx modes */    outb(ID_MATCHED, ioaddr + RX_MODE);    /* Set hardware address */    for (i = 0; i < 6; i++)         outb(dev->dev_addr[i], ioaddr + NODE_ID + i);    /* Switch to bank 1 */    if (lp->cardtype == MBH10302)	outb(BANK_1, ioaddr + CONFIG_1);    else	outb(BANK_1U, ioaddr + CONFIG_1);    /* set the multicast table to accept none. */    for (i = 0; i < 6; i++)         outb(0x00, ioaddr + MAR_ADR + i);    /* Switch to bank 2 (runtime mode) */    if (lp->cardtype == MBH10302)	outb(BANK_2, ioaddr + CONFIG_1);    else	outb(BANK_2U, ioaddr + CONFIG_1);    /* set 16col ctrl bits */    if( lp->cardtype == TDK || lp->cardtype == CONTEC)         outb(TDK_AUTO_MODE, ioaddr + COL_CTRL);    else        outb(AUTO_MODE, ioaddr + COL_CTRL);    /* clear Reserved Regs */    outb(0x00, ioaddr + BMPR12);    outb(0x00, ioaddr + BMPR13);    /* reset Skip packet reg. */    outb(0x01, ioaddr + RX_SKIP);    /* Enable Tx and Rx */    if( sram_config == 0 )	outb(CONFIG0_DFL, ioaddr + CONFIG_0);    else	outb(CONFIG0_DFL_1, ioaddr + CONFIG_0);    /* Init receive pointer ? */    inw(ioaddr + DATAPORT);    inw(ioaddr + DATAPORT);    /* Clear all status */    outb(0xff, ioaddr + TX_STATUS);    outb(0xff, ioaddr + RX_STATUS);    if (lp->cardtype == MBH10302)	outb(INTR_OFF, ioaddr + LAN_CTRL);    /* Turn on Rx interrupts */    outb(D_TX_INTR, ioaddr + TX_INTR);    outb(D_RX_INTR, ioaddr + RX_INTR);    /* Turn on interrupts from LAN card controller */    if (lp->cardtype == MBH10302)	outb(INTR_ON, ioaddr + LAN_CTRL);} /* fjn_reset */
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d9a8a0a3574525bf422fd2f05eec739c0d25814f/fmvj18x_cs.c/clean/drivers/net/pcmcia/fmvj18x_cs.c