bt_isa.c (48307) | bt_isa.c (49860) |
---|---|
1/* 2 * Product specific probe and attach routines for: 3 * Buslogic BT-54X and BT-445 cards 4 * 5 * Copyright (c) 1998, 1999 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 * Product specific probe and attach routines for: 3 * Buslogic BT-54X and BT-445 cards 4 * 5 * Copyright (c) 1998, 1999 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: bt_isa.c,v 1.14 1999/06/03 20:56:09 peter Exp $ | 29 * $Id: bt_isa.c,v 1.15 1999/06/28 09:19:58 peter Exp $ |
30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/bus.h> 37 --- 191 unchanged lines hidden (view full) --- 229 filter = btvlbouncefilter; 230 filter_arg = bt; 231 } else { 232 lowaddr = BUS_SPACE_MAXADDR_32BIT; 233 } 234 } 235 236 /* XXX Should be a child of the ISA or VL bus dma tag */ | 30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/module.h> 36#include <sys/bus.h> 37 --- 191 unchanged lines hidden (view full) --- 229 filter = btvlbouncefilter; 230 filter_arg = bt; 231 } else { 232 lowaddr = BUS_SPACE_MAXADDR_32BIT; 233 } 234 } 235 236 /* XXX Should be a child of the ISA or VL bus dma tag */ |
237 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0, | 237 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0, |
238 lowaddr, /*highaddr*/BUS_SPACE_MAXADDR, 239 filter, filter_arg, 240 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 241 /*nsegments*/BUS_SPACE_UNRESTRICTED, 242 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, 243 /*flags*/0, &bt->parent_dmat) != 0) { 244 bt_isa_release_resources(dev); 245 return (ENOMEM); 246 } 247 248 error = bt_init(dev); 249 if (error) { 250 bt_isa_release_resources(dev); 251 return (ENOMEM); 252 } 253 254 if (lowaddr != BUS_SPACE_MAXADDR_32BIT) { 255 /* DMA tag for our sense buffers */ | 238 lowaddr, /*highaddr*/BUS_SPACE_MAXADDR, 239 filter, filter_arg, 240 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 241 /*nsegments*/BUS_SPACE_UNRESTRICTED, 242 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, 243 /*flags*/0, &bt->parent_dmat) != 0) { 244 bt_isa_release_resources(dev); 245 return (ENOMEM); 246 } 247 248 error = bt_init(dev); 249 if (error) { 250 bt_isa_release_resources(dev); 251 return (ENOMEM); 252 } 253 254 if (lowaddr != BUS_SPACE_MAXADDR_32BIT) { 255 /* DMA tag for our sense buffers */ |
256 if (bus_dma_tag_create(bt->parent_dmat, /*alignment*/0, | 256 if (bus_dma_tag_create(bt->parent_dmat, /*alignment*/1, |
257 /*boundary*/0, 258 /*lowaddr*/BUS_SPACE_MAXADDR, 259 /*highaddr*/BUS_SPACE_MAXADDR, 260 /*filter*/NULL, /*filterarg*/NULL, 261 bt->max_ccbs 262 * sizeof(struct scsi_sense_data), 263 /*nsegments*/1, 264 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, --- 79 unchanged lines hidden --- | 257 /*boundary*/0, 258 /*lowaddr*/BUS_SPACE_MAXADDR, 259 /*highaddr*/BUS_SPACE_MAXADDR, 260 /*filter*/NULL, /*filterarg*/NULL, 261 bt->max_ccbs 262 * sizeof(struct scsi_sense_data), 263 /*nsegments*/1, 264 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, --- 79 unchanged lines hidden --- |