Deleted Added
full compact
if_dc.c (70167) if_dc.c (71228)
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ee.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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 *
1/*
2 * Copyright (c) 1997, 1998, 1999
3 * Bill Paul <wpaul@ee.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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 * $FreeBSD: head/sys/dev/dc/if_dc.c 70167 2000-12-18 21:53:05Z wpaul $
32 * $FreeBSD: head/sys/dev/dc/if_dc.c 71228 2001-01-19 01:59:14Z bmilekic $
33 */
34
35/*
36 * DEC "tulip" clone ethernet driver. Supports the DEC/Intel 21143
37 * series chips and several workalikes including the following:
38 *
39 * Macronix 98713/98715/98725/98727/98732 PMAC (www.macronix.com)
40 * Macronix/Lite-On 82c115 PNIC II (www.macronix.com)

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

128
129MODULE_DEPEND(dc, miibus, 1, 1, 1);
130
131/* "controller miibus0" required. See GENERIC if you get errors here. */
132#include "miibus_if.h"
133
134#ifndef lint
135static const char rcsid[] =
33 */
34
35/*
36 * DEC "tulip" clone ethernet driver. Supports the DEC/Intel 21143
37 * series chips and several workalikes including the following:
38 *
39 * Macronix 98713/98715/98725/98727/98732 PMAC (www.macronix.com)
40 * Macronix/Lite-On 82c115 PNIC II (www.macronix.com)

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

128
129MODULE_DEPEND(dc, miibus, 1, 1, 1);
130
131/* "controller miibus0" required. See GENERIC if you get errors here. */
132#include "miibus_if.h"
133
134#ifndef lint
135static const char rcsid[] =
136 "$FreeBSD: head/sys/dev/dc/if_dc.c 70167 2000-12-18 21:53:05Z wpaul $";
136 "$FreeBSD: head/sys/dev/dc/if_dc.c 71228 2001-01-19 01:59:14Z bmilekic $";
137#endif
138
139/*
140 * Various supported device vendors/types and their names.
141 */
142static struct dc_type dc_devs[] = {
143 { DC_VENDORID_DEC, DC_DEVICEID_21143,
144 "Intel 21143 10/100BaseTX" },

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

1757 struct ifnet *ifp;
1758 u_int32_t revision;
1759 int unit, error = 0, rid, mac_offset;
1760
1761 sc = device_get_softc(dev);
1762 unit = device_get_unit(dev);
1763 bzero(sc, sizeof(struct dc_softc));
1764
137#endif
138
139/*
140 * Various supported device vendors/types and their names.
141 */
142static struct dc_type dc_devs[] = {
143 { DC_VENDORID_DEC, DC_DEVICEID_21143,
144 "Intel 21143 10/100BaseTX" },

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

1757 struct ifnet *ifp;
1758 u_int32_t revision;
1759 int unit, error = 0, rid, mac_offset;
1760
1761 sc = device_get_softc(dev);
1762 unit = device_get_unit(dev);
1763 bzero(sc, sizeof(struct dc_softc));
1764
1765 mtx_init(&sc->dc_mtx, device_get_nameunit(dev), MTX_DEF);
1765 mtx_init(&sc->dc_mtx, device_get_nameunit(dev), MTX_DEF | MTX_RECURSE);
1766 DC_LOCK(sc);
1767
1768 /*
1769 * Handle power management nonsense.
1770 */
1771 dc_acpi(dev);
1772
1773 /*

--- 1592 unchanged lines hidden ---
1766 DC_LOCK(sc);
1767
1768 /*
1769 * Handle power management nonsense.
1770 */
1771 dc_acpi(dev);
1772
1773 /*

--- 1592 unchanged lines hidden ---