Deleted Added
full compact
mfi_pci.c (227843) mfi_pci.c (232854)
1/*-
2 * Copyright (c) 2006 IronPort Systems
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

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

46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50 * SUCH DAMAGE.
51 */
52
53#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 IronPort Systems
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

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

46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50 * SUCH DAMAGE.
51 */
52
53#include <sys/cdefs.h>
54__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_pci.c 227843 2011-11-22 21:28:20Z marius $");
54__FBSDID("$FreeBSD: head/sys/dev/mfi/mfi_pci.c 232854 2012-03-12 08:03:51Z scottl $");
55
56/* PCI/PCI-X/PCIe bus interface for the LSI MegaSAS controllers */
57
58#include "opt_mfi.h"
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/kernel.h>

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

211 return (ENXIO);
212 }
213 sc->mfi_btag = rman_get_bustag(sc->mfi_regs_resource);
214 sc->mfi_bhandle = rman_get_bushandle(sc->mfi_regs_resource);
215
216 error = ENOMEM;
217
218 /* Allocate parent DMA tag */
55
56/* PCI/PCI-X/PCIe bus interface for the LSI MegaSAS controllers */
57
58#include "opt_mfi.h"
59
60#include <sys/param.h>
61#include <sys/systm.h>
62#include <sys/kernel.h>

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

211 return (ENXIO);
212 }
213 sc->mfi_btag = rman_get_bustag(sc->mfi_regs_resource);
214 sc->mfi_bhandle = rman_get_bushandle(sc->mfi_regs_resource);
215
216 error = ENOMEM;
217
218 /* Allocate parent DMA tag */
219 if (bus_dma_tag_create( NULL, /* parent */
219 if (bus_dma_tag_create( bus_get_dma_tag(dev), /* PCI parent */
220 1, 0, /* algnmnt, boundary */
221 BUS_SPACE_MAXADDR, /* lowaddr */
222 BUS_SPACE_MAXADDR, /* highaddr */
223 NULL, NULL, /* filter, filterarg */
224 BUS_SPACE_MAXSIZE_32BIT,/* maxsize */
225 BUS_SPACE_UNRESTRICTED, /* nsegments */
226 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */
227 0, /* flags */

--- 93 unchanged lines hidden ---
220 1, 0, /* algnmnt, boundary */
221 BUS_SPACE_MAXADDR, /* lowaddr */
222 BUS_SPACE_MAXADDR, /* highaddr */
223 NULL, NULL, /* filter, filterarg */
224 BUS_SPACE_MAXSIZE_32BIT,/* maxsize */
225 BUS_SPACE_UNRESTRICTED, /* nsegments */
226 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */
227 0, /* flags */

--- 93 unchanged lines hidden ---