if_ndis_pci.c (281826) | if_ndis_pci.c (292614) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/10/sys/dev/if_ndis/if_ndis_pci.c 281826 2015-04-21 11:27:50Z mav $"); | 34__FBSDID("$FreeBSD: stable/10/sys/dev/if_ndis/if_ndis_pci.c 292614 2015-12-22 18:39:07Z glebius $"); |
35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/socket.h> 41#include <sys/queue.h> 42#include <sys/sysctl.h> --- 247 unchanged lines hidden (view full) --- 290 * Allocate the parent bus DMA tag appropriate for PCI. 291 */ 292#define NDIS_NSEG_NEW 32 293 error = bus_dma_tag_create(bus_get_dma_tag(dev),/* PCI parent */ 294 1, 0, /* alignment, boundary */ 295 BUS_SPACE_MAXADDR_32BIT,/* lowaddr */ 296 BUS_SPACE_MAXADDR, /* highaddr */ 297 NULL, NULL, /* filter, filterarg */ | 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/socket.h> 41#include <sys/queue.h> 42#include <sys/sysctl.h> --- 247 unchanged lines hidden (view full) --- 290 * Allocate the parent bus DMA tag appropriate for PCI. 291 */ 292#define NDIS_NSEG_NEW 32 293 error = bus_dma_tag_create(bus_get_dma_tag(dev),/* PCI parent */ 294 1, 0, /* alignment, boundary */ 295 BUS_SPACE_MAXADDR_32BIT,/* lowaddr */ 296 BUS_SPACE_MAXADDR, /* highaddr */ 297 NULL, NULL, /* filter, filterarg */ |
298 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */ 299 NDIS_NSEG_NEW, /* nsegments */ | 298 DFLTPHYS, NDIS_NSEG_NEW,/* maxsize, nsegments */ |
300 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ 301 BUS_DMA_ALLOCNOW, /* flags */ 302 NULL, NULL, /* lockfunc, lockarg */ 303 &sc->ndis_parent_tag); 304 305 if (error) 306 goto fail; 307 --- 43 unchanged lines hidden --- | 299 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ 300 BUS_DMA_ALLOCNOW, /* flags */ 301 NULL, NULL, /* lockfunc, lockarg */ 302 &sc->ndis_parent_tag); 303 304 if (error) 305 goto fail; 306 --- 43 unchanged lines hidden --- |