Deleted Added
full compact
if_lge.c (109623) if_lge.c (111119)
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001
4 * Bill Paul <william.paul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001
4 * Bill Paul <william.paul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/lge/if_lge.c 109623 2003-01-21 08:56:16Z alfred $
33 * $FreeBSD: head/sys/dev/lge/if_lge.c 111119 2003-02-19 05:47:46Z imp $
34 */
35
36/*
37 * Level 1 LXT1001 gigabit ethernet driver for FreeBSD. Public
38 * documentation not available, but ask me nicely.
39 *
40 * Written by Bill Paul <william.paul@windriver.com>
41 * Wind River Systems

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

109
110#include <dev/lge/if_lgereg.h>
111
112/* "controller miibus0" required. See GENERIC if you get errors here. */
113#include "miibus_if.h"
114
115#ifndef lint
116static const char rcsid[] =
34 */
35
36/*
37 * Level 1 LXT1001 gigabit ethernet driver for FreeBSD. Public
38 * documentation not available, but ask me nicely.
39 *
40 * Written by Bill Paul <william.paul@windriver.com>
41 * Wind River Systems

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

109
110#include <dev/lge/if_lgereg.h>
111
112/* "controller miibus0" required. See GENERIC if you get errors here. */
113#include "miibus_if.h"
114
115#ifndef lint
116static const char rcsid[] =
117 "$FreeBSD: head/sys/dev/lge/if_lge.c 109623 2003-01-21 08:56:16Z alfred $";
117 "$FreeBSD: head/sys/dev/lge/if_lge.c 111119 2003-02-19 05:47:46Z imp $";
118#endif
119
120/*
121 * Various supported device vendors/types and their names.
122 */
123static struct lge_type lge_devs[] = {
124 { LGE_VENDORID, LGE_DEVICEID, "Level 1 Gigabit Ethernet" },
125 { 0, 0, NULL }

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

779 struct lge_softc *sc;
780 struct lge_rx_desc *c;
781 struct mbuf *m;
782{
783 struct mbuf *m_new = NULL;
784 caddr_t *buf = NULL;
785
786 if (m == NULL) {
118#endif
119
120/*
121 * Various supported device vendors/types and their names.
122 */
123static struct lge_type lge_devs[] = {
124 { LGE_VENDORID, LGE_DEVICEID, "Level 1 Gigabit Ethernet" },
125 { 0, 0, NULL }

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

779 struct lge_softc *sc;
780 struct lge_rx_desc *c;
781 struct mbuf *m;
782{
783 struct mbuf *m_new = NULL;
784 caddr_t *buf = NULL;
785
786 if (m == NULL) {
787 MGETHDR(m_new, M_NOWAIT, MT_DATA);
787 MGETHDR(m_new, M_DONTWAIT, MT_DATA);
788 if (m_new == NULL) {
789 printf("lge%d: no memory for rx list "
790 "-- packet dropped!\n", sc->lge_unit);
791 return(ENOBUFS);
792 }
793
794 /* Allocate the jumbo buffer */
795 buf = lge_jalloc(sc);

--- 848 unchanged lines hidden ---
788 if (m_new == NULL) {
789 printf("lge%d: no memory for rx list "
790 "-- packet dropped!\n", sc->lge_unit);
791 return(ENOBUFS);
792 }
793
794 /* Allocate the jumbo buffer */
795 buf = lge_jalloc(sc);

--- 848 unchanged lines hidden ---