summaryrefslogtreecommitdiff
path: root/sys/dev/ep
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2000-07-17 21:24:40 +0000
committerArchie Cobbs <archie@FreeBSD.org>2000-07-17 21:24:40 +0000
commit1f978f357119ba20698639fae32c13ef5eba24d9 (patch)
tree48adcff54283179bcbc84aebb109fb54bb33e718 /sys/dev/ep
parent1c5912a06e9fe13f8d64bfc9eeeb6cfc6b1caa2e (diff)
Notes
Diffstat (limited to 'sys/dev/ep')
-rw-r--r--sys/dev/ep/if_ep.c7
-rw-r--r--sys/dev/ep/if_ep_pccard.c3
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index f10e36e1e8d3..b4a0eb785563 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -318,11 +318,8 @@ ep_attach(sc)
ep_ifmedia_upd(ifp);
}
- if (!attached) {
- if_attach(ifp);
- ether_ifattach(ifp);
- bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header));
- }
+ if (!attached)
+ ether_ifattach(ifp, ETHER_BPF_SUPPORTED);
#ifdef EP_LOCAL_STATS
sc->rx_no_first = sc->rx_no_mbuf = sc->rx_bpf_disc =
diff --git a/sys/dev/ep/if_ep_pccard.c b/sys/dev/ep/if_ep_pccard.c
index 30eefb203111..85092b74f35f 100644
--- a/sys/dev/ep/if_ep_pccard.c
+++ b/sys/dev/ep/if_ep_pccard.c
@@ -48,6 +48,7 @@
#include <machine/resource.h>
#include <sys/rman.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <net/if_media.h>
@@ -227,7 +228,7 @@ ep_pccard_detach(device_t dev)
return (0);
}
sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
- if_detach(&sc->arpcom.ac_if);
+ ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
sc->gone = 1;
bus_teardown_intr(dev, sc->irq, sc->ep_intrhand);
ep_free(dev);