Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Fix an off by one in the bit definition for RX st...



details:   https://anonhg.NetBSD.org/src/rev/f905608e029e
branches:  trunk
changeset: 811908:f905608e029e
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Nov 21 16:04:11 2015 +0000

description:
Fix an off by one in the bit definition for RX store and forward mode.
Pointed out by ganbold.
While there add a few other bits of the same register.

diffstat:

 sys/dev/ic/dwc_gmac_reg.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r cc9f8ff075b3 -r f905608e029e sys/dev/ic/dwc_gmac_reg.h
--- a/sys/dev/ic/dwc_gmac_reg.h Sat Nov 21 15:22:17 2015 +0000
+++ b/sys/dev/ic/dwc_gmac_reg.h Sat Nov 21 16:04:11 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac_reg.h,v 1.14 2014/11/28 09:01:05 martin Exp $ */
+/* $NetBSD: dwc_gmac_reg.h,v 1.15 2015/11/21 16:04:11 martin Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -131,8 +131,13 @@
 #define        AWIN_GMAC_MII_IRQ               __BIT(0)
 
 
-#define        GMAC_DMA_OP_RXSTOREFORWARD      __BIT(24) /* start RX when a
+#define        GMAC_DMA_OP_DISABLECSDROP       __BIT(26) /* disable dropping of
+                                                    frames with TCP/IP
+                                                    checksum errors */
+#define        GMAC_DMA_OP_RXSTOREFORWARD      __BIT(25) /* start RX when a
                                                    full frame is available */
+#define        GMAC_DMA_OP_DISABLERXFLUSH      __BIT(24) /* Do not drop frames
+                                                    when out of RX descr. */
 #define        GMAC_DMA_OP_TXSTOREFORWARD      __BIT(21) /* start TX when a
                                                    full frame is available */
 #define        GMAC_DMA_OP_FLUSHTX             __BIT(20) /* flush TX fifo */



Home | Main Index | Thread Index | Old Index