Deleted Added
full compact
if_fxp.c (22253) if_fxp.c (22255)
1/*
2 * Copyright (c) 1995, David Greenman
3 * 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

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*
2 * Copyright (c) 1995, David Greenman
3 * 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

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/fxp/if_fxp.c 22253 1997-02-04 07:39:28Z dg $
27 * $FreeBSD: head/sys/dev/fxp/if_fxp.c 22255 1997-02-04 10:53:12Z dg $
28 */
29
30/*
31 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
32 */
33
34#include "bpfilter.h"
35

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

238 */
239 if (!pci_map_mem(config_id, FXP_PCI_MMBA,
240 (vm_offset_t *)&sc->csr, &pbase)) {
241 printf("fxp%d: couldn't map memory\n", unit);
242 goto fail;
243 }
244
245 /*
28 */
29
30/*
31 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver
32 */
33
34#include "bpfilter.h"
35

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

238 */
239 if (!pci_map_mem(config_id, FXP_PCI_MMBA,
240 (vm_offset_t *)&sc->csr, &pbase)) {
241 printf("fxp%d: couldn't map memory\n", unit);
242 goto fail;
243 }
244
245 /*
246 * Issue a software reset.
246 * Reset to a stable state.
247 */
247 */
248 sc->csr->port = 0;
248 sc->csr->port = FXP_PORT_SELECTIVE_RESET;
249 DELAY(10);
250
251 /*
252 * Allocate our interrupt.
253 */
254 if (!pci_map_int(config_id, fxp_intr, sc, &net_imask)) {
255 printf("fxp%d: couldn't map interrupt\n", unit);
256 goto fail;

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

734 /*
735 * Cancel stats updater.
736 */
737 untimeout(fxp_stats_update, sc);
738
739 /*
740 * Issue software reset
741 */
249 DELAY(10);
250
251 /*
252 * Allocate our interrupt.
253 */
254 if (!pci_map_int(config_id, fxp_intr, sc, &net_imask)) {
255 printf("fxp%d: couldn't map interrupt\n", unit);
256 goto fail;

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

734 /*
735 * Cancel stats updater.
736 */
737 untimeout(fxp_stats_update, sc);
738
739 /*
740 * Issue software reset
741 */
742 sc->csr->port = 0;
742 sc->csr->port = FXP_PORT_SELECTIVE_RESET;
743 DELAY(10);
744
745 /*
746 * Release any xmit buffers.
747 */
748 for (txp = sc->cbl_first; txp != NULL && txp->mb_head != NULL;
749 txp = txp->next) {
750 m_freem(txp->mb_head);

--- 318 unchanged lines hidden ---
743 DELAY(10);
744
745 /*
746 * Release any xmit buffers.
747 */
748 for (txp = sc->cbl_first; txp != NULL && txp->mb_head != NULL;
749 txp = txp->next) {
750 m_freem(txp->mb_head);

--- 318 unchanged lines hidden ---