Config5
cpw8(Config5, cpr8(Config5) & PMEStatus);
options = cpr8 (Config5) & ~(UWF | MWF | BWF);
cpw8 (Config5, options);
options = cpr8 (Config5);
u8 cfg5 = RTL_R8 (Config5);
cfg5 = RTL_R8 (Config5) & ~(Cfg5_UWF | Cfg5_MWF | Cfg5_BWF);
RTL_W8 (Config5, cfg5); /* need not unlock via Cfg9346 */
r8169_mod_reg8_cond(tp, Config5, UWF, wolopts & WAKE_UCAST);
r8169_mod_reg8_cond(tp, Config5, BWF, wolopts & WAKE_BCAST);
r8169_mod_reg8_cond(tp, Config5, MWF, wolopts & WAKE_MCAST);
r8169_mod_reg8_cond(tp, Config5, LanWake, wolopts);
val = RTL_R8(tp, Config5);
RTL_W8(tp, Config5, (val & ~clear) | set);