mly.c (85521) | mly.c (85560) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 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) 2000, 2001 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/mly/mly.c 85521 2001-10-26 06:32:21Z jhb $ | 27 * $FreeBSD: head/sys/dev/mly/mly.c 85560 2001-10-26 18:46:48Z jhb $ |
28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 691 unchanged lines hidden (view full) --- 727 728 /* destroy the parent DMA tag */ 729 if (sc->mly_parent_dmat) 730 bus_dma_tag_destroy(sc->mly_parent_dmat); 731 732 /* release the register window mapping */ 733 if (sc->mly_regs_resource != NULL) 734 bus_release_resource(sc->mly_dev, SYS_RES_MEMORY, sc->mly_regs_rid, sc->mly_regs_resource); | 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 691 unchanged lines hidden (view full) --- 727 728 /* destroy the parent DMA tag */ 729 if (sc->mly_parent_dmat) 730 bus_dma_tag_destroy(sc->mly_parent_dmat); 731 732 /* release the register window mapping */ 733 if (sc->mly_regs_resource != NULL) 734 bus_release_resource(sc->mly_dev, SYS_RES_MEMORY, sc->mly_regs_rid, sc->mly_regs_resource); |
735 736#if __FreeBSD_version >= 500005 737 TASK_DESTROY(&sc->mly_task_complete); 738#endif | |
739} 740 741/******************************************************************************** 742 ******************************************************************************** 743 Command Wrappers 744 ******************************************************************************** 745 ********************************************************************************/ 746 --- 2200 unchanged lines hidden --- | 735} 736 737/******************************************************************************** 738 ******************************************************************************** 739 Command Wrappers 740 ******************************************************************************** 741 ********************************************************************************/ 742 --- 2200 unchanged lines hidden --- |