csc.c revision 1.2.2.2 1 1.2.2.2 thorpej /* $NetBSD: csc.c,v 1.2.2.2 2002/01/10 19:36:32 thorpej Exp $ */
2 1.2.2.2 thorpej
3 1.2.2.2 thorpej /*-
4 1.2.2.2 thorpej * Copyright (c) 1998 The NetBSD Foundation, Inc.
5 1.2.2.2 thorpej * All rights reserved.
6 1.2.2.2 thorpej *
7 1.2.2.2 thorpej * This code is derived from software contributed to The NetBSD Foundation
8 1.2.2.2 thorpej * by Scott Stevens.
9 1.2.2.2 thorpej *
10 1.2.2.2 thorpej * Redistribution and use in source and binary forms, with or without
11 1.2.2.2 thorpej * modification, are permitted provided that the following conditions
12 1.2.2.2 thorpej * are met:
13 1.2.2.2 thorpej * 1. Redistributions of source code must retain the above copyright
14 1.2.2.2 thorpej * notice, this list of conditions and the following disclaimer.
15 1.2.2.2 thorpej * 2. Redistributions in binary form must reproduce the above copyright
16 1.2.2.2 thorpej * notice, this list of conditions and the following disclaimer in the
17 1.2.2.2 thorpej * documentation and/or other materials provided with the distribution.
18 1.2.2.2 thorpej * 3. All advertising materials mentioning features or use of this software
19 1.2.2.2 thorpej * must display the following acknowledgement:
20 1.2.2.2 thorpej * This product includes software developed by the NetBSD
21 1.2.2.2 thorpej * Foundation, Inc. and its contributors.
22 1.2.2.2 thorpej * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.2.2.2 thorpej * contributors may be used to endorse or promote products derived
24 1.2.2.2 thorpej * from this software without specific prior written permission.
25 1.2.2.2 thorpej *
26 1.2.2.2 thorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.2.2.2 thorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.2.2.2 thorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.2.2.2 thorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.2.2.2 thorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.2.2.2 thorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.2.2.2 thorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.2.2.2 thorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.2.2.2 thorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.2.2.2 thorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.2.2.2 thorpej * POSSIBILITY OF SUCH DAMAGE.
37 1.2.2.2 thorpej */
38 1.2.2.2 thorpej
39 1.2.2.2 thorpej /*
40 1.2.2.2 thorpej * Cumana SCSI-2 driver uses the SFAS216 generic driver
41 1.2.2.2 thorpej */
42 1.2.2.2 thorpej
43 1.2.2.2 thorpej #include <sys/param.h>
44 1.2.2.2 thorpej #include <sys/systm.h>
45 1.2.2.2 thorpej #include <sys/kernel.h>
46 1.2.2.2 thorpej #include <sys/device.h>
47 1.2.2.2 thorpej #include <dev/scsipi/scsi_all.h>
48 1.2.2.2 thorpej #include <dev/scsipi/scsipi_all.h>
49 1.2.2.2 thorpej #include <dev/scsipi/scsiconf.h>
50 1.2.2.2 thorpej #include <uvm/uvm_extern.h>
51 1.2.2.2 thorpej #include <machine/pmap.h>
52 1.2.2.2 thorpej #include <machine/io.h>
53 1.2.2.2 thorpej #include <machine/intr.h>
54 1.2.2.2 thorpej #include <machine/bootconfig.h>
55 1.2.2.2 thorpej #include <acorn32/podulebus/podulebus.h>
56 1.2.2.2 thorpej #include <acorn32/podulebus/sfasreg.h>
57 1.2.2.2 thorpej #include <acorn32/podulebus/sfasvar.h>
58 1.2.2.2 thorpej #include <acorn32/podulebus/cscreg.h>
59 1.2.2.2 thorpej #include <acorn32/podulebus/cscvar.h>
60 1.2.2.2 thorpej #include <dev/podulebus/podules.h>
61 1.2.2.2 thorpej #include <dev/podulebus/powerromreg.h>
62 1.2.2.2 thorpej
63 1.2.2.2 thorpej void cscattach __P((struct device *, struct device *, void *));
64 1.2.2.2 thorpej int cscmatch __P((struct device *, struct cfdata *, void *));
65 1.2.2.2 thorpej void csc_scsi_request __P((struct scsipi_channel *,
66 1.2.2.2 thorpej scsipi_adapter_req_t, void *));
67 1.2.2.2 thorpej
68 1.2.2.2 thorpej struct cfattach csc_ca = {
69 1.2.2.2 thorpej sizeof(struct csc_softc), cscmatch, cscattach
70 1.2.2.2 thorpej };
71 1.2.2.2 thorpej
72 1.2.2.2 thorpej int csc_intr __P((void *arg));
73 1.2.2.2 thorpej int csc_setup_dma __P((struct sfas_softc *sc, void *ptr, int len,
74 1.2.2.2 thorpej int mode));
75 1.2.2.2 thorpej int csc_build_dma_chain __P((struct sfas_softc *sc,
76 1.2.2.2 thorpej struct sfas_dma_chain *chain, void *p, int l));
77 1.2.2.2 thorpej int csc_need_bump __P((struct sfas_softc *sc, void *ptr, int len));
78 1.2.2.2 thorpej void csc_led __P((struct sfas_softc *sc, int mode));
79 1.2.2.2 thorpej
80 1.2.2.2 thorpej /*
81 1.2.2.2 thorpej * if we are a Cumana SCSI-2 card
82 1.2.2.2 thorpej */
83 1.2.2.2 thorpej int
84 1.2.2.2 thorpej cscmatch(pdp, cf, auxp)
85 1.2.2.2 thorpej struct device *pdp;
86 1.2.2.2 thorpej struct cfdata *cf;
87 1.2.2.2 thorpej void *auxp;
88 1.2.2.2 thorpej {
89 1.2.2.2 thorpej struct podule_attach_args *pa = (struct podule_attach_args *)auxp;
90 1.2.2.2 thorpej
91 1.2.2.2 thorpej /* Look for the card */
92 1.2.2.2 thorpej if (matchpodule(pa, MANUFACTURER_CUMANA, PODULE_CUMANA_SCSI2, -1))
93 1.2.2.2 thorpej return 1;
94 1.2.2.2 thorpej
95 1.2.2.2 thorpej /* PowerROM */
96 1.2.2.2 thorpej if (pa->pa_product == PODULE_ALSYSTEMS_SCSI &&
97 1.2.2.2 thorpej podulebus_initloader(pa) == 0 &&
98 1.2.2.2 thorpej podloader_callloader(pa, 0, 0) == PRID_CUMANA_SCSI2)
99 1.2.2.2 thorpej return 1;
100 1.2.2.2 thorpej
101 1.2.2.2 thorpej return 0;
102 1.2.2.2 thorpej }
103 1.2.2.2 thorpej
104 1.2.2.2 thorpej void
105 1.2.2.2 thorpej cscattach(pdp, dp, auxp)
106 1.2.2.2 thorpej struct device *pdp;
107 1.2.2.2 thorpej struct device *dp;
108 1.2.2.2 thorpej void *auxp;
109 1.2.2.2 thorpej {
110 1.2.2.2 thorpej struct csc_softc *sc = (struct csc_softc *)dp;
111 1.2.2.2 thorpej struct podule_attach_args *pa;
112 1.2.2.2 thorpej csc_regmap_p rp = &sc->sc_regmap;
113 1.2.2.2 thorpej vu_char *fas;
114 1.2.2.2 thorpej int loop;
115 1.2.2.2 thorpej
116 1.2.2.2 thorpej pa = (struct podule_attach_args *)auxp;
117 1.2.2.2 thorpej
118 1.2.2.2 thorpej if (pa->pa_podule_number == -1)
119 1.2.2.2 thorpej panic("Podule has disappeared !");
120 1.2.2.2 thorpej
121 1.2.2.2 thorpej sc->sc_specific.sc_podule_number = pa->pa_podule_number;
122 1.2.2.2 thorpej sc->sc_specific.sc_podule = pa->pa_podule;
123 1.2.2.2 thorpej sc->sc_specific.sc_iobase =
124 1.2.2.2 thorpej (vu_char *)sc->sc_specific.sc_podule->mod_base;
125 1.2.2.2 thorpej
126 1.2.2.2 thorpej rp->status0 = &sc->sc_specific.sc_iobase[CSC_STATUS0];
127 1.2.2.2 thorpej rp->alatch = &sc->sc_specific.sc_iobase[CSC_ALATCH];
128 1.2.2.2 thorpej rp->dack = (vu_short *)&sc->sc_specific.sc_iobase[CSC_DACK];
129 1.2.2.2 thorpej fas = &sc->sc_specific.sc_iobase[CSC_FAS_OFFSET_BASE];
130 1.2.2.2 thorpej
131 1.2.2.2 thorpej rp->FAS216.sfas_tc_low = &fas[CSC_FAS_OFFSET_TCL];
132 1.2.2.2 thorpej rp->FAS216.sfas_tc_mid = &fas[CSC_FAS_OFFSET_TCM];
133 1.2.2.2 thorpej rp->FAS216.sfas_fifo = &fas[CSC_FAS_OFFSET_FIFO];
134 1.2.2.2 thorpej rp->FAS216.sfas_command = &fas[CSC_FAS_OFFSET_COMMAND];
135 1.2.2.2 thorpej rp->FAS216.sfas_dest_id = &fas[CSC_FAS_OFFSET_DESTID];
136 1.2.2.2 thorpej rp->FAS216.sfas_timeout = &fas[CSC_FAS_OFFSET_TIMEOUT];
137 1.2.2.2 thorpej rp->FAS216.sfas_syncper = &fas[CSC_FAS_OFFSET_PERIOD];
138 1.2.2.2 thorpej rp->FAS216.sfas_syncoff = &fas[CSC_FAS_OFFSET_OFFSET];
139 1.2.2.2 thorpej rp->FAS216.sfas_config1 = &fas[CSC_FAS_OFFSET_CONFIG1];
140 1.2.2.2 thorpej rp->FAS216.sfas_clkconv = &fas[CSC_FAS_OFFSET_CLKCONV];
141 1.2.2.2 thorpej rp->FAS216.sfas_test = &fas[CSC_FAS_OFFSET_TEST];
142 1.2.2.2 thorpej rp->FAS216.sfas_config2 = &fas[CSC_FAS_OFFSET_CONFIG2];
143 1.2.2.2 thorpej rp->FAS216.sfas_config3 = &fas[CSC_FAS_OFFSET_CONFIG3];
144 1.2.2.2 thorpej rp->FAS216.sfas_tc_high = &fas[CSC_FAS_OFFSET_TCH];
145 1.2.2.2 thorpej rp->FAS216.sfas_fifo_bot = &fas[CSC_FAS_OFFSET_FIFOBOT];
146 1.2.2.2 thorpej
147 1.2.2.2 thorpej sc->sc_softc.sc_fas = (sfas_regmap_p)rp;
148 1.2.2.2 thorpej sc->sc_softc.sc_spec = &sc->sc_specific;
149 1.2.2.2 thorpej
150 1.2.2.2 thorpej sc->sc_softc.sc_led = csc_led;
151 1.2.2.2 thorpej
152 1.2.2.2 thorpej sc->sc_softc.sc_setup_dma = csc_setup_dma;
153 1.2.2.2 thorpej sc->sc_softc.sc_build_dma_chain = csc_build_dma_chain;
154 1.2.2.2 thorpej sc->sc_softc.sc_need_bump = csc_need_bump;
155 1.2.2.2 thorpej
156 1.2.2.2 thorpej sc->sc_softc.sc_clock_freq = 8; /* Cumana runs at 8MHz */
157 1.2.2.2 thorpej sc->sc_softc.sc_timeout = 250; /* Set default timeout to 250ms */
158 1.2.2.2 thorpej sc->sc_softc.sc_config_flags = SFAS_NO_DMA /*| SFAS_NF_DEBUG*/;
159 1.2.2.2 thorpej sc->sc_softc.sc_host_id = 7; /* Should check the jumpers */
160 1.2.2.2 thorpej
161 1.2.2.2 thorpej sc->sc_softc.sc_bump_sz = NBPG;
162 1.2.2.2 thorpej sc->sc_softc.sc_bump_pa = 0x0;
163 1.2.2.2 thorpej
164 1.2.2.2 thorpej sfasinitialize((struct sfas_softc *)sc);
165 1.2.2.2 thorpej
166 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_dev = &sc->sc_softc.sc_dev;
167 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_nchannels = 1;
168 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_openings = 7;
169 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_max_periph = 1;
170 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_ioctl = NULL;
171 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_minphys = sfas_minphys;
172 1.2.2.2 thorpej sc->sc_softc.sc_adapter.adapt_request = csc_scsi_request;
173 1.2.2.2 thorpej
174 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_adapter = &sc->sc_softc.sc_adapter;
175 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_bustype = &scsi_bustype;
176 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_channel = 0;
177 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_ntargets = 8;
178 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_nluns = 8;
179 1.2.2.2 thorpej sc->sc_softc.sc_channel.chan_id = sc->sc_softc.sc_host_id;
180 1.2.2.2 thorpej
181 1.2.2.2 thorpej /* Provide an override for the host id */
182 1.2.2.2 thorpej (void)get_bootconf_option(boot_args, "csc.hostid",
183 1.2.2.2 thorpej BOOTOPT_TYPE_INT, &sc->sc_softc.sc_channel.chan_id);
184 1.2.2.2 thorpej
185 1.2.2.2 thorpej printf(": host=%d", sc->sc_softc.sc_channel.chan_id);
186 1.2.2.2 thorpej
187 1.2.2.2 thorpej /* initialise the alatch */
188 1.2.2.2 thorpej sc->sc_specific.sc_alatch_defs = (CSC_POLL?0:CSC_ALATCH_DEFS_INTEN);
189 1.2.2.2 thorpej for (loop = 0; loop < 8; loop ++) {
190 1.2.2.2 thorpej if(loop != 3)
191 1.2.2.2 thorpej *rp->alatch = (loop << 1) |
192 1.2.2.2 thorpej ((sc->sc_specific.sc_alatch_defs & (1 << loop))?1:0);
193 1.2.2.2 thorpej }
194 1.2.2.2 thorpej
195 1.2.2.2 thorpej #if CSC_POLL == 0
196 1.2.2.2 thorpej evcnt_attach_dynamic(&sc->sc_softc.sc_intrcnt, EVCNT_TYPE_INTR, NULL,
197 1.2.2.2 thorpej dp->dv_xname, "intr");
198 1.2.2.2 thorpej sc->sc_softc.sc_ih = podulebus_irq_establish(pa->pa_ih, IPL_BIO,
199 1.2.2.2 thorpej csc_intr, &sc->sc_softc, &sc->sc_softc.sc_intrcnt);
200 1.2.2.2 thorpej if (sc->sc_softc.sc_ih == NULL)
201 1.2.2.2 thorpej panic("%s: Cannot install IRQ handler\n", dp->dv_xname);
202 1.2.2.2 thorpej #else
203 1.2.2.2 thorpej printf(" polling");
204 1.2.2.2 thorpej #endif
205 1.2.2.2 thorpej printf("\n");
206 1.2.2.2 thorpej
207 1.2.2.2 thorpej /* attach all scsi units on us */
208 1.2.2.2 thorpej config_found(dp, &sc->sc_softc.sc_channel, scsiprint);
209 1.2.2.2 thorpej }
210 1.2.2.2 thorpej
211 1.2.2.2 thorpej
212 1.2.2.2 thorpej int
213 1.2.2.2 thorpej csc_intr(arg)
214 1.2.2.2 thorpej void *arg;
215 1.2.2.2 thorpej {
216 1.2.2.2 thorpej struct sfas_softc *dev = arg;
217 1.2.2.2 thorpej csc_regmap_p rp;
218 1.2.2.2 thorpej int quickints;
219 1.2.2.2 thorpej
220 1.2.2.2 thorpej rp = (csc_regmap_p)dev->sc_fas;
221 1.2.2.2 thorpej
222 1.2.2.2 thorpej if (*rp->FAS216.sfas_status & SFAS_STAT_INTERRUPT_PENDING) {
223 1.2.2.2 thorpej quickints = 16;
224 1.2.2.2 thorpej do {
225 1.2.2.2 thorpej dev->sc_status = *rp->FAS216.sfas_status;
226 1.2.2.2 thorpej dev->sc_interrupt = *rp->FAS216.sfas_interrupt;
227 1.2.2.2 thorpej
228 1.2.2.2 thorpej if (dev->sc_interrupt & SFAS_INT_RESELECTED) {
229 1.2.2.2 thorpej dev->sc_resel[0] = *rp->FAS216.sfas_fifo;
230 1.2.2.2 thorpej dev->sc_resel[1] = *rp->FAS216.sfas_fifo;
231 1.2.2.2 thorpej }
232 1.2.2.2 thorpej sfasintr(dev);
233 1.2.2.2 thorpej
234 1.2.2.2 thorpej } while((*rp->FAS216.sfas_status & SFAS_STAT_INTERRUPT_PENDING)
235 1.2.2.2 thorpej && --quickints);
236 1.2.2.2 thorpej }
237 1.2.2.2 thorpej
238 1.2.2.2 thorpej return(0); /* Pass interrupt on down the chain */
239 1.2.2.2 thorpej }
240 1.2.2.2 thorpej
241 1.2.2.2 thorpej /* Load transfer address into dma register */
242 1.2.2.2 thorpej void
243 1.2.2.2 thorpej csc_set_dma_adr(sc, ptr)
244 1.2.2.2 thorpej struct sfas_softc *sc;
245 1.2.2.2 thorpej void *ptr;
246 1.2.2.2 thorpej {
247 1.2.2.2 thorpej return;
248 1.2.2.2 thorpej }
249 1.2.2.2 thorpej
250 1.2.2.2 thorpej /* Set DMA transfer counter */
251 1.2.2.2 thorpej void
252 1.2.2.2 thorpej csc_set_dma_tc(sc, len)
253 1.2.2.2 thorpej struct sfas_softc *sc;
254 1.2.2.2 thorpej unsigned int len;
255 1.2.2.2 thorpej {
256 1.2.2.2 thorpej *sc->sc_fas->sfas_tc_low = len; len >>= 8;
257 1.2.2.2 thorpej *sc->sc_fas->sfas_tc_mid = len; len >>= 8;
258 1.2.2.2 thorpej *sc->sc_fas->sfas_tc_high = len;
259 1.2.2.2 thorpej }
260 1.2.2.2 thorpej
261 1.2.2.2 thorpej /* Set DMA mode */
262 1.2.2.2 thorpej void
263 1.2.2.2 thorpej csc_set_dma_mode(sc, mode)
264 1.2.2.2 thorpej struct sfas_softc *sc;
265 1.2.2.2 thorpej int mode;
266 1.2.2.2 thorpej {
267 1.2.2.2 thorpej }
268 1.2.2.2 thorpej
269 1.2.2.2 thorpej /* Initialize DMA for transfer */
270 1.2.2.2 thorpej int
271 1.2.2.2 thorpej csc_setup_dma(sc, ptr, len, mode)
272 1.2.2.2 thorpej struct sfas_softc *sc;
273 1.2.2.2 thorpej void *ptr;
274 1.2.2.2 thorpej int len;
275 1.2.2.2 thorpej int mode;
276 1.2.2.2 thorpej {
277 1.2.2.2 thorpej return(0);
278 1.2.2.2 thorpej }
279 1.2.2.2 thorpej
280 1.2.2.2 thorpej /* Check if address and len is ok for DMA transfer */
281 1.2.2.2 thorpej int
282 1.2.2.2 thorpej csc_need_bump(sc, ptr, len)
283 1.2.2.2 thorpej struct sfas_softc *sc;
284 1.2.2.2 thorpej void *ptr;
285 1.2.2.2 thorpej int len;
286 1.2.2.2 thorpej {
287 1.2.2.2 thorpej int p;
288 1.2.2.2 thorpej
289 1.2.2.2 thorpej p = (int)ptr & 0x03;
290 1.2.2.2 thorpej
291 1.2.2.2 thorpej if (p) {
292 1.2.2.2 thorpej p = 4-p;
293 1.2.2.2 thorpej
294 1.2.2.2 thorpej if (len < 256)
295 1.2.2.2 thorpej p = len;
296 1.2.2.2 thorpej }
297 1.2.2.2 thorpej
298 1.2.2.2 thorpej return(p);
299 1.2.2.2 thorpej }
300 1.2.2.2 thorpej
301 1.2.2.2 thorpej /* Interrupt driven routines */
302 1.2.2.2 thorpej int
303 1.2.2.2 thorpej csc_build_dma_chain(sc, chain, p, l)
304 1.2.2.2 thorpej struct sfas_softc *sc;
305 1.2.2.2 thorpej struct sfas_dma_chain *chain;
306 1.2.2.2 thorpej void *p;
307 1.2.2.2 thorpej int l;
308 1.2.2.2 thorpej {
309 1.2.2.2 thorpej return(0);
310 1.2.2.2 thorpej }
311 1.2.2.2 thorpej
312 1.2.2.2 thorpej /* Turn on/off led */
313 1.2.2.2 thorpej void
314 1.2.2.2 thorpej csc_led(sc, mode)
315 1.2.2.2 thorpej struct sfas_softc *sc;
316 1.2.2.2 thorpej int mode;
317 1.2.2.2 thorpej {
318 1.2.2.2 thorpej csc_regmap_p rp;
319 1.2.2.2 thorpej
320 1.2.2.2 thorpej rp = (csc_regmap_p)sc->sc_fas;
321 1.2.2.2 thorpej
322 1.2.2.2 thorpej if (mode) {
323 1.2.2.2 thorpej sc->sc_led_status++;
324 1.2.2.2 thorpej } else {
325 1.2.2.2 thorpej if (sc->sc_led_status)
326 1.2.2.2 thorpej sc->sc_led_status--;
327 1.2.2.2 thorpej }
328 1.2.2.2 thorpej }
329 1.2.2.2 thorpej
330 1.2.2.2 thorpej void
331 1.2.2.2 thorpej csc_scsi_request(chan, req, arg)
332 1.2.2.2 thorpej struct scsipi_channel *chan;
333 1.2.2.2 thorpej scsipi_adapter_req_t req;
334 1.2.2.2 thorpej void *arg;
335 1.2.2.2 thorpej {
336 1.2.2.2 thorpej struct scsipi_xfer *xs;
337 1.2.2.2 thorpej
338 1.2.2.2 thorpej switch (req) {
339 1.2.2.2 thorpej case ADAPTER_REQ_RUN_XFER:
340 1.2.2.2 thorpej xs = arg;
341 1.2.2.2 thorpej /* ensure command is polling for the moment */
342 1.2.2.2 thorpej #if CSC_POLL > 0
343 1.2.2.2 thorpej xs->xs_control |= XS_CTL_POLL;
344 1.2.2.2 thorpej #endif
345 1.2.2.2 thorpej default:
346 1.2.2.2 thorpej }
347 1.2.2.2 thorpej sfas_scsi_request(chan, req, arg);
348 1.2.2.2 thorpej }
349