struct sonic_local *lp = (struct sonic_local *) dev->priv; unsigned int base_addr = dev->base_addr; 
struct sonic_local *lp = netdev_priv(dev); 
static struct net_device_stats *sonic_get_stats(struct net_device *dev){	struct sonic_local *lp = (struct sonic_local *) dev->priv;	unsigned int base_addr = dev->base_addr;	/* read the tally counter from the SONIC and reset them */	lp->stats.rx_crc_errors += SONIC_READ(SONIC_CRCT);	SONIC_WRITE(SONIC_CRCT, 0xffff);	lp->stats.rx_frame_errors += SONIC_READ(SONIC_FAET);	SONIC_WRITE(SONIC_FAET, 0xffff);	lp->stats.rx_missed_errors += SONIC_READ(SONIC_MPT);	SONIC_WRITE(SONIC_MPT, 0xffff);	return &lp->stats;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/efcce839360fb3a7b6dedeacaec80f68b0f2d052/sonic.c/clean/drivers/net/sonic.c