printk(KERN_INFO "%s: Link is up\n", dev->name); 
if (netif_msg_link(priv)) printk(KERN_INFO "%s: Link is up\n", dev->name); 
static void adjust_link(struct net_device *dev){	struct gfar_private *priv = netdev_priv(dev);	struct gfar *regs = priv->regs;	u32 tempval;	struct gfar_mii_info *mii_info = priv->mii_info;	if (mii_info->link) {		/* Now we make sure that we can be in full duplex mode.		 * If not, we operate in half-duplex mode. */		if (mii_info->duplex != priv->oldduplex) {			if (!(mii_info->duplex)) {				tempval = gfar_read(&regs->maccfg2);				tempval &= ~(MACCFG2_FULL_DUPLEX);				gfar_write(&regs->maccfg2, tempval);				printk(KERN_INFO "%s: Half Duplex\n",				       dev->name);			} else {				tempval = gfar_read(&regs->maccfg2);				tempval |= MACCFG2_FULL_DUPLEX;				gfar_write(&regs->maccfg2, tempval);				printk(KERN_INFO "%s: Full Duplex\n",				       dev->name);			}			priv->oldduplex = mii_info->duplex;		}		if (mii_info->speed != priv->oldspeed) {			switch (mii_info->speed) {			case 1000:				tempval = gfar_read(&regs->maccfg2);				tempval =				    ((tempval & ~(MACCFG2_IF)) | MACCFG2_GMII);				gfar_write(&regs->maccfg2, tempval);				break;			case 100:			case 10:				tempval = gfar_read(&regs->maccfg2);				tempval =				    ((tempval & ~(MACCFG2_IF)) | MACCFG2_MII);				gfar_write(&regs->maccfg2, tempval);				break;			default:				printk(KERN_WARNING				       "%s: Ack!  Speed (%d) is not 10/100/1000!\n",				       dev->name, mii_info->speed);				break;			}			printk(KERN_INFO "%s: Speed %dBT\n", dev->name,			       mii_info->speed);			priv->oldspeed = mii_info->speed;		}		if (!priv->oldlink) {			printk(KERN_INFO "%s: Link is up\n", dev->name);			priv->oldlink = 1;			netif_carrier_on(dev);			netif_schedule(dev);		}	} else {		if (priv->oldlink) {			printk(KERN_INFO "%s: Link is down\n", dev->name);			priv->oldlink = 0;			priv->oldspeed = 0;			priv->oldduplex = -1;			netif_carrier_off(dev);		}	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0bbaf069f053957e8d733784e18a2992afd1dd3c/gianfar.c/buggy/drivers/net/gianfar.c