Deleted Added
full compact
if_ep_eisa.c (121492) if_ep_eisa.c (121588)
1/*
2 * Product specific probe and attach routines for:
3 * 3COM 3C579 and 3C509(in eisa config mode) ethernet controllers
4 *
5 * Copyright (c) 1996 Justin T. Gibbs
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

16 * documentation and/or other materials provided with the distribution.
17 * 3. Absolutely no warranty of function or purpose is made by the author
18 * Justin T. Gibbs.
19 * 4. Modifications may be freely made to this file if the above conditions
20 * are met.
21 */
22
23#include <sys/cdefs.h>
1/*
2 * Product specific probe and attach routines for:
3 * 3COM 3C579 and 3C509(in eisa config mode) ethernet controllers
4 *
5 * Copyright (c) 1996 Justin T. Gibbs
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

16 * documentation and/or other materials provided with the distribution.
17 * 3. Absolutely no warranty of function or purpose is made by the author
18 * Justin T. Gibbs.
19 * 4. Modifications may be freely made to this file if the above conditions
20 * are met.
21 */
22
23#include <sys/cdefs.h>
24__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121492 2003-10-25 04:09:49Z imp $");
24__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121588 2003-10-26 22:28:20Z imp $");
25
26#include <sys/cdefs.h>
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121492 2003-10-25 04:09:49Z imp $");
27__FBSDID("$FreeBSD: head/sys/dev/ep/if_ep_eisa.c 121588 2003-10-26 22:28:20Z imp $");
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32#include <sys/socket.h>
33#include <sys/module.h>
34#include <sys/bus.h>
35

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

209 }
210
211 ep_get_media(sc);
212
213 irq = rman_get_start(sc->irq);
214 if (irq == 9)
215 irq = 2;
216
28
29#include <sys/param.h>
30#include <sys/systm.h>
31#include <sys/kernel.h>
32#include <sys/socket.h>
33#include <sys/module.h>
34#include <sys/bus.h>
35

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

209 }
210
211 ep_get_media(sc);
212
213 irq = rman_get_start(sc->irq);
214 if (irq == 9)
215 irq = 2;
216
217 GO_WINDOW(0);
217 GO_WINDOW(sc, 0);
218 SET_IRQ(sc, irq);
219
220 if ((error = ep_attach(sc))) {
221 device_printf(dev, "ep_attach() failed! (%d)\n", error);
222 goto bad;
223 }
224 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, ep_intr,
225 sc, &sc->ep_intrhand))) {

--- 31 unchanged lines hidden ---
218 SET_IRQ(sc, irq);
219
220 if ((error = ep_attach(sc))) {
221 device_printf(dev, "ep_attach() failed! (%d)\n", error);
222 goto bad;
223 }
224 if ((error = bus_setup_intr(dev, sc->irq, INTR_TYPE_NET | INTR_MPSAFE, ep_intr,
225 sc, &sc->ep_intrhand))) {

--- 31 unchanged lines hidden ---