diff options
author | imp <imp@FreeBSD.org> | 1999-10-25 02:52:16 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-10-25 02:52:16 +0000 |
commit | 6c561ab3d9f5cdf6fd61a7b1bb92e1dc16daa007 (patch) | |
tree | 02a42531c938d60c5a8767e1babb2353f93f4d88 /sys/dev/ep/if_ep.c | |
parent | 94464bc92e6cd7219d883aa93a90b0bd79414853 (diff) | |
download | FreeBSD-src-6c561ab3d9f5cdf6fd61a7b1bb92e1dc16daa007.zip FreeBSD-src-6c561ab3d9f5cdf6fd61a7b1bb92e1dc16daa007.tar.gz |
Add newbus attachment for pccard driver. Heavily tested by me, and
I'm committing this from a laptop running this driver. Have only one
devclass for all ep devices (at least for pccard and eisa) so unit
numbering is sane. Might not work with both isa and non-isa devices
on the same system until ep is updated (Matt has some patches in the
pipeline which should resolve this, he wanted me to commit this so he
can resolve any conflicts against cvs rather than my patches).
Reviewed by: Matt Dodd <mdodd@freebsd.org>
Diffstat (limited to 'sys/dev/ep/if_ep.c')
-rw-r--r-- | sys/dev/ep/if_ep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 7202bf9..508dd8a 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -66,6 +66,7 @@ #include <sys/mbuf.h> #include <sys/socket.h> #include <sys/sockio.h> +#include <sys/bus.h> #include <net/ethernet.h> #include <net/if.h> @@ -84,6 +85,7 @@ struct ep_softc * ep_softc[NEP]; struct ep_board ep_board[EP_MAX_BOARDS + 1]; int ep_boards; u_long ep_unit; +devclass_t ep_devclass; static char * ep_conn_type[] = {"UTP", "AUI", "???", "BNC"}; @@ -517,6 +519,9 @@ ep_intr(arg) sc = (struct ep_softc *)arg; + if (sc->gone) + return; + ifp = &sc->arpcom.ac_if; outw(BASE + EP_COMMAND, SET_INTR_MASK); /* disable all Ints */ |