Deleted Added
full compact
if_cs.c (331722) if_cs.c (347962)
1/*-
2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko.
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

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

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 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko.
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

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

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 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: stable/11/sys/dev/cs/if_cs.c 331722 2018-03-29 02:50:57Z eadler $");
30__FBSDID("$FreeBSD: stable/11/sys/dev/cs/if_cs.c 347962 2019-05-18 20:43:13Z brooks $");
31
32/*
33 *
34 * Device driver for Crystal Semiconductor CS8920 based ethernet
35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997
36 */
37
38/*

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

567 ether_ifdetach(ifp);
568 free(sc->buffer, M_DEVBUF);
569 if_free(ifp);
570 mtx_destroy(&sc->lock);
571 cs_release_resources(dev);
572 return (error);
573 }
574
31
32/*
33 *
34 * Device driver for Crystal Semiconductor CS8920 based ethernet
35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997
36 */
37
38/*

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

567 ether_ifdetach(ifp);
568 free(sc->buffer, M_DEVBUF);
569 if_free(ifp);
570 mtx_destroy(&sc->lock);
571 cs_release_resources(dev);
572 return (error);
573 }
574
575 gone_by_fcp101_dev(dev);
576
575 return (0);
576}
577
578int
579cs_detach(device_t dev)
580{
581 struct cs_softc *sc;
582 struct ifnet *ifp;

--- 643 unchanged lines hidden ---
577 return (0);
578}
579
580int
581cs_detach(device_t dev)
582{
583 struct cs_softc *sc;
584 struct ifnet *ifp;

--- 643 unchanged lines hidden ---