Module Name:    src
Committed By:   jmcneill
Date:           Sat Apr 25 10:21:41 UTC 2020

Modified Files:
        src/sys/dev/ic: bcmgenetreg.h

Log Message:
Add missing receive error status bit definitions, from Robert Sprowson in
PR# kern/55199


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ic/bcmgenetreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/bcmgenetreg.h
diff -u src/sys/dev/ic/bcmgenetreg.h:1.2 src/sys/dev/ic/bcmgenetreg.h:1.3
--- src/sys/dev/ic/bcmgenetreg.h:1.2	Sat Feb 22 13:41:41 2020
+++ src/sys/dev/ic/bcmgenetreg.h	Sat Apr 25 10:21:41 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: bcmgenetreg.h,v 1.2 2020/02/22 13:41:41 jmcneill Exp $ */
+/* $NetBSD: bcmgenetreg.h,v 1.3 2020/04/25 10:21:41 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2020 Jared McNeill <jmcne...@invisible.ca>
@@ -138,7 +138,12 @@
 #define	 GENET_RX_DESC_STATUS_OWN	__BIT(15)
 #define	 GENET_RX_DESC_STATUS_EOP	__BIT(14)
 #define	 GENET_RX_DESC_STATUS_SOP	__BIT(13)
-#define	 GENET_RX_DESC_STATUS_RX_ERROR	__BIT(2)
+#define	 GENET_RX_DESC_STATUS_ALL_ERRS	__BITS(4,0)
+#define	 GENET_RX_DESC_STATUS_LEN_ERR	__BIT(4)
+#define	 GENET_RX_DESC_STATUS_FRAME_ERR	__BIT(3)
+#define	 GENET_RX_DESC_STATUS_RX_ERR	__BIT(2)
+#define	 GENET_RX_DESC_STATUS_CRC_ERR	__BIT(1)
+#define	 GENET_RX_DESC_STATUS_OVRUN_ERR	__BIT(0)
 #define	GENET_RX_DESC_ADDRESS_LO(idx)	(GENET_RX_BASE + GENET_DMA_DESC_SIZE * (idx) + 0x04)
 #define	GENET_RX_DESC_ADDRESS_HI(idx)	(GENET_RX_BASE + GENET_DMA_DESC_SIZE * (idx) + 0x08)
 

Reply via email to