summaryrefslogtreecommitdiff
path: root/sys/dev/mii/icsphy.c
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-11-12 18:12:59 +0000
committerthorpej <thorpej@NetBSD.org>1999-11-12 18:12:59 +0000
commitbca88a28c852cae9bc1f3799a886924bc498bbee (patch)
treef43ec165500ed237ea98107ca8a290e8afc2e72f /sys/dev/mii/icsphy.c
parentfc5ecbb5a84c5d3738fa06dd3cdd40eb309ee2eb (diff)
Add mii_down(), which is used by MAC drivers to inform PHYs that the
interface is now down. PHYs use this to cancel pending asynchronous operations.
Diffstat (limited to 'sys/dev/mii/icsphy.c')
-rw-r--r--sys/dev/mii/icsphy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/mii/icsphy.c b/sys/dev/mii/icsphy.c
index 30dcdaab0f5..68b5cf9389c 100644
--- a/sys/dev/mii/icsphy.c
+++ b/sys/dev/mii/icsphy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: icsphy.c,v 1.11 1999/11/03 22:30:32 thorpej Exp $ */
+/* $NetBSD: icsphy.c,v 1.12 1999/11/12 18:13:00 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -215,6 +215,10 @@ icsphy_service(sc, mii, cmd)
* kicked; it continues in the background.
*/
break;
+
+ case MII_DOWN:
+ mii_phy_down(sc);
+ return (0);
}
/* Update the media status. */