ahc_eisa.c (119418) | ahc_eisa.c (123579) |
---|---|
1/* 2 * FreeBSD, EISA product support functions 3 * 4 * 5 * Copyright (c) 1994-1998, 2000, 2001 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * 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 * FreeBSD, EISA product support functions 3 * 4 * 5 * Copyright (c) 1994-1998, 2000, 2001 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * 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 * $Id: ahc_eisa.c,v 1.29 2003/05/03 23:27:57 gibbs Exp $ | 29 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/ahc_eisa.c#13 $ |
30 */ 31 32#include <sys/cdefs.h> | 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/aic7xxx/ahc_eisa.c 119418 2003-08-24 17:55:58Z obrien $"); | 33__FBSDID("$FreeBSD: head/sys/dev/aic7xxx/ahc_eisa.c 123579 2003-12-17 00:02:10Z gibbs $"); |
34 35#include <dev/aic7xxx/aic7xxx_osm.h> 36 37#include <dev/eisa/eisaconf.h> 38 39static int 40aic7770_probe(device_t dev) 41{ --- 85 unchanged lines hidden (view full) --- 127 ahc = ahc_alloc(dev, name); 128 if (ahc == NULL) 129 return (ENOMEM); 130 131 ahc_set_unit(ahc, device_get_unit(dev)); 132 133 /* Allocate a dmatag for our SCB DMA maps */ 134 /* XXX Should be a child of the PCI bus dma tag */ | 34 35#include <dev/aic7xxx/aic7xxx_osm.h> 36 37#include <dev/eisa/eisaconf.h> 38 39static int 40aic7770_probe(device_t dev) 41{ --- 85 unchanged lines hidden (view full) --- 127 ahc = ahc_alloc(dev, name); 128 if (ahc == NULL) 129 return (ENOMEM); 130 131 ahc_set_unit(ahc, device_get_unit(dev)); 132 133 /* Allocate a dmatag for our SCB DMA maps */ 134 /* XXX Should be a child of the PCI bus dma tag */ |
135 error = bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, | 135 error = aic_dma_tag_create(ahc, /*parent*/NULL, /*alignment*/1, |
136 /*boundary*/0, 137 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, 138 /*highaddr*/BUS_SPACE_MAXADDR, 139 /*filter*/NULL, /*filterarg*/NULL, 140 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 141 /*nsegments*/AHC_NSEG, 142 /*maxsegsz*/AHC_MAXTRANSFER_SIZE, 143 /*flags*/0, | 136 /*boundary*/0, 137 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, 138 /*highaddr*/BUS_SPACE_MAXADDR, 139 /*filter*/NULL, /*filterarg*/NULL, 140 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 141 /*nsegments*/AHC_NSEG, 142 /*maxsegsz*/AHC_MAXTRANSFER_SIZE, 143 /*flags*/0, |
144 /*lockfunc*/busdma_lock_mutex, 145 /*lockarg*/&Giant, | |
146 &ahc->parent_dmat); 147 148 if (error != 0) { 149 printf("ahc_eisa_attach: Could not allocate DMA tag " 150 "- error %d\n", error); 151 ahc_free(ahc); 152 return (ENOMEM); 153 } --- 64 unchanged lines hidden --- | 144 &ahc->parent_dmat); 145 146 if (error != 0) { 147 printf("ahc_eisa_attach: Could not allocate DMA tag " 148 "- error %d\n", error); 149 ahc_free(ahc); 150 return (ENOMEM); 151 } --- 64 unchanged lines hidden --- |