aac.c (85521) | aac.c (85560) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/aac/aac.c 85521 2001-10-26 06:32:21Z jhb $ | 29 * $FreeBSD: head/sys/dev/aac/aac.c 85560 2001-10-26 18:46:48Z jhb $ |
30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 391 unchanged lines hidden (view full) --- 429 /* destroy the parent DMA tag */ 430 if (sc->aac_parent_dmat) 431 bus_dma_tag_destroy(sc->aac_parent_dmat); 432 433 /* release the register window mapping */ 434 if (sc->aac_regs_resource != NULL) 435 bus_release_resource(sc->aac_dev, SYS_RES_MEMORY, 436 sc->aac_regs_rid, sc->aac_regs_resource); | 30 */ 31 32/* 33 * Driver for the Adaptec 'FSA' family of PCI/SCSI RAID adapters. 34 */ 35 36#include "opt_aac.h" 37 --- 391 unchanged lines hidden (view full) --- 429 /* destroy the parent DMA tag */ 430 if (sc->aac_parent_dmat) 431 bus_dma_tag_destroy(sc->aac_parent_dmat); 432 433 /* release the register window mapping */ 434 if (sc->aac_regs_resource != NULL) 435 bus_release_resource(sc->aac_dev, SYS_RES_MEMORY, 436 sc->aac_regs_rid, sc->aac_regs_resource); |
437#if __FreeBSD_version >= 500005 438 TASK_DESTROY(&sc->aac_task_complete); 439#endif | |
440} 441 442/* 443 * Disconnect from the controller completely, in preparation for unload. 444 */ 445int 446aac_detach(device_t dev) 447{ --- 2165 unchanged lines hidden --- | 437} 438 439/* 440 * Disconnect from the controller completely, in preparation for unload. 441 */ 442int 443aac_detach(device_t dev) 444{ --- 2165 unchanged lines hidden --- |