Lines Matching defs:sc
75 struct siop_gsc_softc *sc = (struct siop_gsc_softc *)self;
78 sc->sc_iot = ga->ga_iot;
79 if (bus_space_map(sc->sc_iot, ga->ga_hpa,
80 IOMOD_HPASIZE, 0, &sc->sc_ioh)) {
85 sc->sc_bustag = *sc->sc_iot;
86 sc->sc_bustag.hbt_r1 = siop_gsc_r1;
87 sc->sc_bustag.hbt_r2 = siop_gsc_r2;
88 sc->sc_bustag.hbt_w1 = siop_gsc_w1;
89 sc->sc_bustag.hbt_w2 = siop_gsc_w2;
91 sc->sc_siop.sc_c.features = SF_CHIP_PF | SF_CHIP_BE | SF_BUS_WIDE;
92 sc->sc_siop.sc_c.maxburst = 4;
93 sc->sc_siop.sc_c.maxoff = 8;
94 sc->sc_siop.sc_c.clock_div = 3;
95 sc->sc_siop.sc_c.clock_period = 250;
96 sc->sc_siop.sc_c.ram_size = 0;
98 sc->sc_siop.sc_c.sc_reset = siop_gsc_reset;
99 sc->sc_siop.sc_c.sc_dmat = ga->ga_dmatag;
101 sc->sc_siop.sc_c.sc_rt = &sc->sc_bustag;
102 bus_space_subregion(sc->sc_iot, sc->sc_ioh, SIOP_GSC_OFFSET,
103 IOMOD_HPASIZE - SIOP_GSC_OFFSET, &sc->sc_siop.sc_c.sc_rh);
108 bus_space_write_1(sc->sc_iot, sc->sc_ioh, SIOP_GSC_RESET, 0);
110 siop_gsc_reset(&sc->sc_siop.sc_c);
113 IPL_BIO, siop_intr, sc, sc->sc_siop.sc_c.sc_dev.dv_xname);
115 printf(": NCR53C720 rev %d\n", bus_space_read_1(sc->sc_siop.sc_c.sc_rt,
116 sc->sc_siop.sc_c.sc_rh, SIOP_CTEST3) >> 4);
118 siop_attach(&sc->sc_siop);
122 siop_gsc_reset(struct siop_common_softc *sc)
124 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_DCNTL, DCNTL_EA);
125 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST0, CTEST0_EHP);
126 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST4, CTEST4_MUX);
128 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STIME0,