Deleted Added
full compact
if_ed.c (113131) if_ed.c (118607)
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/ed/if_ed.c 113131 2003-04-05 18:12:36Z cognet $
27 * $FreeBSD: head/sys/dev/ed/if_ed.c 118607 2003-08-07 15:04:27Z jhb $
28 */
29
30/*
31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
32 * adapters. By David Greenman, 29-April-1993
33 *
34 * Currently supports the Western Digital/SMC 8003 and 8013 series,
35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,

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

3148 if (sc->hpp_mem_start) { /* Memory mapped I/O port */
3149 while (m) {
3150 total_len += (len = m->m_len);
3151 if (len) {
3152 caddr_t data = mtod(m, caddr_t);
3153 /* finish the last word of the previous mbuf */
3154 if (wantbyte) {
3155 savebyte[1] = *data;
28 */
29
30/*
31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet
32 * adapters. By David Greenman, 29-April-1993
33 *
34 * Currently supports the Western Digital/SMC 8003 and 8013 series,
35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000,

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

3148 if (sc->hpp_mem_start) { /* Memory mapped I/O port */
3149 while (m) {
3150 total_len += (len = m->m_len);
3151 if (len) {
3152 caddr_t data = mtod(m, caddr_t);
3153 /* finish the last word of the previous mbuf */
3154 if (wantbyte) {
3155 savebyte[1] = *data;
3156 *d = *((ushort *) savebyte);
3156 *d = *((u_short *) savebyte);
3157 data++; len--; wantbyte = 0;
3158 }
3159 /* output contiguous words */
3160 if ((len > 3) && (use_32bit_accesses)) {
3161 volatile u_int32_t *const dl =
3162 (volatile u_int32_t *) d;
3163 u_int32_t *sl = (u_int32_t *) data;
3164 u_int32_t *fence = sl + (len >> 2);

--- 305 unchanged lines hidden ---
3157 data++; len--; wantbyte = 0;
3158 }
3159 /* output contiguous words */
3160 if ((len > 3) && (use_32bit_accesses)) {
3161 volatile u_int32_t *const dl =
3162 (volatile u_int32_t *) d;
3163 u_int32_t *sl = (u_int32_t *) data;
3164 u_int32_t *fence = sl + (len >> 2);

--- 305 unchanged lines hidden ---