gfar_write(&priv->regs->iaddr0, 0); gfar_write(&priv->regs->iaddr1, 0); gfar_write(&priv->regs->iaddr2, 0); gfar_write(&priv->regs->iaddr3, 0); gfar_write(&priv->regs->iaddr4, 0); gfar_write(&priv->regs->iaddr5, 0); gfar_write(&priv->regs->iaddr6, 0); gfar_write(&priv->regs->iaddr7, 0); 
gfar_write(&priv->regs->igaddr0, 0); gfar_write(&priv->regs->igaddr1, 0); gfar_write(&priv->regs->igaddr2, 0); gfar_write(&priv->regs->igaddr3, 0); gfar_write(&priv->regs->igaddr4, 0); gfar_write(&priv->regs->igaddr5, 0); gfar_write(&priv->regs->igaddr6, 0); gfar_write(&priv->regs->igaddr7, 0); 
static void init_registers(struct net_device *dev){	struct gfar_private *priv = netdev_priv(dev);	/* Clear IEVENT */	gfar_write(&priv->regs->ievent, IEVENT_INIT_CLEAR);	/* Initialize IMASK */	gfar_write(&priv->regs->imask, IMASK_INIT_CLEAR);	/* Init hash registers to zero */	gfar_write(&priv->regs->iaddr0, 0);	gfar_write(&priv->regs->iaddr1, 0);	gfar_write(&priv->regs->iaddr2, 0);	gfar_write(&priv->regs->iaddr3, 0);	gfar_write(&priv->regs->iaddr4, 0);	gfar_write(&priv->regs->iaddr5, 0);	gfar_write(&priv->regs->iaddr6, 0);	gfar_write(&priv->regs->iaddr7, 0);	gfar_write(&priv->regs->gaddr0, 0);	gfar_write(&priv->regs->gaddr1, 0);	gfar_write(&priv->regs->gaddr2, 0);	gfar_write(&priv->regs->gaddr3, 0);	gfar_write(&priv->regs->gaddr4, 0);	gfar_write(&priv->regs->gaddr5, 0);	gfar_write(&priv->regs->gaddr6, 0);	gfar_write(&priv->regs->gaddr7, 0);	/* Zero out rctrl */	gfar_write(&priv->regs->rctrl, 0x00000000);	/* Zero out the rmon mib registers if it has them */	if (priv->einfo->device_flags & FSL_GIANFAR_DEV_HAS_RMON) {		memset((void *) &(priv->regs->rmon), 0,		       sizeof (struct rmon_mib));		/* Mask off the CAM interrupts */		gfar_write(&priv->regs->rmon.cam1, 0xffffffff);		gfar_write(&priv->regs->rmon.cam2, 0xffffffff);	}	/* Initialize the max receive buffer length */	gfar_write(&priv->regs->mrblr, priv->rx_buffer_size);#ifdef CONFIG_GFAR_BUFSTASH	/* If we are stashing buffers, we need to set the	 * extraction length to the size of the buffer */	gfar_write(&priv->regs->attreli, priv->rx_stash_size << 16);#endif	/* Initialize the Minimum Frame Length Register */	gfar_write(&priv->regs->minflr, MINFLR_INIT_SETTINGS);	/* Setup Attributes so that snooping is on for rx */	gfar_write(&priv->regs->attr, ATTR_INIT_SETTINGS);	gfar_write(&priv->regs->attreli, ATTRELI_INIT_SETTINGS);	/* Assign the TBI an address which won't conflict with the PHYs */	gfar_write(&priv->regs->tbipa, TBIPA_VALUE);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/0bbaf069f053957e8d733784e18a2992afd1dd3c/gianfar.c/buggy/drivers/net/gianfar.c