bt_pci.c (48528) | bt_pci.c (49860) |
---|---|
1/* 2 * Product specific probe and attach routines for: 3 * Buslogic BT946, BT948, BT956, BT958 SCSI controllers 4 * 5 * Copyright (c) 1995, 1997, 1998 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 BT946, BT948, BT956, BT958 SCSI controllers 4 * 5 * Copyright (c) 1995, 1997, 1998 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_pci.c,v 1.7 1999/05/08 21:59:38 dfr Exp $ | 29 * $Id: bt_pci.c,v 1.8 1999/07/03 20:17:01 peter Exp $ |
30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/bus.h> 36 37#include <pci/pcireg.h> --- 129 unchanged lines hidden (view full) --- 167 error = bt_pci_alloc_resources(dev); 168 if (error) { 169 device_printf(dev, "can't allocate resources in bt_pci_attach\n"); 170 return error; 171 } 172 173 /* Allocate a dmatag for our CCB DMA maps */ 174 /* XXX Should be a child of the PCI bus dma tag */ | 30 */ 31 32#include <sys/param.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/bus.h> 36 37#include <pci/pcireg.h> --- 129 unchanged lines hidden (view full) --- 167 error = bt_pci_alloc_resources(dev); 168 if (error) { 169 device_printf(dev, "can't allocate resources in bt_pci_attach\n"); 170 return error; 171 } 172 173 /* Allocate a dmatag for our CCB DMA maps */ 174 /* XXX Should be a child of the PCI bus dma tag */ |
175 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/0, /*boundary*/0, | 175 if (bus_dma_tag_create(/*parent*/NULL, /*alignemnt*/1, /*boundary*/0, |
176 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, 177 /*highaddr*/BUS_SPACE_MAXADDR, 178 /*filter*/NULL, /*filterarg*/NULL, 179 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 180 /*nsegments*/BUS_SPACE_UNRESTRICTED, 181 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, 182 /*flags*/0, &bt->parent_dmat) != 0) { 183 bt_pci_release_resources(dev); --- 47 unchanged lines hidden --- | 176 /*lowaddr*/BUS_SPACE_MAXADDR_32BIT, 177 /*highaddr*/BUS_SPACE_MAXADDR, 178 /*filter*/NULL, /*filterarg*/NULL, 179 /*maxsize*/BUS_SPACE_MAXSIZE_32BIT, 180 /*nsegments*/BUS_SPACE_UNRESTRICTED, 181 /*maxsegsz*/BUS_SPACE_MAXSIZE_32BIT, 182 /*flags*/0, &bt->parent_dmat) != 0) { 183 bt_pci_release_resources(dev); --- 47 unchanged lines hidden --- |