while(!(fecp->fec_ievent & 0x10000000));
while(!(fecp->fec_ievent & FEC_ENET_GRA));
fec_stop(struct net_device *dev){	volatile fec_t *fecp;	struct fec_enet_private *fep;	fep = netdev_priv(dev);	fecp = fep->hwp;	fecp->fec_x_cntrl = 0x01;	/* Graceful transmit stop */	while(!(fecp->fec_ievent & 0x10000000));	/* Whack a reset.  We should wait for this.	*/	fecp->fec_ecntrl = 1;	udelay(10);	/* Clear outstanding MII command interrupts.	*/	fecp->fec_ievent = FEC_ENET_MII;	fec_enable_phy_intr();	fecp->fec_imask = FEC_ENET_MII;	fecp->fec_mii_speed = fep->phy_speed;}