if_le_pci.c (159271) | if_le_pci.c (166138) |
---|---|
1/* $NetBSD: if_le_pci.c,v 1.43 2005/12/11 12:22:49 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace --- 58 unchanged lines hidden (view full) --- 67 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 68 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 69 * SUCH DAMAGE. 70 * 71 * @(#)if_le.c 8.2 (Berkeley) 11/16/93 72 */ 73 74#include <sys/cdefs.h> | 1/* $NetBSD: if_le_pci.c,v 1.43 2005/12/11 12:22:49 christos Exp $ */ 2 3/*- 4 * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Charles M. Hannum and by Jason R. Thorpe of the Numerical Aerospace --- 58 unchanged lines hidden (view full) --- 67 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 68 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 69 * SUCH DAMAGE. 70 * 71 * @(#)if_le.c 8.2 (Berkeley) 11/16/93 72 */ 73 74#include <sys/cdefs.h> |
75__FBSDID("$FreeBSD: head/sys/dev/le/if_le_pci.c 159271 2006-06-05 15:14:14Z marius $"); | 75__FBSDID("$FreeBSD: head/sys/dev/le/if_le_pci.c 166138 2007-01-20 09:57:09Z marius $"); |
76 77#include <sys/param.h> 78#include <sys/systm.h> 79#include <sys/bus.h> 80#include <sys/endian.h> 81#include <sys/kernel.h> 82#include <sys/lock.h> 83#include <sys/module.h> --- 253 unchanged lines hidden (view full) --- 337 if ((lesc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, 338 &lesc->sc_irid, RF_SHAREABLE | RF_ACTIVE)) == NULL) { 339 device_printf(dev, "cannot allocate interrupt\n"); 340 error = ENXIO; 341 goto fail_rres; 342 } 343 344 error = bus_dma_tag_create( | 76 77#include <sys/param.h> 78#include <sys/systm.h> 79#include <sys/bus.h> 80#include <sys/endian.h> 81#include <sys/kernel.h> 82#include <sys/lock.h> 83#include <sys/module.h> --- 253 unchanged lines hidden (view full) --- 337 if ((lesc->sc_ires = bus_alloc_resource_any(dev, SYS_RES_IRQ, 338 &lesc->sc_irid, RF_SHAREABLE | RF_ACTIVE)) == NULL) { 339 device_printf(dev, "cannot allocate interrupt\n"); 340 error = ENXIO; 341 goto fail_rres; 342 } 343 344 error = bus_dma_tag_create( |
345 NULL, /* parent */ | 345 bus_get_dma_tag(dev), /* parent */ |
346 1, 0, /* alignment, boundary */ 347 BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ 348 BUS_SPACE_MAXADDR, /* highaddr */ 349 NULL, NULL, /* filter, filterarg */ 350 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */ 351 0, /* nsegments */ 352 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */ 353 BUS_DMA_WAITOK, /* flags */ --- 163 unchanged lines hidden --- | 346 1, 0, /* alignment, boundary */ 347 BUS_SPACE_MAXADDR_32BIT, /* lowaddr */ 348 BUS_SPACE_MAXADDR, /* highaddr */ 349 NULL, NULL, /* filter, filterarg */ 350 BUS_SPACE_MAXSIZE_32BIT, /* maxsize */ 351 0, /* nsegments */ 352 BUS_SPACE_MAXSIZE_32BIT, /* maxsegsize */ 353 BUS_DMA_WAITOK, /* flags */ --- 163 unchanged lines hidden --- |