Lines Matching defs:sc
81 struct sysreg_softc *sc = (struct sysreg_softc *)self;
84 sc->sc_iot = faa->fa_iot;
85 if (bus_space_map(sc->sc_iot, faa->fa_reg[0].addr,
86 faa->fa_reg[0].size, 0, &sc->sc_ioh))
88 sysreg_sc = sc;
90 id = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SYS_ID);
93 id = bus_space_read_4(sc->sc_iot, sc->sc_ioh, SYS_PROCID0);
101 sysconf_function(struct sysreg_softc *sc, int function)
110 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SYS_CFGSTAT, 0);
111 bus_space_write_4(sc->sc_iot, sc->sc_ioh, SYS_CFGCTRL,
116 while ((bus_space_read_4(sc->sc_iot, sc->sc_ioh, SYS_CFGSTAT) &
119 if (bus_space_read_4(sc->sc_iot, sc->sc_ioh, SYS_CFGSTAT) &
127 struct sysreg_softc *sc = sysreg_sc;
129 if (sc == NULL)
132 sysconf_function(sc, SYS_CFG_REBOOT);
138 struct sysreg_softc *sc = sysreg_sc;
140 if (sc == NULL)
143 sysconf_function(sc, SYS_CFG_SHUTDOWN);