Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Add note for the TORL register.
details: https://anonhg.NetBSD.org/src/rev/5343500fa2fe
branches: trunk
changeset: 374736:5343500fa2fe
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu May 11 06:56:49 2023 +0000
description:
Add note for the TORL register.
The TOR register includes error, flow control and broadcast rejected.
diffstat:
sys/dev/pci/if_wm.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r dd7e2cf257ea -r 5343500fa2fe sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Thu May 11 06:54:23 2023 +0000
+++ b/sys/dev/pci/if_wm.c Thu May 11 06:56:49 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.768 2023/05/11 06:54:23 msaitoh Exp $ */
+/* $NetBSD: if_wm.c,v 1.769 2023/05/11 06:56:49 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.768 2023/05/11 06:54:23 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.769 2023/05/11 06:56:49 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_if_wm.h"
@@ -3798,6 +3798,13 @@ wm_tick(void *arg)
WM_EVCNT_ADD(&sc->sc_ev_roc, CSR_READ(sc, WMREG_ROC));
WM_EVCNT_ADD(&sc->sc_ev_rjc, CSR_READ(sc, WMREG_RJC));
+ /*
+ * The TOR(L) register includes:
+ * - Error
+ * - Flow control
+ * - Broadcast rejected (This note is described in 82574 and newer
+ * datasheets. What does "broadcast rejected" mean?)
+ */
WM_EVCNT_ADD(&sc->sc_ev_tor,
CSR_READ(sc, WMREG_TORL) +
((uint64_t)CSR_READ(sc, WMREG_TORH) << 32));
Home |
Main Index |
Thread Index |
Old Index