/* Called after we drop out of wake on lan mode in order to reset the Wake on lan features. This function doesn't restore the rest of the logic from the result of sleep/wakeup  */
static void mac_wol_reset(struct mac_regs __iomem *regs)
/* Called after we drop out of wake on lan mode in order to reset the Wake on lan features. This function doesn't restore the rest of the logic from the result of sleep/wakeup  */
static void mac_wol_reset(struct mac_regs __iomem *regs)
{
	BYTE_REG_BITS_OFF(STICKHW_SWPTAG, &regs->STICKHW);
	BYTE_REG_BITS_OFF((STICKHW_DS1 | STICKHW_DS0), &regs->STICKHW);
	BYTE_REG_BITS_OFF(CHIPGCR_FCGMII, &regs->CHIPGCR);
	BYTE_REG_BITS_OFF(CHIPGCR_FCMODE, &regs->CHIPGCR);
	writeb(WOLCFG_PMEOVR, &regs->WOLCFGClr);
	writew(0xFFFF, &regs->WOLCRClr);
	writew(0xFFFF, &regs->WOLSRClr);
}