} else if (info->flags & IS_DL10019) { /* Advertise 100F, 100H, 10F, 10H */ mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 4, 0x01e1); /* Restart MII autonegotiation */ mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000); mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200); 
static void set_misc_reg(struct net_device *dev){    kio_addr_t nic_base = dev->base_addr;    pcnet_dev_t *info = PRIV(dev);    u_char tmp;        if (info->flags & HAS_MISC_REG) {	tmp = inb_p(nic_base + PCNET_MISC) & ~3;	if (dev->if_port == 2)	    tmp |= 1;	if (info->flags & USE_BIG_BUF)	    tmp |= 2;	if (info->flags & HAS_IBM_MISC)	    tmp |= 8;	outb_p(tmp, nic_base + PCNET_MISC);    }    if (info->flags & IS_DL10022) {	if (info->flags & HAS_MII) {	    mdio_reset(nic_base + DLINK_GPIO, info->eth_phy);	    /* Restart MII autonegotiation */	    mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x0000);	    mdio_write(nic_base + DLINK_GPIO, info->eth_phy, 0, 0x1200);	    info->mii_reset = jiffies;	} else {	    outb(full_duplex ? 4 : 0, nic_base + DLINK_DIAG);	}    }}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/d89a64bedf956ef0b406018a7cb76e027fe3e751/pcnet_cs.c/buggy/drivers/net/pcmcia/pcnet_cs.c