if_rl.c (165314) | if_rl.c (166165) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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) 1997, 1998 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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: head/sys/pci/if_rl.c 165311 2006-12-18 01:38:10Z yongari $"); | 34__FBSDID("$FreeBSD: head/sys/pci/if_rl.c 166165 2007-01-21 19:32:51Z marius $"); |
35 36/* 37 * RealTek 8129/8139 PCI NIC driver 38 * 39 * Supports several extremely cheap PCI 10/100 adapters based on 40 * the RealTek chipset. Datasheets can be obtained from 41 * www.realtek.com.tw. 42 * --- 837 unchanged lines hidden (view full) --- 880 error = ENXIO; 881 goto fail; 882 } 883 884 /* 885 * Allocate the parent bus DMA tag appropriate for PCI. 886 */ 887#define RL_NSEG_NEW 32 | 35 36/* 37 * RealTek 8129/8139 PCI NIC driver 38 * 39 * Supports several extremely cheap PCI 10/100 adapters based on 40 * the RealTek chipset. Datasheets can be obtained from 41 * www.realtek.com.tw. 42 * --- 837 unchanged lines hidden (view full) --- 880 error = ENXIO; 881 goto fail; 882 } 883 884 /* 885 * Allocate the parent bus DMA tag appropriate for PCI. 886 */ 887#define RL_NSEG_NEW 32 |
888 error = bus_dma_tag_create(NULL, /* parent */ | 888 error = bus_dma_tag_create(bus_get_dma_tag(dev), /* parent */ |
889 1, 0, /* alignment, boundary */ 890 BUS_SPACE_MAXADDR_32BIT,/* lowaddr */ 891 BUS_SPACE_MAXADDR, /* highaddr */ 892 NULL, NULL, /* filter, filterarg */ 893 MAXBSIZE, RL_NSEG_NEW, /* maxsize, nsegments */ 894 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ 895 BUS_DMA_ALLOCNOW, /* flags */ 896 NULL, NULL, /* lockfunc, lockarg */ --- 916 unchanged lines hidden --- | 889 1, 0, /* alignment, boundary */ 890 BUS_SPACE_MAXADDR_32BIT,/* lowaddr */ 891 BUS_SPACE_MAXADDR, /* highaddr */ 892 NULL, NULL, /* filter, filterarg */ 893 MAXBSIZE, RL_NSEG_NEW, /* maxsize, nsegments */ 894 BUS_SPACE_MAXSIZE_32BIT,/* maxsegsize */ 895 BUS_DMA_ALLOCNOW, /* flags */ 896 NULL, NULL, /* lockfunc, lockarg */ --- 916 unchanged lines hidden --- |