Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic nothing uses ne2000_power anymore.
details: https://anonhg.NetBSD.org/src/rev/d5416beba1c5
branches: trunk
changeset: 750485:d5416beba1c5
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 02 19:27:41 2010 +0000
description:
nothing uses ne2000_power anymore.
diffstat:
sys/dev/ic/ne2000.c | 33 ++-------------------------------
sys/dev/ic/ne2000var.h | 5 +----
2 files changed, 3 insertions(+), 35 deletions(-)
diffs (73 lines):
diff -r b7c08e267825 -r d5416beba1c5 sys/dev/ic/ne2000.c
--- a/sys/dev/ic/ne2000.c Sat Jan 02 19:02:39 2010 +0000
+++ b/sys/dev/ic/ne2000.c Sat Jan 02 19:27:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ne2000.c,v 1.62 2009/05/05 12:37:24 nonaka Exp $ */
+/* $NetBSD: ne2000.c,v 1.63 2010/01/02 19:27:41 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.62 2009/05/05 12:37:24 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.63 2010/01/02 19:27:41 christos Exp $");
#include "opt_ipkdb.h"
@@ -916,35 +916,6 @@
}
#endif
-void
-ne2000_power(int why, void *arg)
-{
- struct ne2000_softc *sc = arg;
- struct dp8390_softc *dsc = &sc->sc_dp8390;
- struct ifnet *ifp = &dsc->sc_ec.ec_if;
- int s;
-
- s = splnet();
- switch (why) {
- case PWR_SUSPEND:
- case PWR_STANDBY:
- dp8390_stop(dsc);
- dp8390_disable(dsc);
- break;
- case PWR_RESUME:
- if (ifp->if_flags & IFF_UP) {
- if (dp8390_enable(dsc) == 0)
- dp8390_init(dsc);
- }
- break;
- case PWR_SOFTSUSPEND:
- case PWR_SOFTSTANDBY:
- case PWR_SOFTRESUME:
- break;
- }
- splx(s);
-}
-
bool
ne2000_suspend(device_t self PMF_FN_ARGS)
{
diff -r b7c08e267825 -r d5416beba1c5 sys/dev/ic/ne2000var.h
--- a/sys/dev/ic/ne2000var.h Sat Jan 02 19:02:39 2010 +0000
+++ b/sys/dev/ic/ne2000var.h Sat Jan 02 19:27:41 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ne2000var.h,v 1.21 2009/05/05 12:37:24 nonaka Exp $ */
+/* $NetBSD: ne2000var.h,v 1.22 2010/01/02 19:27:41 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -65,9 +65,6 @@
int ne2000_ipkdb_attach(struct ipkdb_if *);
#endif
-/* dopowerhooks(9) - deprecated */
-void ne2000_power(int, void *);
-
/* pmf(9) */
bool ne2000_suspend(device_t PMF_FN_PROTO);
bool ne2000_resume(device_t PMF_FN_PROTO);
Home |
Main Index |
Thread Index |
Old Index