Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/rtwn/rtl8821a/r21a_init.c
Show First 20 Lines • Show All 274 Lines • ▼ Show 20 Lines | #endif | ||||
/* Enable WL suspend. */ | /* Enable WL suspend. */ | ||||
rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, R92C_APS_FSMCO_AFSM_PCIE, | rtwn_setbits_1_shift(sc, R92C_APS_FSMCO, R92C_APS_FSMCO_AFSM_PCIE, | ||||
R92C_APS_FSMCO_AFSM_HSUS, 1); | R92C_APS_FSMCO_AFSM_HSUS, 1); | ||||
/* Enable GPIO9 as EXT WAKEUP. */ | /* Enable GPIO9 as EXT WAKEUP. */ | ||||
rtwn_setbits_1(sc, R92C_GPIO_INTM + 2, 0, 0x01); | rtwn_setbits_1(sc, R92C_GPIO_INTM + 2, 0, 0x01); | ||||
rs->rs_flags &= ~R12A_IQK_RUNNING; | rs->rs_flags &= ~(R12A_IQK_RUNNING | R12A_RADAR_ENABLED); | ||||
} | } | ||||
int | int | ||||
r21a_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) | r21a_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) | ||||
{ | { | ||||
struct r12a_softc *rs = sc->sc_priv; | struct r12a_softc *rs = sc->sc_priv; | ||||
uint8_t mask; | uint8_t mask; | ||||
int i; | int i; | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |