summaryrefslogtreecommitdiff
path: root/sys/dev/mii/lxtphy.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/lxtphy.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/lxtphy.c')
-rw-r--r--sys/dev/mii/lxtphy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/mii/lxtphy.c b/sys/dev/mii/lxtphy.c
index c3278815b39..e64c2f86967 100644
--- a/sys/dev/mii/lxtphy.c
+++ b/sys/dev/mii/lxtphy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lxtphy.c,v 1.12 1999/11/03 22:30:32 thorpej Exp $ */
+/* $NetBSD: lxtphy.c,v 1.13 1999/11/12 18:13:00 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -232,6 +232,10 @@ lxtphy_service(sc, mii, cmd)
if (mii_phy_auto(sc, 0) == EJUSTRETURN)
return (0);
break;
+
+ case MII_DOWN:
+ mii_phy_down(sc);
+ return (0);
}
/* Update the media status. */