amr.c (85521) | amr.c (85560) |
---|---|
1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/amr/amr.c 85521 2001-10-26 06:32:21Z jhb $ | 27 * $FreeBSD: head/sys/dev/amr/amr.c 85560 2001-10-26 18:46:48Z jhb $ |
28 */ 29 30/* 31 * Driver for the AMI MegaRaid family of controllers. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 279 unchanged lines hidden (view full) --- 315 /* cancel status timeout */ 316 untimeout(amr_periodic, sc, sc->amr_timeout); 317 318 /* throw away any command buffers */ 319 while ((acc = TAILQ_FIRST(&sc->amr_cmd_clusters)) != NULL) { 320 TAILQ_REMOVE(&sc->amr_cmd_clusters, acc, acc_link); 321 amr_freecmd_cluster(acc); 322 } | 28 */ 29 30/* 31 * Driver for the AMI MegaRaid family of controllers. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 279 unchanged lines hidden (view full) --- 315 /* cancel status timeout */ 316 untimeout(amr_periodic, sc, sc->amr_timeout); 317 318 /* throw away any command buffers */ 319 while ((acc = TAILQ_FIRST(&sc->amr_cmd_clusters)) != NULL) { 320 TAILQ_REMOVE(&sc->amr_cmd_clusters, acc, acc_link); 321 amr_freecmd_cluster(acc); 322 } |
323 324#if __FreeBSD_version >= 500005 325 TASK_DESTROY(&sc->amr_task_complete); 326#endif | |
327} 328 329/******************************************************************************* 330 * Receive a bio structure from a child device and queue it on a particular 331 * disk resource, then poke the disk resource to start as much work as it can. 332 */ 333int 334amr_submit_bio(struct amr_softc *sc, struct bio *bio) --- 1311 unchanged lines hidden --- | 323} 324 325/******************************************************************************* 326 * Receive a bio structure from a child device and queue it on a particular 327 * disk resource, then poke the disk resource to start as much work as it can. 328 */ 329int 330amr_submit_bio(struct amr_softc *sc, struct bio *bio) --- 1311 unchanged lines hidden --- |