NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/55199: Add missing receive error status bit definitions to bcmgenet.h
>Number: 55199
>Category: kern
>Synopsis: Add missing receive error status bit definitions to bcmgenet.h
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Apr 23 11:10:00 +0000 2020
>Originator: Robert Sprowson
>Release:
>Organization:
>Environment:
>Description:
Only bit 2 is currently defined (and, infact, not used) but there are others. Add these - see attached patch.
>How-To-Repeat:
>Fix:
--- bcmgenetreg.1.2.h 2020-04-23 11:58:57 +0100
+++ bcmgenetreg.h 2020-04-23 11:01:36 +0100
@@ -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)
Home |
Main Index |
Thread Index |
Old Index