diff options
author | ambrisko <ambrisko@FreeBSD.org> | 2003-12-30 01:07:12 +0000 |
---|---|---|
committer | ambrisko <ambrisko@FreeBSD.org> | 2003-12-30 01:07:12 +0000 |
commit | dd8da6f3b336de5809dcbca650a6d79234d3a829 (patch) | |
tree | 8b9f3caeb5795ef2d529f037fe33777349ca3612 /sys/dev/an/if_an_pci.c | |
parent | 0349754c19e68a2772d230b459d076d752d26b19 (diff) | |
download | FreeBSD-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_pci.c')
-rw-r--r-- | sys/dev/an/if_an_pci.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c index 3484679..67d27a3 100644 --- a/sys/dev/an/if_an_pci.c +++ b/sys/dev/an/if_an_pci.c @@ -111,7 +111,6 @@ static struct an_type an_devs[] = { static int an_probe_pci (device_t); static int an_attach_pci (device_t); -static int an_detach_pci (device_t); static int an_suspend_pci (device_t); static int an_resume_pci (device_t); @@ -250,21 +249,6 @@ fail: } static int -an_detach_pci(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 int an_suspend_pci(device_t dev) { an_shutdown(dev); @@ -284,7 +268,7 @@ static device_method_t an_pci_methods[] = { /* Device interface */ DEVMETHOD(device_probe, an_probe_pci), DEVMETHOD(device_attach, an_attach_pci), - DEVMETHOD(device_detach, an_detach_pci), + DEVMETHOD(device_detach, an_detach), DEVMETHOD(device_shutdown, an_shutdown), DEVMETHOD(device_suspend, an_suspend_pci), DEVMETHOD(device_resume, an_resume_pci), |