Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Print bit setting of bge_asf_mode if BGE_DEBUG i...
details: https://anonhg.NetBSD.org/src/rev/b4ba6aee0771
branches: trunk
changeset: 336202:b4ba6aee0771
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Feb 17 10:11:24 2015 +0000
description:
Print bit setting of bge_asf_mode if BGE_DEBUG is set.
diffstat:
sys/dev/pci/if_bge.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r d3cf799f9f8f -r b4ba6aee0771 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Tue Feb 17 09:58:33 2015 +0000
+++ b/sys/dev/pci/if_bge.c Tue Feb 17 10:11:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.278 2015/02/11 23:07:13 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.279 2015/02/17 10:11:24 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.278 2015/02/11 23:07:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.279 2015/02/17 10:11:24 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -6053,6 +6053,7 @@
if (sc->bge_flags & BGEF_TSO)
printf(" - TSO\n");
+ /* PHY related */
if (sc->bge_phy_flags & BGEPHYF_NO_3LED)
printf(" - No 3 LEDs\n");
if (sc->bge_phy_flags & BGEPHYF_CRC_BUG)
@@ -6069,6 +6070,14 @@
printf(" - adjust trim\n");
if (sc->bge_phy_flags & BGEPHYF_NO_WIRESPEED)
printf(" - no wirespeed\n");
+
+ /* ASF related */
+ if (sc->bge_asf_mode & ASF_ENABLE)
+ printf(" - ASF enable\n");
+ if (sc->bge_asf_mode & ASF_NEW_HANDSHARE)
+ printf(" - ASF new handshake\n");
+ if (sc->bge_asf_mode & ASF_STACKUP)
+ printf(" - ASF stackup\n");
}
#endif /* BGE_DEBUG */
Home |
Main Index |
Thread Index |
Old Index