Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Add missing definitions for hw checksumming.



details:   https://anonhg.NetBSD.org/src/rev/6c3c67dcf7e2
branches:  trunk
changeset: 510226:6c3c67dcf7e2
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Wed May 23 00:56:58 2001 +0000

description:
Add missing definitions for hw checksumming.

diffstat:

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

diffs (28 lines):

diff -r 693db565b984 -r 6c3c67dcf7e2 sys/dev/ic/elinkxlreg.h
--- a/sys/dev/ic/elinkxlreg.h   Wed May 23 00:02:24 2001 +0000
+++ b/sys/dev/ic/elinkxlreg.h   Wed May 23 00:56:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elinkxlreg.h,v 1.5 2001/05/03 17:59:24 fvdl Exp $      */
+/*     $NetBSD: elinkxlreg.h,v 1.6 2001/05/23 00:56:58 fvdl Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -304,6 +304,8 @@
 
 /*
  * upd_pktstatus bitfields.
+ * The *CKSUMERR fields are only valid if the matching *CHECKED field
+ * is set.
  */
 #define EX_UPD_PKTLENMASK      0x00001fff      /* 12:0 -> packet length */
 #define EX_UPD_ERROR           0x00004000      /* rcv error */
@@ -318,6 +320,9 @@
 #define EX_UPD_IPCKSUMERR      0x02000000      /* IP cksum error (90xB) */
 #define EX_UPD_TCPCKSUMERR     0x04000000      /* TCP cksum error (90xB) */
 #define EX_UPD_UDPCKSUMERR     0x08000000      /* UDP cksum error (90xB) */
+#define EX_UPD_IPCHECKED       0x20000000      /* IP cksum done */
+#define EX_UPD_TCPCHECKED      0x40000000      /* TCP cksum done */
+#define EX_UPD_UDPCHECKED      0x80000000      /* UDP cksum done */
 
 #define EX_UPD_ERR             0x001f4000      /* Errors we check for */
 #define EX_UPD_ERR_VLAN                0x000f0000      /* same for 802.1q */



Home | Main Index | Thread Index | Old Index