Module Name:    src
Committed By:   mrg
Date:           Thu Mar 17 05:45:24 UTC 2022

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

Log Message:
add some register bits for interrupt control/error status.
(not yet used.)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/dwc_eqos_reg.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/dwc_eqos_reg.h
diff -u src/sys/dev/ic/dwc_eqos_reg.h:1.3 src/sys/dev/ic/dwc_eqos_reg.h:1.4
--- src/sys/dev/ic/dwc_eqos_reg.h:1.3	Sun Jan  9 00:36:28 2022
+++ src/sys/dev/ic/dwc_eqos_reg.h	Thu Mar 17 05:45:23 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_eqos_reg.h,v 1.3 2022/01/09 00:36:28 mrg Exp $ */
+/* $NetBSD: dwc_eqos_reg.h,v 1.4 2022/03/17 05:45:23 mrg Exp $ */
 
 /*-
  * Copyright (c) 2022 Jared McNeill <jmcne...@invisible.ca>
@@ -118,9 +118,31 @@
 #define	GMAC_MAC_ADDRESS0_HIGH			0x0300
 #define	GMAC_MAC_ADDRESS0_LOW			0x0304
 #define	GMAC_MMC_CONTROL			0x0700
+#define	 GMAC_MMC_CONTROL_UCDBC			(1U << 8)
+#define	 GMAC_MMC_CONTROL_CNTPRSTLVL		(1U << 5)
+#define	 GMAC_MMC_CONTROL_CNTPRST		(1U << 4)
+#define	 GMAC_MMC_CONTROL_CNTFREEZ		(1U << 3)
+#define	 GMAC_MMC_CONTROL_RSTONRD		(1U << 2)
+#define	 GMAC_MMC_CONTROL_CNTSTOPRO		(1U << 1)
+#define	 GMAC_MMC_CONTROL_CNTRST		(1U << 0)
 #define	GMAC_MMC_RX_INTERRUPT			0x0704
+#define	 GMAC_MMC_RX_INTERRUPT_RXFOVPIS		(1U << 21)
+#define	 GMAC_MMC_RX_INTERRUPT_RXLENERPIS	(1U << 18)
+#define	 GMAC_MMC_RX_INTERRUPT_RXCRCERPIS	(1U << 5)
+#define	 GMAC_MMC_RX_INTERRUPT_RXMCGPIS		(1U << 4)
+#define	 GMAC_MMC_RX_INTERRUPT_RXGOCTIS		(1U << 2)
+#define	 GMAC_MMC_RX_INTERRUPT_RXGBOCTIS	(1U << 1)
+#define	 GMAC_MMC_RX_INTERRUPT_RXGBPKTIS	(1U << 0)
 #define	GMAC_MMC_TX_INTERRUPT			0x0708
+#define	 GMAC_MMC_TX_INTERRUPT_TXGPKTIS		(1U << 21)
+#define	 GMAC_MMC_TX_INTERRUPT_TXGOCTIS		(1U << 20)
+#define	 GMAC_MMC_TX_INTERRUPT_TXCARERPIS	(1U << 19)
+#define	 GMAC_MMC_TX_INTERRUPT_TXFLOWERPIS	(1U << 13)
+#define	 GMAC_MMC_TX_INTERRUPT_TXGBPKTIS	(1U << 1)
+#define	 GMAC_MMC_TX_INTERRUPT_TXGBOCTIS	(1U << 0)
+/* Use GMAC_MMC_RX_INTERRUPT_MASK bits for GMAC_MMC_RX_INTERRUPT_MASK */
 #define	GMAC_MMC_RX_INTERRUPT_MASK		0x070C
+/* Use GMAC_MMC_TX_INTERRUPT_MASK bits for GMAC_MMC_TX_INTERRUPT_MASK */
 #define	GMAC_MMC_TX_INTERRUPT_MASK		0x0710
 #define	GMAC_TX_OCTET_COUNT_GOOD_BAD		0x0714
 #define	GMAC_TX_PACKET_COUNT_GOOD_BAD		0x0718

Reply via email to