1/*- 2 * Copyright (c) 2006-2008 Sam Leffler. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 9 unchanged lines hidden (view full) --- 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 */ 24 25#include <sys/cdefs.h> |
26__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/if_npe.c 207554 2010-05-03 07:32:50Z sobomax $"); |
27 28/* 29 * Intel XScale NPE Ethernet driver. 30 * 31 * This driver handles the two ports present on the IXP425. 32 * Packet processing is done by the Network Processing Engines 33 * (NPE's) that work together with a MAC and PHY. The MAC 34 * is also mapped to the XScale cpu; the PHY is accessed via --- 320 unchanged lines hidden (view full) --- 355 356 ifp->if_softc = sc; 357 if_initname(ifp, device_get_name(dev), device_get_unit(dev)); 358 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 359 ifp->if_start = npestart; 360 ifp->if_ioctl = npeioctl; 361 ifp->if_init = npeinit; 362 IFQ_SET_MAXLEN(&ifp->if_snd, sc->txdma.nbuf - 1); |
363 ifp->if_snd.ifq_drv_maxlen = ifqmaxlen; |
364 IFQ_SET_READY(&ifp->if_snd); 365 ifp->if_linkmib = &sc->mibdata; 366 ifp->if_linkmiblen = sizeof(sc->mibdata); 367 sc->mibdata.dot3Compliance = DOT3COMPLIANCE_STATS; 368 /* device supports oversided vlan frames */ 369 ifp->if_capabilities |= IFCAP_VLAN_MTU; 370 ifp->if_capenable = ifp->if_capabilities; 371#ifdef DEVICE_POLLING --- 1408 unchanged lines hidden --- |