Lines Matching defs:sc
87 struct pckbc_ebus_softc *sc = (void *)self;
88 struct pckbc_softc *psc = &sc->sc_pckbc;
94 sc->sc_node = ea->ea_node;
95 console = pckbc_ebus_is_console(sc);
99 0, &sc->sc_ioh) == 0) {
100 sc->sc_iot = ea->ea_iotag;
103 0, 0, &sc->sc_ioh) == 0) {
104 sc->sc_iot = ea->ea_iotag;
107 0, 0, &sc->sc_ioh) == 0) {
108 sc->sc_iot = ea->ea_memtag;
135 for (node = OF_child(sc->sc_node); node;
154 if (pckbc_cnattach(sc->sc_iot,
158 sc->sc_ioh_c = t->t_ioh_c;
159 sc->sc_ioh_d = t->t_ioh_d;
165 if (bus_space_subregion(sc->sc_iot, sc->sc_ioh,
166 KBCMDP, sizeof(u_int32_t), &sc->sc_ioh_c) != 0) {
170 if (bus_space_subregion(sc->sc_iot, sc->sc_ioh,
171 KBDATAP, sizeof(u_int32_t), &sc->sc_ioh_d) != 0) {
180 sc->sc_irq[0] = bus_intr_establish(sc->sc_iot, ea->ea_intrs[0],
182 if (sc->sc_irq[0] == NULL) {
187 sc->sc_irq[1] = bus_intr_establish(sc->sc_iot, ea->ea_intrs[1],
189 if (sc->sc_irq[1] == NULL) {
194 t->t_iot = sc->sc_iot;
195 t->t_ioh_c = sc->sc_ioh_c;
196 t->t_ioh_d = sc->sc_ioh_d;
207 pckbc_ebus_is_console(struct pckbc_ebus_softc *sc)
218 for (node = OF_child(sc->sc_node); node; node = OF_peer(node)) {