summaryrefslogtreecommitdiffstats
path: root/sys/dev/an/if_an_isa.c
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2003-12-30 01:07:12 +0000
committerambrisko <ambrisko@FreeBSD.org>2003-12-30 01:07:12 +0000
commitdd8da6f3b336de5809dcbca650a6d79234d3a829 (patch)
tree8b9f3caeb5795ef2d529f037fe33777349ca3612 /sys/dev/an/if_an_isa.c
parent0349754c19e68a2772d230b459d076d752d26b19 (diff)
downloadFreeBSD-src-dd8da6f3b336de5809dcbca650a6d79234d3a829.zip
FreeBSD-src-dd8da6f3b336de5809dcbca650a6d79234d3a829.tar.gz
- Bump up the general and status RID sizes
- Clear out an_dma_vaddr on free so we can test to see if dma is setup when the card is kldunloaded/kldloaded etc. only for MPI350 - Use a common detach like wi(4) - Notify on RID read overflow and truncate this currently causes a panic in -stable when the stack during an ifconfig an0 is done with newer firmware - Convert from UNLOCK/tsleep/LOCK to msleep. I thought I did that a while ago.
Diffstat (limited to 'sys/dev/an/if_an_isa.c')
-rw-r--r--sys/dev/an/if_an_isa.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/an/if_an_isa.c b/sys/dev/an/if_an_isa.c
index 8b0efd5..92b9d1c 100644
--- a/sys/dev/an/if_an_isa.c
+++ b/sys/dev/an/if_an_isa.c
@@ -79,7 +79,6 @@ static struct isa_pnp_id an_ids[] = {
static int an_probe_isa (device_t);
static int an_attach_isa (device_t);
-static int an_detach_isa (device_t);
static int
an_probe_isa(dev)
@@ -133,26 +132,11 @@ an_attach_isa(dev)
return (0);
}
-static int
-an_detach_isa(device_t dev)
-{
- struct an_softc *sc = device_get_softc(dev);
- struct ifnet *ifp = &sc->arpcom.ac_if;
-
- an_stop(sc);
- ifmedia_removeall(&sc->an_ifmedia);
- ether_ifdetach(ifp);
- bus_teardown_intr(dev, sc->irq_res, sc->irq_handle);
- an_release_resources(dev);
-
- return (0);
-}
-
static device_method_t an_isa_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, an_probe_isa),
DEVMETHOD(device_attach, an_attach_isa),
- DEVMETHOD(device_detach, an_detach_isa),
+ DEVMETHOD(device_detach, an_detach),
DEVMETHOD(device_shutdown, an_shutdown),
{ 0, 0 }
};
OpenPOWER on IntegriCloud