Deleted Added
full compact
ahb.c (49360) ahb.c (49860)
1/*
2 * CAM SCSI device driver for the Adaptec 174X SCSI Host adapter
3 *
4 * Copyright (c) 1998 Justin T. Gibbs
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*
2 * CAM SCSI device driver for the Adaptec 174X SCSI Host adapter
3 *
4 * Copyright (c) 1998 Justin T. Gibbs
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $Id: ahb.c,v 1.12 1999/05/08 21:59:17 dfr Exp $
28 * $Id: ahb.c,v 1.13 1999/08/01 22:57:08 mdodd Exp $
29 */
30
31#include "eisa.h"
32#if NEISA > 0
33#include <stddef.h> /* For offsetof() */
34
35#include <sys/param.h>
36#include <sys/systm.h>

--- 257 unchanged lines hidden (view full) ---

294
295 /*
296 * Create our DMA tags. These tags define the kinds of device
297 * accessable memory allocations and memory mappings we will
298 * need to perform during normal operation.
299 */
300 /* DMA tag for mapping buffers into device visible space. */
301 /* XXX Should be a child of the EISA bus dma tag */
29 */
30
31#include "eisa.h"
32#if NEISA > 0
33#include <stddef.h> /* For offsetof() */
34
35#include <sys/param.h>
36#include <sys/systm.h>

--- 257 unchanged lines hidden (view full) ---

294
295 /*
296 * Create our DMA tags. These tags define the kinds of device
297 * accessable memory allocations and memory mappings we will
298 * need to perform during normal operation.
299 */
300 /* DMA tag for mapping buffers into device visible space. */
301 /* XXX Should be a child of the EISA bus dma tag */
302 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/0, /*boundary*/0,
302 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0,
303 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
304 /*highaddr*/BUS_SPACE_MAXADDR,
305 /*filter*/NULL, /*filterarg*/NULL,
306 /*maxsize*/MAXBSIZE, /*nsegments*/AHB_NSEG,
307 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
308 /*flags*/BUS_DMA_ALLOCNOW,
309 &ahb->buffer_dmat) != 0)
310 goto error_exit;
311
312 ahb->init_level++;
313
314 /* DMA tag for our ccb structures and ha inquiry data */
303 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
304 /*highaddr*/BUS_SPACE_MAXADDR,
305 /*filter*/NULL, /*filterarg*/NULL,
306 /*maxsize*/MAXBSIZE, /*nsegments*/AHB_NSEG,
307 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
308 /*flags*/BUS_DMA_ALLOCNOW,
309 &ahb->buffer_dmat) != 0)
310 goto error_exit;
311
312 ahb->init_level++;
313
314 /* DMA tag for our ccb structures and ha inquiry data */
315 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/0, /*boundary*/0,
315 if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/1, /*boundary*/0,
316 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
317 /*highaddr*/BUS_SPACE_MAXADDR,
318 /*filter*/NULL, /*filterarg*/NULL,
319 (AHB_NECB * sizeof(struct ecb))
320 + sizeof(*ahb->ha_inq_data),
321 /*nsegments*/1,
322 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
323 /*flags*/0, &ahb->ecb_dmat) != 0)

--- 1041 unchanged lines hidden ---
316 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
317 /*highaddr*/BUS_SPACE_MAXADDR,
318 /*filter*/NULL, /*filterarg*/NULL,
319 (AHB_NECB * sizeof(struct ecb))
320 + sizeof(*ahb->ha_inq_data),
321 /*nsegments*/1,
322 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
323 /*flags*/0, &ahb->ecb_dmat) != 0)

--- 1041 unchanged lines hidden ---