Deleted Added
full compact
if_ed_wd80x3.c (142200) if_ed_wd80x3.c (147256)
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_wd80x3.c 142200 2005-02-22 03:37:04Z imp $");
31__FBSDID("$FreeBSD: head/sys/dev/ed/if_ed_wd80x3.c 147256 2005-06-10 16:49:24Z brooks $");
32
33#include "opt_ed.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/sockio.h>
38#include <sys/mbuf.h>
39#include <sys/kernel.h>

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

358 sc->mem_ring = sc->mem_start + (ED_PAGE_SIZE * sc->rec_page_start);
359 sc->mem_size = memsize;
360 sc->mem_end = sc->mem_start + memsize;
361
362 /*
363 * Get station address from on-board ROM
364 */
365 for (i = 0; i < ETHER_ADDR_LEN; ++i)
32
33#include "opt_ed.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/sockio.h>
38#include <sys/mbuf.h>
39#include <sys/kernel.h>

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

358 sc->mem_ring = sc->mem_start + (ED_PAGE_SIZE * sc->rec_page_start);
359 sc->mem_size = memsize;
360 sc->mem_end = sc->mem_start + memsize;
361
362 /*
363 * Get station address from on-board ROM
364 */
365 for (i = 0; i < ETHER_ADDR_LEN; ++i)
366 sc->arpcom.ac_enaddr[i] = ed_asic_inb(sc, ED_WD_PROM + i);
366 sc->enaddr[i] = ed_asic_inb(sc, ED_WD_PROM + i);
367
368 /*
369 * Set upper address bits and 8/16 bit access to shared memory.
370 */
371 if (isa16bit) {
372 if (sc->chip_type == ED_CHIP_TYPE_WD790)
373 sc->wd_laar_proto = ed_asic_inb(sc, ED_WD_LAAR);
374 else

--- 75 unchanged lines hidden ---
367
368 /*
369 * Set upper address bits and 8/16 bit access to shared memory.
370 */
371 if (isa16bit) {
372 if (sc->chip_type == ED_CHIP_TYPE_WD790)
373 sc->wd_laar_proto = ed_asic_inb(sc, ED_WD_LAAR);
374 else

--- 75 unchanged lines hidden ---