/* Clears the "tally counters" for CRC errors and missed frames(?). It has been reported that some chips need a write of 0 to clear these, for others the counters are set to 1 when written to and instead cleared when read. So we clear them both ways ...  */
static void clear_tally_counters(void __iomem *ioaddr)
/* Clears the "tally counters" for CRC errors and missed frames(?). It has been reported that some chips need a write of 0 to clear these, for others the counters are set to 1 when written to and instead cleared when read. So we clear them both ways ...  */
static void clear_tally_counters(void __iomem *ioaddr)
{
	iowrite32(0, ioaddr + RxMissed);
	ioread16(ioaddr + RxCRCErrs);
	ioread16(ioaddr + RxMissed);
}