Deleted Added
full compact
dpt_pci.c (46813) dpt_pci.c (49860)
1/*
2 * Copyright (c) 1997 by Simon Shapiro
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

27 * SUCH DAMAGE.
28 *
29 */
30
31/*
32 * dptpci.c: PCI Bus Attachment for DPT SCSI HBAs
33 */
34
1/*
2 * Copyright (c) 1997 by Simon Shapiro
3 * All Rights Reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

27 * SUCH DAMAGE.
28 *
29 */
30
31/*
32 * dptpci.c: PCI Bus Attachment for DPT SCSI HBAs
33 */
34
35#ident "$Id: dpt_pci.c,v 1.12 1999/04/24 20:13:58 peter Exp $"
35#ident "$Id: dpt_pci.c,v 1.13 1999/05/09 17:06:44 peter Exp $"
36
37#include "opt_devfs.h"
38#include "opt_dpt.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/buf.h>

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

153 bsh = io_base + 0x10;
154 }
155
156 if ((dpt = dpt_alloc(unit, tag, bsh)) == NULL)
157 return; /* XXX PCI code should take return status */
158
159 /* Allocate a dmatag representing the capabilities of this attachment */
160 /* XXX Should be a child of the PCI bus dma tag */
36
37#include "opt_devfs.h"
38#include "opt_dpt.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/malloc.h>
43#include <sys/buf.h>

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

153 bsh = io_base + 0x10;
154 }
155
156 if ((dpt = dpt_alloc(unit, tag, bsh)) == NULL)
157 return; /* XXX PCI code should take return status */
158
159 /* Allocate a dmatag representing the capabilities of this attachment */
160 /* XXX Should be a child of the PCI bus dma tag */
161 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0,
161 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0,
162 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
163 /*highaddr*/BUS_SPACE_MAXADDR,
164 /*filter*/NULL, /*filterarg*/NULL,
165 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,
166 /*nsegments*/BUS_SPACE_UNRESTRICTED,
167 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
168 /*flags*/0, &dpt->parent_dmat) != 0) {
169 dpt_free(dpt);

--- 18 unchanged lines hidden ---
162 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT,
163 /*highaddr*/BUS_SPACE_MAXADDR,
164 /*filter*/NULL, /*filterarg*/NULL,
165 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT,
166 /*nsegments*/BUS_SPACE_UNRESTRICTED,
167 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT,
168 /*flags*/0, &dpt->parent_dmat) != 0) {
169 dpt_free(dpt);

--- 18 unchanged lines hidden ---