diff options
| author | cgd <cgd@NetBSD.org> | 1995-06-05 01:03:30 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1995-06-05 01:03:30 +0000 |
| commit | d0d9fe6333eed53078fdea2f74a50fce3f8d97ee (patch) | |
| tree | 2b66566e944a7777b7890b1f745dd519037cfbc8 /sys/dev | |
| parent | 05a6a13e758125995c98abcb40363875336a0596 (diff) | |
set a shutdown hook
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_de.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c index 41fff3a601b..96588c10e1c 100644 --- a/sys/dev/pci/if_de.c +++ b/sys/dev/pci/if_de.c @@ -1,5 +1,3 @@ -/* $NetBSD: if_de.c,v 1.2 1995/06/05 00:47:42 cgd Exp $ */ - /*- * Copyright (c) 1994, 1995 Matt Thomas (matt@lkg.dec.com) * All rights reserved. @@ -230,7 +228,7 @@ struct _tulip_softc_t { #if defined(__NetBSD__) struct device tulip_dev; /* base device */ void *tulip_ih; /* intrrupt vectoring */ - /* XXX no shutdown routine? */ + void *tulip_ats; /* shutdown routine */ #endif struct arpcom tulip_ac; tulip_regfile_t tulip_csrs; @@ -1676,7 +1674,6 @@ struct cfdriver decd = { #if defined(__NetBSD__) #define TULIP_PCI_ATTACH_ARGS struct device *parent, struct device *self, void *aux -#if 0 /* XXX! */ static void tulip_pci_shutdown( void *arg) @@ -1687,7 +1684,6 @@ tulip_pci_shutdown( 33MHz that comes to two microseconds but wait a bit longer anyways) */ } -#endif static int tulip_pci_probe( @@ -1856,6 +1852,10 @@ tulip_pci_attach( sc->tulip_name, sc->tulip_unit); return; } + sc->tulip_ats = shutdownhook_establish(tulip_pci_shutdown, sc); + if (sc->tulip_ats == NULL) + printf("%s%d: warning: couldn't establish shutdown hook\n", + sc->tulip_name, sc->tulip_unit); #endif #if defined(__FreeBSD__) pci_map_int (config_id, tulip_intr, (void*) sc, &net_imask); |
