Deleted Added
full compact
if_ed_3c503.c (147256) if_ed_3c503.c (149558)
1/*-
2 * Copyright (c) 2005, M. Warner Losh
3 * All rights reserved.
4 * Copyright (c) 1995, David Greenman
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2005, M. Warner Losh
3 * All rights reserved.
4 * Copyright (c) 1995, David Greenman
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/cdefs.h>
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_3c503.c 147256 2005-06-10 16:49:24Z brooks $");
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_3c503.c 149558 2005-08-28 23:56:25Z imp $");
32
33#include "opt_ed.h"
34
35#ifdef ED_3C503
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sockio.h>

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

244 if (error)
245 return (error);
246
247 pmem = rman_get_start(sc->mem_res);
248 error = ed_isa_mem_ok(dev, pmem, memsize);
249 if (error)
250 return (error);
251
32
33#include "opt_ed.h"
34
35#ifdef ED_3C503
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/sockio.h>

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

244 if (error)
245 return (error);
246
247 pmem = rman_get_start(sc->mem_res);
248 error = ed_isa_mem_ok(dev, pmem, memsize);
249 if (error)
250 return (error);
251
252 sc->mem_start = (caddr_t) rman_get_virtual(sc->mem_res);
252 sc->mem_start = 0;
253 sc->mem_size = memsize;
254 sc->mem_end = sc->mem_start + memsize;
255
256 /*
257 * We have an entire 8k window to put the transmit buffers on the
258 * 16bit boards. But since the 16bit 3c503's shared memory is only
259 * fast enough to overlap the loading of one full-size packet, trying
260 * to load more than 2 buffers can actually leave the transmitter idle

--- 81 unchanged lines hidden ---
253 sc->mem_size = memsize;
254 sc->mem_end = sc->mem_start + memsize;
255
256 /*
257 * We have an entire 8k window to put the transmit buffers on the
258 * 16bit boards. But since the 16bit 3c503's shared memory is only
259 * fast enough to overlap the loading of one full-size packet, trying
260 * to load more than 2 buffers can actually leave the transmitter idle

--- 81 unchanged lines hidden ---