Deleted Added
full compact
if_sn.c (331722) if_sn.c (347962)
1/*-
2 * Copyright (c) 1996 Gardner Buchanan <gbuchanan@shl.com>
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

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

25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1996 Gardner Buchanan <gbuchanan@shl.com>
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

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

25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: stable/11/sys/dev/sn/if_sn.c 331722 2018-03-29 02:50:57Z eadler $");
33__FBSDID("$FreeBSD: stable/11/sys/dev/sn/if_sn.c 347962 2019-05-18 20:43:13Z brooks $");
34
35/*
36 * This is a driver for SMC's 9000 series of Ethernet adapters.
37 *
38 * This FreeBSD driver is derived from the smc9194 Linux driver by
39 * Erik Stahlman and is Copyright (C) 1996 by Erik Stahlman.
40 * This driver also shamelessly borrows from the FreeBSD ep driver
41 * which is Copyright (C) 1994 Herb Peyerl <hpeyerl@novatel.ca>

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

220 * during startup to avoid LORs in the network layer.
221 */
222 if ((err = bus_setup_intr(dev, sc->irq_res,
223 INTR_TYPE_NET | INTR_MPSAFE, NULL, sn_intr, sc,
224 &sc->intrhand)) != 0) {
225 sn_detach(dev);
226 return err;
227 }
34
35/*
36 * This is a driver for SMC's 9000 series of Ethernet adapters.
37 *
38 * This FreeBSD driver is derived from the smc9194 Linux driver by
39 * Erik Stahlman and is Copyright (C) 1996 by Erik Stahlman.
40 * This driver also shamelessly borrows from the FreeBSD ep driver
41 * which is Copyright (C) 1994 Herb Peyerl <hpeyerl@novatel.ca>

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

220 * during startup to avoid LORs in the network layer.
221 */
222 if ((err = bus_setup_intr(dev, sc->irq_res,
223 INTR_TYPE_NET | INTR_MPSAFE, NULL, sn_intr, sc,
224 &sc->intrhand)) != 0) {
225 sn_detach(dev);
226 return err;
227 }
228
229 gone_by_fcp101_dev(dev);
230
228 return 0;
229}
230
231
232int
233sn_detach(device_t dev)
234{
235 struct sn_softc *sc = device_get_softc(dev);

--- 1201 unchanged lines hidden ---
231 return 0;
232}
233
234
235int
236sn_detach(device_t dev)
237{
238 struct sn_softc *sc = device_get_softc(dev);

--- 1201 unchanged lines hidden ---