Deleted Added
full compact
if_fxp.c (35210) if_fxp.c (35256)
1/*
2 * Copyright (c) 1995, David Greenman
3 * All rights reserved.
4 *
5 * Modifications to support NetBSD and media selection:
6 * Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
1/*
2 * Copyright (c) 1995, David Greenman
3 * All rights reserved.
4 *
5 * Modifications to support NetBSD and media selection:
6 * Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: if_fxp.c,v 1.50 1998/03/03 14:19:07 dg Exp $
30 * $Id: if_fxp.c,v 1.51 1998/04/15 17:47:02 bde Exp $
31 */
32
33/*
34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
35 */
36
37#include "bpfilter.h"
38

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

1469 ifmr->ifm_active = IFM_ETHER|IFM_MANUAL; /* XXX IFM_AUTO ? */
1470 }
1471}
1472
1473/*
1474 * Add a buffer to the end of the RFA buffer list.
1475 * Return 0 if successful, 1 for failure. A failure results in
1476 * adding the 'oldm' (if non-NULL) on to the end of the list -
31 */
32
33/*
34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
35 */
36
37#include "bpfilter.h"
38

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

1469 ifmr->ifm_active = IFM_ETHER|IFM_MANUAL; /* XXX IFM_AUTO ? */
1470 }
1471}
1472
1473/*
1474 * Add a buffer to the end of the RFA buffer list.
1475 * Return 0 if successful, 1 for failure. A failure results in
1476 * adding the 'oldm' (if non-NULL) on to the end of the list -
1477 * tossing out it's old contents and recycling it.
1477 * tossing out its old contents and recycling it.
1478 * The RFA struct is stuck at the beginning of mbuf cluster and the
1479 * data pointer is fixed up to point just past it.
1480 */
1481static int
1482fxp_add_rfabuf(sc, oldm)
1483 struct fxp_softc *sc;
1484 struct mbuf *oldm;
1485{

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

1688
1689/*
1690 * Program the multicast filter.
1691 *
1692 * We have an artificial restriction that the multicast setup command
1693 * must be the first command in the chain, so we take steps to ensure
1694 * that. By requiring this, it allows us to keep the performance of
1695 * the pre-initialized command ring (esp. link pointers) by not actually
1478 * The RFA struct is stuck at the beginning of mbuf cluster and the
1479 * data pointer is fixed up to point just past it.
1480 */
1481static int
1482fxp_add_rfabuf(sc, oldm)
1483 struct fxp_softc *sc;
1484 struct mbuf *oldm;
1485{

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

1688
1689/*
1690 * Program the multicast filter.
1691 *
1692 * We have an artificial restriction that the multicast setup command
1693 * must be the first command in the chain, so we take steps to ensure
1694 * that. By requiring this, it allows us to keep the performance of
1695 * the pre-initialized command ring (esp. link pointers) by not actually
1696 * inserting the mcsetup command in the ring - i.e. it's link pointer
1696 * inserting the mcsetup command in the ring - i.e. its link pointer
1697 * points to the TxCB ring, but the mcsetup descriptor itself is not part
1698 * of it. We then can do 'CU_START' on the mcsetup descriptor and have it
1699 * lead into the regular TxCB ring when it completes.
1700 *
1701 * This function must be called at splimp.
1702 */
1703static void
1704fxp_mc_setup(sc)

--- 59 unchanged lines hidden ---
1697 * points to the TxCB ring, but the mcsetup descriptor itself is not part
1698 * of it. We then can do 'CU_START' on the mcsetup descriptor and have it
1699 * lead into the regular TxCB ring when it completes.
1700 *
1701 * This function must be called at splimp.
1702 */
1703static void
1704fxp_mc_setup(sc)

--- 59 unchanged lines hidden ---