asc.c revision 1.3.2.5 1 1.3.2.5 jdolecek /* $NetBSD: asc.c,v 1.3.2.5 2002/09/06 08:31:10 jdolecek Exp $ */
2 1.3.2.2 thorpej
3 1.3.2.2 thorpej /*
4 1.3.2.2 thorpej * Copyright (c) 2001 Richard Earnshaw
5 1.3.2.2 thorpej * All rights reserved.
6 1.3.2.2 thorpej *
7 1.3.2.2 thorpej * 1. Redistributions of source code must retain the above copyright
8 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer.
9 1.3.2.2 thorpej * 2. Redistributions in binary form must reproduce the above copyright
10 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer in the
11 1.3.2.2 thorpej * documentation and/or other materials provided with the distribution.
12 1.3.2.2 thorpej * 3. The name of the company nor the name of the author may be used to
13 1.3.2.2 thorpej * endorse or promote products derived from this software without specific
14 1.3.2.2 thorpej * prior written permission.
15 1.3.2.2 thorpej *
16 1.3.2.2 thorpej * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
17 1.3.2.2 thorpej * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 1.3.2.2 thorpej * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 1.3.2.2 thorpej * IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
20 1.3.2.2 thorpej * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 1.3.2.2 thorpej * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22 1.3.2.2 thorpej * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 1.3.2.2 thorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 1.3.2.2 thorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 1.3.2.2 thorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 1.3.2.2 thorpej * POSSIBILITY OF SUCH DAMAGE.
27 1.3.2.2 thorpej *
28 1.3.2.2 thorpej *
29 1.3.2.2 thorpej * Copyright (c) 1996 Mark Brinicombe
30 1.3.2.2 thorpej * Copyright (c) 1982, 1990 The Regents of the University of California.
31 1.3.2.2 thorpej * All rights reserved.
32 1.3.2.2 thorpej *
33 1.3.2.2 thorpej * Redistribution and use in source and binary forms, with or without
34 1.3.2.2 thorpej * modification, are permitted provided that the following conditions
35 1.3.2.2 thorpej * are met:
36 1.3.2.2 thorpej * 1. Redistributions of source code must retain the above copyright
37 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer.
38 1.3.2.2 thorpej * 2. Redistributions in binary form must reproduce the above copyright
39 1.3.2.2 thorpej * notice, this list of conditions and the following disclaimer in the
40 1.3.2.2 thorpej * documentation and/or other materials provided with the distribution.
41 1.3.2.2 thorpej * 3. All advertising materials mentioning features or use of this software
42 1.3.2.2 thorpej * must display the following acknowledgement:
43 1.3.2.2 thorpej * This product includes software developed by the University of
44 1.3.2.2 thorpej * California, Berkeley and its contributors.
45 1.3.2.2 thorpej * 4. Neither the name of the University nor the names of its contributors
46 1.3.2.2 thorpej * may be used to endorse or promote products derived from this software
47 1.3.2.2 thorpej * without specific prior written permission.
48 1.3.2.2 thorpej *
49 1.3.2.2 thorpej * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
50 1.3.2.2 thorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51 1.3.2.2 thorpej * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52 1.3.2.2 thorpej * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
53 1.3.2.2 thorpej * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54 1.3.2.2 thorpej * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55 1.3.2.2 thorpej * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56 1.3.2.2 thorpej * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57 1.3.2.2 thorpej * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58 1.3.2.2 thorpej * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59 1.3.2.2 thorpej * SUCH DAMAGE.
60 1.3.2.2 thorpej *
61 1.3.2.2 thorpej * from:ahsc.c
62 1.3.2.2 thorpej */
63 1.3.2.2 thorpej
64 1.3.2.2 thorpej /*
65 1.3.2.2 thorpej * Driver for the Acorn SCSI card using the SBIC (WD33C93A) generic driver
66 1.3.2.2 thorpej *
67 1.3.2.2 thorpej * Thanks to Acorn for supplying programming information on this card.
68 1.3.2.2 thorpej */
69 1.3.2.2 thorpej
70 1.3.2.2 thorpej /* #define ASC_DMAMAP_DEBUG */
71 1.3.2.2 thorpej /* #define DEBUG */
72 1.3.2.2 thorpej
73 1.3.2.2 thorpej #include "opt_ddb.h"
74 1.3.2.2 thorpej
75 1.3.2.2 thorpej #include <sys/param.h>
76 1.3.2.3 jdolecek
77 1.3.2.5 jdolecek __KERNEL_RCSID(0, "$NetBSD: asc.c,v 1.3.2.5 2002/09/06 08:31:10 jdolecek Exp $");
78 1.3.2.3 jdolecek
79 1.3.2.2 thorpej #include <sys/systm.h>
80 1.3.2.2 thorpej #include <sys/kernel.h>
81 1.3.2.2 thorpej #include <sys/device.h>
82 1.3.2.2 thorpej #include <sys/buf.h>
83 1.3.2.2 thorpej
84 1.3.2.2 thorpej #include <uvm/uvm_extern.h>
85 1.3.2.2 thorpej
86 1.3.2.2 thorpej #include <machine/bus.h>
87 1.3.2.2 thorpej #include <machine/intr.h>
88 1.3.2.2 thorpej #include <machine/bootconfig.h> /* asc_poll */
89 1.3.2.2 thorpej
90 1.3.2.2 thorpej #include <dev/scsipi/scsi_all.h>
91 1.3.2.2 thorpej #include <dev/scsipi/scsipi_all.h>
92 1.3.2.2 thorpej #include <dev/scsipi/scsiconf.h>
93 1.3.2.2 thorpej
94 1.3.2.2 thorpej #include <arm/arm32/katelib.h>
95 1.3.2.2 thorpej
96 1.3.2.2 thorpej #include <dev/podulebus/podules.h>
97 1.3.2.2 thorpej #include <dev/podulebus/powerromreg.h>
98 1.3.2.2 thorpej
99 1.3.2.2 thorpej #include <acorn32/podulebus/podulebus.h>
100 1.3.2.2 thorpej #include <acorn32/podulebus/sbicreg.h>
101 1.3.2.2 thorpej #include <acorn32/podulebus/sbicvar.h>
102 1.3.2.2 thorpej #include <acorn32/podulebus/ascreg.h>
103 1.3.2.2 thorpej #include <acorn32/podulebus/ascvar.h>
104 1.3.2.2 thorpej
105 1.3.2.2 thorpej void ascattach (struct device *, struct device *, void *);
106 1.3.2.2 thorpej int ascmatch (struct device *, struct cfdata *, void *);
107 1.3.2.2 thorpej
108 1.3.2.2 thorpej void asc_enintr (struct sbic_softc *);
109 1.3.2.2 thorpej
110 1.3.2.2 thorpej int asc_dmaok (void *, bus_dma_tag_t, struct sbic_acb *);
111 1.3.2.2 thorpej int asc_dmasetup (void *, bus_dma_tag_t, struct sbic_acb *, int);
112 1.3.2.2 thorpej int asc_dmanext (void *, bus_dma_tag_t, struct sbic_acb *, int);
113 1.3.2.2 thorpej void asc_dmastop (void *, bus_dma_tag_t, struct sbic_acb *);
114 1.3.2.2 thorpej void asc_dmafinish (void *, bus_dma_tag_t, struct sbic_acb *);
115 1.3.2.2 thorpej
116 1.3.2.2 thorpej int asc_intr (void *);
117 1.3.2.2 thorpej void asc_minphys (struct buf *);
118 1.3.2.2 thorpej
119 1.3.2.3 jdolecek void asc_dump (void);
120 1.3.2.3 jdolecek
121 1.3.2.2 thorpej #ifdef DEBUG
122 1.3.2.2 thorpej int asc_dmadebug = 0;
123 1.3.2.2 thorpej #endif
124 1.3.2.2 thorpej
125 1.3.2.2 thorpej struct cfattach asc_ca = {
126 1.3.2.2 thorpej sizeof(struct asc_softc), ascmatch, ascattach
127 1.3.2.2 thorpej };
128 1.3.2.2 thorpej
129 1.3.2.2 thorpej extern struct cfdriver asc_cd;
130 1.3.2.2 thorpej
131 1.3.2.2 thorpej u_long scsi_nosync;
132 1.3.2.2 thorpej int shift_nosync;
133 1.3.2.2 thorpej
134 1.3.2.2 thorpej #if ASC_POLL > 0
135 1.3.2.2 thorpej int asc_poll = 0;
136 1.3.2.2 thorpej
137 1.3.2.2 thorpej #endif
138 1.3.2.2 thorpej
139 1.3.2.2 thorpej int
140 1.3.2.2 thorpej ascmatch(struct device *pdp, struct cfdata *cf, void *auxp)
141 1.3.2.2 thorpej {
142 1.3.2.2 thorpej struct podule_attach_args *pa = (struct podule_attach_args *)auxp;
143 1.3.2.2 thorpej
144 1.3.2.2 thorpej /* Look for the card */
145 1.3.2.2 thorpej
146 1.3.2.2 thorpej /* Standard ROM, skipping the MCS card that used the same ID. */
147 1.3.2.4 jdolecek if (pa->pa_product == PODULE_ACORN_SCSI &&
148 1.3.2.2 thorpej strncmp(pa->pa_podule->description, "MCS", 3) != 0)
149 1.3.2.2 thorpej return 1;
150 1.3.2.2 thorpej
151 1.3.2.2 thorpej /* PowerROM */
152 1.3.2.2 thorpej if (pa->pa_product == PODULE_ALSYSTEMS_SCSI &&
153 1.3.2.2 thorpej podulebus_initloader(pa) == 0 &&
154 1.3.2.2 thorpej podloader_callloader(pa, 0, 0) == PRID_ACORN_SCSI1)
155 1.3.2.2 thorpej return 1;
156 1.3.2.2 thorpej
157 1.3.2.2 thorpej return 0;
158 1.3.2.2 thorpej }
159 1.3.2.2 thorpej
160 1.3.2.2 thorpej void
161 1.3.2.2 thorpej ascattach(struct device *pdp, struct device *dp, void *auxp)
162 1.3.2.2 thorpej {
163 1.3.2.2 thorpej /* volatile struct sdmac *rp;*/
164 1.3.2.2 thorpej struct asc_softc *sc;
165 1.3.2.2 thorpej struct sbic_softc *sbic;
166 1.3.2.2 thorpej struct podule_attach_args *pa;
167 1.3.2.2 thorpej
168 1.3.2.2 thorpej sc = (struct asc_softc *)dp;
169 1.3.2.2 thorpej pa = (struct podule_attach_args *)auxp;
170 1.3.2.2 thorpej
171 1.3.2.2 thorpej if (pa->pa_podule_number == -1)
172 1.3.2.2 thorpej panic("Podule has disappeared !");
173 1.3.2.2 thorpej
174 1.3.2.2 thorpej sc->sc_podule_number = pa->pa_podule_number;
175 1.3.2.2 thorpej sc->sc_podule = pa->pa_podule;
176 1.3.2.2 thorpej podules[sc->sc_podule_number].attached = 1;
177 1.3.2.2 thorpej
178 1.3.2.2 thorpej sbic = &sc->sc_softc;
179 1.3.2.2 thorpej
180 1.3.2.2 thorpej sbic->sc_enintr = asc_enintr;
181 1.3.2.2 thorpej sbic->sc_dmaok = asc_dmaok;
182 1.3.2.2 thorpej sbic->sc_dmasetup = asc_dmasetup;
183 1.3.2.2 thorpej sbic->sc_dmanext = asc_dmanext;
184 1.3.2.2 thorpej sbic->sc_dmastop = asc_dmastop;
185 1.3.2.2 thorpej sbic->sc_dmafinish = asc_dmafinish;
186 1.3.2.2 thorpej
187 1.3.2.2 thorpej /* Map sbic */
188 1.3.2.2 thorpej sbic->sc_sbicp.sc_sbiciot = pa->pa_iot;
189 1.3.2.2 thorpej if (bus_space_map (sbic->sc_sbicp.sc_sbiciot,
190 1.3.2.2 thorpej sc->sc_podule->mod_base + ASC_SBIC, ASC_SBIC_SPACE, 0,
191 1.3.2.2 thorpej &sbic->sc_sbicp.sc_sbicioh))
192 1.3.2.2 thorpej panic("%s: Cannot map SBIC\n", dp->dv_xname);
193 1.3.2.2 thorpej
194 1.3.2.2 thorpej sbic->sc_clkfreq = sbic_clock_override ? sbic_clock_override : 143;
195 1.3.2.2 thorpej
196 1.3.2.2 thorpej sbic->sc_adapter.adapt_dev = &sbic->sc_dev;
197 1.3.2.2 thorpej sbic->sc_adapter.adapt_nchannels = 1;
198 1.3.2.2 thorpej sbic->sc_adapter.adapt_openings = 7;
199 1.3.2.2 thorpej sbic->sc_adapter.adapt_max_periph = 1;
200 1.3.2.2 thorpej sbic->sc_adapter.adapt_ioctl = NULL;
201 1.3.2.2 thorpej sbic->sc_adapter.adapt_minphys = asc_minphys;
202 1.3.2.5 jdolecek sbic->sc_adapter.adapt_request = sbic_scsi_request;
203 1.3.2.2 thorpej
204 1.3.2.2 thorpej sbic->sc_channel.chan_adapter = &sbic->sc_adapter;
205 1.3.2.2 thorpej sbic->sc_channel.chan_bustype = &scsi_bustype;
206 1.3.2.2 thorpej sbic->sc_channel.chan_channel = 0;
207 1.3.2.2 thorpej sbic->sc_channel.chan_ntargets = 8;
208 1.3.2.2 thorpej sbic->sc_channel.chan_nluns = 8;
209 1.3.2.2 thorpej sbic->sc_channel.chan_id = 7;
210 1.3.2.2 thorpej
211 1.3.2.2 thorpej /* Provide an override for the host id */
212 1.3.2.2 thorpej (void)get_bootconf_option(boot_args, "asc.hostid",
213 1.3.2.2 thorpej BOOTOPT_TYPE_INT, &sbic->sc_channel.chan_id);
214 1.3.2.2 thorpej
215 1.3.2.2 thorpej printf(": hostid=%d", sbic->sc_channel.chan_id);
216 1.3.2.2 thorpej
217 1.3.2.2 thorpej #if ASC_POLL > 0
218 1.3.2.2 thorpej if (boot_args)
219 1.3.2.2 thorpej get_bootconf_option(boot_args, "ascpoll", BOOTOPT_TYPE_BOOLEAN,
220 1.3.2.2 thorpej &asc_poll);
221 1.3.2.2 thorpej
222 1.3.2.5 jdolecek if (asc_poll) {
223 1.3.2.5 jdolecek sbic->sc_adapter.adapt_flags |= SCSIPI_ADAPT_POLL_ONLY;
224 1.3.2.2 thorpej printf(" polling");
225 1.3.2.5 jdolecek }
226 1.3.2.2 thorpej #endif
227 1.3.2.2 thorpej printf("\n");
228 1.3.2.2 thorpej
229 1.3.2.2 thorpej sc->sc_pagereg = sc->sc_podule->fast_base + ASC_PAGEREG;
230 1.3.2.2 thorpej sc->sc_intstat = sc->sc_podule->fast_base + ASC_INTSTATUS;
231 1.3.2.2 thorpej
232 1.3.2.2 thorpej /* Reset the card */
233 1.3.2.2 thorpej
234 1.3.2.2 thorpej WriteByte(sc->sc_pagereg, 0x80);
235 1.3.2.2 thorpej DELAY(500000);
236 1.3.2.2 thorpej WriteByte(sc->sc_pagereg, 0x00);
237 1.3.2.2 thorpej DELAY(250000);
238 1.3.2.2 thorpej
239 1.3.2.2 thorpej sbicinit(sbic);
240 1.3.2.2 thorpej
241 1.3.2.2 thorpej /* If we are polling only, we don't need a interrupt handler. */
242 1.3.2.2 thorpej
243 1.3.2.2 thorpej #ifdef ASC_POLL
244 1.3.2.2 thorpej if (!asc_poll)
245 1.3.2.2 thorpej #endif
246 1.3.2.2 thorpej {
247 1.3.2.2 thorpej evcnt_attach_dynamic(&sc->sc_intrcnt, EVCNT_TYPE_INTR, NULL,
248 1.3.2.2 thorpej dp->dv_xname, "intr");
249 1.3.2.2 thorpej sc->sc_ih = podulebus_irq_establish(pa->pa_ih, IPL_BIO,
250 1.3.2.2 thorpej asc_intr, sc, &sc->sc_intrcnt);
251 1.3.2.2 thorpej if (sc->sc_ih == NULL)
252 1.3.2.2 thorpej panic("%s: Cannot claim podule IRQ\n", dp->dv_xname);
253 1.3.2.2 thorpej }
254 1.3.2.2 thorpej
255 1.3.2.2 thorpej /*
256 1.3.2.2 thorpej * attach all scsi units on us
257 1.3.2.2 thorpej */
258 1.3.2.2 thorpej config_found(dp, &sbic->sc_channel, scsiprint);
259 1.3.2.2 thorpej }
260 1.3.2.2 thorpej
261 1.3.2.2 thorpej
262 1.3.2.2 thorpej void
263 1.3.2.2 thorpej asc_enintr(struct sbic_softc *sbicsc)
264 1.3.2.2 thorpej {
265 1.3.2.2 thorpej struct asc_softc *sc = (struct asc_softc *)sbicsc;
266 1.3.2.2 thorpej
267 1.3.2.2 thorpej sbicsc->sc_flags |= SBICF_INTR;
268 1.3.2.2 thorpej WriteByte(sc->sc_pagereg, 0x40);
269 1.3.2.2 thorpej }
270 1.3.2.2 thorpej
271 1.3.2.2 thorpej int
272 1.3.2.2 thorpej asc_dmaok (void *dma_h, bus_dma_tag_t dma_t, struct sbic_acb *acb)
273 1.3.2.2 thorpej {
274 1.3.2.2 thorpej return 0;
275 1.3.2.2 thorpej }
276 1.3.2.2 thorpej
277 1.3.2.2 thorpej int
278 1.3.2.2 thorpej asc_dmasetup (void *dma_h, bus_dma_tag_t dma_t, struct sbic_acb *acb, int dir)
279 1.3.2.2 thorpej {
280 1.3.2.2 thorpej printf("asc_dmasetup()");
281 1.3.2.2 thorpej #ifdef DDB
282 1.3.2.2 thorpej Debugger();
283 1.3.2.2 thorpej #else
284 1.3.2.2 thorpej panic("Hit a brick wall\n");
285 1.3.2.2 thorpej #endif
286 1.3.2.2 thorpej return 0;
287 1.3.2.2 thorpej }
288 1.3.2.2 thorpej
289 1.3.2.2 thorpej int
290 1.3.2.2 thorpej asc_dmanext (void *dma_h, bus_dma_tag_t dma_t, struct sbic_acb *acb, int dir)
291 1.3.2.2 thorpej {
292 1.3.2.2 thorpej printf("asc_dmanext()");
293 1.3.2.2 thorpej #ifdef DDB
294 1.3.2.2 thorpej Debugger();
295 1.3.2.2 thorpej #else
296 1.3.2.2 thorpej panic("Hit a brick wall\n");
297 1.3.2.2 thorpej #endif
298 1.3.2.2 thorpej return 0;
299 1.3.2.2 thorpej }
300 1.3.2.2 thorpej
301 1.3.2.2 thorpej void
302 1.3.2.2 thorpej asc_dmastop (void *dma_h, bus_dma_tag_t dma_t, struct sbic_acb *acb)
303 1.3.2.2 thorpej {
304 1.3.2.2 thorpej printf("asc_dmastop\n");
305 1.3.2.2 thorpej }
306 1.3.2.2 thorpej
307 1.3.2.2 thorpej void
308 1.3.2.2 thorpej asc_dmafinish (void *dma_h, bus_dma_tag_t dma_t, struct sbic_acb *acb)
309 1.3.2.2 thorpej {
310 1.3.2.2 thorpej printf("asc_dmafinish\n");
311 1.3.2.2 thorpej }
312 1.3.2.2 thorpej
313 1.3.2.2 thorpej void
314 1.3.2.2 thorpej asc_dump(void)
315 1.3.2.2 thorpej {
316 1.3.2.2 thorpej int i;
317 1.3.2.2 thorpej
318 1.3.2.2 thorpej for (i = 0; i < asc_cd.cd_ndevs; ++i)
319 1.3.2.2 thorpej if (asc_cd.cd_devs[i])
320 1.3.2.2 thorpej sbic_dump(asc_cd.cd_devs[i]);
321 1.3.2.2 thorpej }
322 1.3.2.2 thorpej
323 1.3.2.2 thorpej int
324 1.3.2.2 thorpej asc_intr(void *arg)
325 1.3.2.2 thorpej {
326 1.3.2.2 thorpej struct asc_softc *sc = arg;
327 1.3.2.2 thorpej int intr;
328 1.3.2.2 thorpej
329 1.3.2.2 thorpej /* printf("ascintr:");*/
330 1.3.2.2 thorpej intr = ReadByte(sc->sc_intstat);
331 1.3.2.2 thorpej /* printf("%02x\n", intr);*/
332 1.3.2.2 thorpej
333 1.3.2.2 thorpej if (intr & IS_SBIC_IRQ)
334 1.3.2.2 thorpej sbicintr((struct sbic_softc *)sc);
335 1.3.2.2 thorpej
336 1.3.2.2 thorpej return 0; /* Pass interrupt on down the chain */
337 1.3.2.2 thorpej }
338 1.3.2.2 thorpej
339 1.3.2.2 thorpej /*
340 1.3.2.2 thorpej * limit the transfer as required.
341 1.3.2.2 thorpej */
342 1.3.2.2 thorpej void
343 1.3.2.2 thorpej asc_minphys(struct buf *bp)
344 1.3.2.2 thorpej {
345 1.3.2.2 thorpej #if 0
346 1.3.2.2 thorpej /*
347 1.3.2.2 thorpej * We must limit the DMA xfer size
348 1.3.2.2 thorpej */
349 1.3.2.2 thorpej if (bp->b_bcount > MAX_DMA_LEN) {
350 1.3.2.2 thorpej printf("asc: Reducing dma length\n");
351 1.3.2.2 thorpej bp->b_bcount = MAX_DMA_LEN;
352 1.3.2.2 thorpej }
353 1.3.2.2 thorpej #endif
354 1.3.2.2 thorpej minphys(bp);
355 1.3.2.2 thorpej }
356 1.3.2.2 thorpej
357