Deleted Added
full compact
if_wb.c (213894) if_wb.c (214913)
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/dev/wb/if_wb.c 213894 2010-10-15 15:00:30Z marius $");
34__FBSDID("$FreeBSD: head/sys/dev/wb/if_wb.c 214913 2010-11-07 12:29:26Z marius $");
35
36/*
37 * Winbond fast ethernet PCI NIC driver
38 *
39 * Supports various cheap network adapters based on the Winbond W89C840F
40 * fast ethernet controller chip. This includes adapters manufactured by
41 * Winbond itself and some made by Linksys.
42 *

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

852 ifp->if_init = wb_init;
853 ifp->if_snd.ifq_maxlen = WB_TX_LIST_CNT - 1;
854
855 /*
856 * Do MII setup.
857 */
858 error = mii_attach(dev, &sc->wb_miibus, ifp, wb_ifmedia_upd,
859 wb_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0);
35
36/*
37 * Winbond fast ethernet PCI NIC driver
38 *
39 * Supports various cheap network adapters based on the Winbond W89C840F
40 * fast ethernet controller chip. This includes adapters manufactured by
41 * Winbond itself and some made by Linksys.
42 *

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

852 ifp->if_init = wb_init;
853 ifp->if_snd.ifq_maxlen = WB_TX_LIST_CNT - 1;
854
855 /*
856 * Do MII setup.
857 */
858 error = mii_attach(dev, &sc->wb_miibus, ifp, wb_ifmedia_upd,
859 wb_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0);
860 if (error != 0) {
860 if (error != 0) {
861 device_printf(dev, "attaching PHYs failed\n");
862 goto fail;
863 }
864
865 /*
866 * Call MI attach routine.
867 */
868 ether_ifattach(ifp, eaddr);

--- 977 unchanged lines hidden ---
861 device_printf(dev, "attaching PHYs failed\n");
862 goto fail;
863 }
864
865 /*
866 * Call MI attach routine.
867 */
868 ether_ifattach(ifp, eaddr);

--- 977 unchanged lines hidden ---