summaryrefslogtreecommitdiffstats
path: root/sys/i386/eisa
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-07-31 00:43:48 +0000
committermdodd <mdodd@FreeBSD.org>1999-07-31 00:43:48 +0000
commit599ae0bd07ffb710182a49dfbe878ce5fb011238 (patch)
treefd305a5b3b172ba50ecf730b6993782dc8d5c28c /sys/i386/eisa
parent36ac898832f82e5095ab6f4d9ac182dc2cf1c492 (diff)
downloadFreeBSD-src-599ae0bd07ffb710182a49dfbe878ce5fb011238.zip
FreeBSD-src-599ae0bd07ffb710182a49dfbe878ce5fb011238.tar.gz
Don't use at_shutdown() now that we have new_bus which lets us
specify a DEVICE_SHUTDOWN method instead. Reviewed by: me, since nobody else seems to run this hardware in -CURRENT
Diffstat (limited to 'sys/i386/eisa')
-rw-r--r--sys/i386/eisa/if_fea.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/i386/eisa/if_fea.c b/sys/i386/eisa/if_fea.c
index ca0807c..44c930f 100644
--- a/sys/i386/eisa/if_fea.c
+++ b/sys/i386/eisa/if_fea.c
@@ -21,7 +21,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_fea.c,v 1.14 1999/05/02 20:35:42 peter Exp $
+ * $Id: if_fea.c,v 1.15 1999/07/10 19:46:08 peter Exp $
*/
/*
@@ -53,7 +53,7 @@ static const char * pdq_eisa_match __P((eisa_id_t));
static int pdq_eisa_probe __P((device_t));
static int pdq_eisa_attach __P((device_t));
void pdq_eisa_intr __P((void *));
-static void pdq_eisa_shutdown __P((int, void *));
+static int pdq_eisa_shutdown __P((device_t));
#define DEFEA_IRQS 0x0000FBA9U
@@ -226,7 +226,6 @@ pdq_eisa_attach (dev)
bcopy((caddr_t) sc->sc_pdq->pdq_hwaddr.lanaddr_bytes, sc->sc_ac.ac_enaddr, 6);
pdq_ifattach(sc, NULL);
- at_shutdown(pdq_eisa_shutdown, (void *) sc, SHUTDOWN_POST_SYNC);
return (0);
@@ -241,17 +240,21 @@ bad:
return (-1);
}
-static void
-pdq_eisa_shutdown(howto, sc)
- int howto;
- void *sc;
+static int
+pdq_eisa_shutdown(dev)
+ device_t dev;
{
- pdq_hwreset(((pdq_softc_t *)sc)->sc_pdq);
+ pdq_softc_t *sc = device_get_softc(dev);
+
+ pdq_hwreset(sc->sc_pdq);
+
+ return (0);
}
static device_method_t pdq_eisa_methods[] = {
DEVMETHOD(device_probe, pdq_eisa_probe),
DEVMETHOD(device_attach, pdq_eisa_attach),
+ DEVMETHOD(device_shutdown, pdq_eisa_shutdown),
{ 0, 0 }
};
OpenPOWER on IntegriCloud