Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/dwc2 aprint_verbose the core version
details: https://anonhg.NetBSD.org/src/rev/030bb15642d0
branches: trunk
changeset: 365228:030bb15642d0
user: skrll <skrll%NetBSD.org@localhost>
date: Tue Aug 07 16:35:08 2018 +0000
description:
aprint_verbose the core version
diffstat:
sys/external/bsd/dwc2/dwc2.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r a5e25bdb906c -r 030bb15642d0 sys/external/bsd/dwc2/dwc2.c
--- a/sys/external/bsd/dwc2/dwc2.c Tue Aug 07 11:41:23 2018 +0000
+++ b/sys/external/bsd/dwc2/dwc2.c Tue Aug 07 16:35:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc2.c,v 1.50 2018/08/07 08:36:30 rin Exp $ */
+/* $NetBSD: dwc2.c,v 1.51 2018/08/07 16:35:08 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.50 2018/08/07 08:36:30 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.51 2018/08/07 16:35:08 skrll Exp $");
#include "opt_usb.h"
@@ -1328,6 +1328,11 @@
}
#endif
+ uint32_t snpsid = hsotg->hw_params.snpsid;
+ aprint_verbose_dev(sc->sc_dev, "Core Release: %x.%x%x%x (snpsid=%x)\n",
+ snpsid >> 12 & 0xf, snpsid >> 8 & 0xf,
+ snpsid >> 4 & 0xf, snpsid & 0xf, snpsid);
+
return 0;
fail2:
Home |
Main Index |
Thread Index |
Old Index