Lines Matching defs:sc
75 struct siop_sgc_softc *sc = (struct siop_sgc_softc *)self;
79 sc->sc_iot = ca->ca_iot;
80 if (bus_space_map(sc->sc_iot, ca->ca_hpa,
81 IOMOD_HPASIZE, 0, &sc->sc_ioh)) {
86 sc->sc_bustag = *sc->sc_iot;
87 sc->sc_bustag.hbt_r1 = siop_sgc_r1;
88 sc->sc_bustag.hbt_r2 = siop_sgc_r2;
89 sc->sc_bustag.hbt_w1 = siop_sgc_w1;
90 sc->sc_bustag.hbt_w2 = siop_sgc_w2;
92 sc->sc_siop.sc_c.features = SF_CHIP_PF | SF_CHIP_BE | SF_BUS_WIDE;
93 sc->sc_siop.sc_c.maxburst = 4;
94 sc->sc_siop.sc_c.maxoff = 8;
95 sc->sc_siop.sc_c.clock_div = 3;
96 sc->sc_siop.sc_c.clock_period = 250;
97 sc->sc_siop.sc_c.ram_size = 0;
99 sc->sc_siop.sc_c.sc_reset = siop_sgc_reset;
100 sc->sc_siop.sc_c.sc_dmat = ca->ca_dmatag;
102 sc->sc_siop.sc_c.sc_rt = &sc->sc_bustag;
103 bus_space_subregion(sc->sc_iot, sc->sc_ioh, IOMOD_DEVOFFSET,
104 IOMOD_HPASIZE - IOMOD_DEVOFFSET, &sc->sc_siop.sc_c.sc_rh);
106 regs = bus_space_vaddr(sc->sc_iot, sc->sc_ioh);
112 siop_sgc_reset(&sc->sc_siop.sc_c);
116 cpu_intr_establish(IPL_BIO, ca->ca_irq, siop_intr, sc,
117 sc->sc_siop.sc_c.sc_dev.dv_xname);
119 printf(": NCR53C720 rev %d\n", bus_space_read_1(sc->sc_siop.sc_c.sc_rt,
120 sc->sc_siop.sc_c.sc_rh, SIOP_CTEST3) >> 4);
122 siop_attach(&sc->sc_siop);
126 siop_sgc_reset(struct siop_common_softc *sc)
128 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_DCNTL, DCNTL_EA);
129 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST0, CTEST0_EHP);
130 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_CTEST4, CTEST4_MUX);
132 bus_space_write_1(sc->sc_rt, sc->sc_rh, SIOP_STIME0,