Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Oops, TMD/RMD byte count masks were one bit shy (...



details:   https://anonhg.NetBSD.org/src/rev/24ffd12e9a27
branches:  trunk
changeset: 514142:24ffd12e9a27
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Aug 24 00:16:25 2001 +0000

description:
Oops, TMD/RMD byte count masks were one bit shy (and it makes a big
difference when the value in the field is actually the two's complement
of the buffer length).

diffstat:

 sys/dev/ic/am79900reg.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 845532862a90 -r 24ffd12e9a27 sys/dev/ic/am79900reg.h
--- a/sys/dev/ic/am79900reg.h   Fri Aug 24 00:14:03 2001 +0000
+++ b/sys/dev/ic/am79900reg.h   Fri Aug 24 00:16:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am79900reg.h,v 1.3 2001/08/21 16:39:06 thorpej Exp $   */
+/*     $NetBSD: am79900reg.h,v 1.4 2001/08/24 00:16:25 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -116,7 +116,7 @@
 #define        LE_R1_STP       (1<<25)         /* start of packet */
 #define        LE_R1_ENP       (1<<24)         /* end of packet */
 #define        LE_R1_ONES      (0xf<<12)       /* must be ones */
-#define        LE_R1_BCNT_MASK (0x7ff)         /* byte count mask */
+#define        LE_R1_BCNT_MASK (0xfff)         /* byte count mask */
 
 #define        LE_R1_BITS \
     "\20\40OWN\37ERR\36FRAM\35OFLO\34CRC\33BUFF\32STP\31ENP"
@@ -133,7 +133,7 @@
 #define        LE_T1_STP       (1<<25)         /* start of packet */
 #define        LE_T1_ENP       (1<<24)         /* end of packet */
 #define        LE_T1_ONES      (0xf<<12)       /* must be ones */
-#define        LE_T1_BCNT_MASK (0x7ff)         /* byte count mask */
+#define        LE_T1_BCNT_MASK (0xfff)         /* byte count mask */
 
 #define        LE_T1_BITS \
     "\20\40OWN\37ERR\36RES\35MORE\34ONE\33DEF\32STP\31ENP"



Home | Main Index | Thread Index | Old Index