Deleted Added
full compact
if_nge.c (109058) if_nge.c (109623)
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2000, 2001
4 * Bill Paul <wpaul@bsdi.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 <wpaul@bsdi.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/nge/if_nge.c 109058 2003-01-10 08:09:58Z mbr $
33 * $FreeBSD: head/sys/dev/nge/if_nge.c 109623 2003-01-21 08:56:16Z alfred $
34 */
35
36/*
37 * National Semiconductor DP83820/DP83821 gigabit ethernet driver
38 * for FreeBSD. Datasheets are available from:
39 *
40 * http://www.national.com/ds/DP/DP83820.pdf
41 * http://www.national.com/ds/DP/DP83821.pdf

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

127
128MODULE_DEPEND(nge, miibus, 1, 1, 1);
129
130/* "controller miibus0" required. See GENERIC if you get errors here. */
131#include "miibus_if.h"
132
133#ifndef lint
134static const char rcsid[] =
34 */
35
36/*
37 * National Semiconductor DP83820/DP83821 gigabit ethernet driver
38 * for FreeBSD. Datasheets are available from:
39 *
40 * http://www.national.com/ds/DP/DP83820.pdf
41 * http://www.national.com/ds/DP/DP83821.pdf

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

127
128MODULE_DEPEND(nge, miibus, 1, 1, 1);
129
130/* "controller miibus0" required. See GENERIC if you get errors here. */
131#include "miibus_if.h"
132
133#ifndef lint
134static const char rcsid[] =
135 "$FreeBSD: head/sys/dev/nge/if_nge.c 109058 2003-01-10 08:09:58Z mbr $";
135 "$FreeBSD: head/sys/dev/nge/if_nge.c 109623 2003-01-21 08:56:16Z alfred $";
136#endif
137
138#define NGE_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
139
140/*
141 * Various supported device vendors/types and their names.
142 */
143static struct nge_type nge_devs[] = {

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

1157 struct nge_softc *sc;
1158 struct nge_desc *c;
1159 struct mbuf *m;
1160{
1161 struct mbuf *m_new = NULL;
1162 caddr_t *buf = NULL;
1163
1164 if (m == NULL) {
136#endif
137
138#define NGE_CSUM_FEATURES (CSUM_IP | CSUM_TCP | CSUM_UDP)
139
140/*
141 * Various supported device vendors/types and their names.
142 */
143static struct nge_type nge_devs[] = {

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

1157 struct nge_softc *sc;
1158 struct nge_desc *c;
1159 struct mbuf *m;
1160{
1161 struct mbuf *m_new = NULL;
1162 caddr_t *buf = NULL;
1163
1164 if (m == NULL) {
1165 MGETHDR(m_new, M_DONTWAIT, MT_DATA);
1165 MGETHDR(m_new, M_NOWAIT, MT_DATA);
1166 if (m_new == NULL) {
1167 printf("nge%d: no memory for rx list "
1168 "-- packet dropped!\n", sc->nge_unit);
1169 return(ENOBUFS);
1170 }
1171
1172 /* Allocate the jumbo buffer */
1173 buf = nge_jalloc(sc);

--- 1133 unchanged lines hidden ---
1166 if (m_new == NULL) {
1167 printf("nge%d: no memory for rx list "
1168 "-- packet dropped!\n", sc->nge_unit);
1169 return(ENOBUFS);
1170 }
1171
1172 /* Allocate the jumbo buffer */
1173 buf = nge_jalloc(sc);

--- 1133 unchanged lines hidden ---