Lines Matching refs:sc_softc
179 sc->sc_softc.sc_dev = self;
180 sc->sc_softc.sc_fas = (sfas_regmap_p)rp;
181 sc->sc_softc.sc_spec = &sc->sc_specific;
183 sc->sc_softc.sc_led = ptsc_led;
185 sc->sc_softc.sc_setup_dma = ptsc_setup_dma;
186 sc->sc_softc.sc_build_dma_chain = ptsc_build_dma_chain;
187 sc->sc_softc.sc_need_bump = ptsc_need_bump;
189 sc->sc_softc.sc_clock_freq = 40; /* Power-Tec runs at 8MHz */
190 sc->sc_softc.sc_timeout = 250; /* Set default timeout to 250ms */
191 sc->sc_softc.sc_config_flags = SFAS_NO_DMA /*| SFAS_NF_DEBUG*/;
192 sc->sc_softc.sc_host_id = 7; /* Should check the jumpers */
194 sc->sc_softc.sc_bump_sz = PAGE_SIZE;
195 sc->sc_softc.sc_bump_pa = 0x0;
199 sc->sc_softc.sc_adapter.adapt_dev = sc->sc_softc.sc_dev;
200 sc->sc_softc.sc_adapter.adapt_nchannels = 1;
201 sc->sc_softc.sc_adapter.adapt_openings = 7;
202 sc->sc_softc.sc_adapter.adapt_max_periph = 1;
203 sc->sc_softc.sc_adapter.adapt_ioctl = NULL;
204 sc->sc_softc.sc_adapter.adapt_minphys = sfas_minphys;
205 sc->sc_softc.sc_adapter.adapt_request = sfas_scsi_request;
207 sc->sc_softc.sc_channel.chan_adapter = &sc->sc_softc.sc_adapter;
208 sc->sc_softc.sc_channel.chan_bustype = &scsi_bustype;
209 sc->sc_softc.sc_channel.chan_channel = 0;
210 sc->sc_softc.sc_channel.chan_ntargets = 8;
211 sc->sc_softc.sc_channel.chan_nluns = 8;
212 sc->sc_softc.sc_channel.chan_id = sc->sc_softc.sc_host_id;
216 BOOTOPT_TYPE_INT, &sc->sc_softc.sc_channel.chan_id);
218 printf(": host=%d", sc->sc_softc.sc_channel.chan_id);
226 evcnt_attach_dynamic(&sc->sc_softc.sc_intrcnt, EVCNT_TYPE_INTR, NULL,
228 sc->sc_softc.sc_ih = podulebus_irq_establish(pa->pa_ih, IPL_BIO,
229 ptsc_intr, &sc->sc_softc, &sc->sc_softc.sc_intrcnt);
230 if (sc->sc_softc.sc_ih == NULL)
234 sc->sc_softc.sc_adapter.adapt_flags = SCSIPI_ADAPT_POLL_ONLY;
240 config_found(self, &sc->sc_softc.sc_channel, scsiprint, CFARGS_NONE);