Deleted Added
full compact
if_dc.c (78508) if_dc.c (79472)
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 78508 2001-06-20 19:48:35Z bmilekic $
32 * $FreeBSD: head/sys/dev/dc/if_dc.c 79472 2001-07-09 17:58:42Z wpaul $
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 78508 2001-06-20 19:48:35Z bmilekic $";
136 "$FreeBSD: head/sys/dev/dc/if_dc.c 79472 2001-07-09 17:58:42Z wpaul $";
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" },

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

1771 * Handle power management nonsense.
1772 */
1773 dc_acpi(dev);
1774
1775 /*
1776 * Map control/status registers.
1777 */
1778 pci_enable_busmaster(dev);
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" },

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

1771 * Handle power management nonsense.
1772 */
1773 dc_acpi(dev);
1774
1775 /*
1776 * Map control/status registers.
1777 */
1778 pci_enable_busmaster(dev);
1779 pci_enable_io(dev, PCIM_CMD_PORTEN);
1780 pci_enable_io(dev, PCIM_CMD_MEMEN);
1779 pci_enable_io(dev, SYS_RES_IOPORT);
1780 pci_enable_io(dev, SYS_RES_MEMORY);
1781 command = pci_read_config(dev, PCIR_COMMAND, 4);
1782
1783#ifdef DC_USEIOSPACE
1784 if (!(command & PCIM_CMD_PORTEN)) {
1785 printf("dc%d: failed to enable I/O ports!\n", unit);
1786 error = ENXIO;
1787 goto fail;
1788 }

--- 1614 unchanged lines hidden ---
1781 command = pci_read_config(dev, PCIR_COMMAND, 4);
1782
1783#ifdef DC_USEIOSPACE
1784 if (!(command & PCIM_CMD_PORTEN)) {
1785 printf("dc%d: failed to enable I/O ports!\n", unit);
1786 error = ENXIO;
1787 goto fail;
1788 }

--- 1614 unchanged lines hidden ---