Module Name:    src
Committed By:   skrll
Date:           Wed Aug 28 06:50:18 UTC 2024

Modified Files:
        src/sys/dev/cadence: cemacreg.h if_cemac.c

Log Message:
Shorten a bit definition name.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/cadence/cemacreg.h
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/cadence/if_cemac.c

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/cadence/cemacreg.h
diff -u src/sys/dev/cadence/cemacreg.h:1.5 src/sys/dev/cadence/cemacreg.h:1.6
--- src/sys/dev/cadence/cemacreg.h:1.5	Sun Aug 25 21:15:46 2024
+++ src/sys/dev/cadence/cemacreg.h	Wed Aug 28 06:50:17 2024
@@ -1,4 +1,4 @@
-/*      $NetBSD: cemacreg.h,v 1.5 2024/08/25 21:15:46 skrll Exp $	*/
+/*      $NetBSD: cemacreg.h,v 1.6 2024/08/28 06:50:17 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2015  Genetec Corporation.  All rights reserved.
@@ -164,7 +164,7 @@
 #define GEM_CFG_CLK_64	__SHIFTIN(4, GEM_CFG_CLK)
 #define GEM_CFG_CLK_96	__SHIFTIN(5, GEM_CFG_CLK)
 #define GEM_CFG_DBW	__BITS(22, 21)
-#define	GEM_CFG_RX_CHKSUM_OFFLD_EN	__BIT(24)
+#define	GEM_CFG_RXCOEN	__BIT(24)
 
 /* Status Register bits: */
 #define	ETH_SR_IDLE	__BIT(2)	/* 1 = PHY logic is running		*/

Index: src/sys/dev/cadence/if_cemac.c
diff -u src/sys/dev/cadence/if_cemac.c:1.39 src/sys/dev/cadence/if_cemac.c:1.40
--- src/sys/dev/cadence/if_cemac.c:1.39	Tue Aug 27 07:53:20 2024
+++ src/sys/dev/cadence/if_cemac.c	Wed Aug 28 06:50:17 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cemac.c,v 1.39 2024/08/27 07:53:20 skrll Exp $	*/
+/*	$NetBSD: if_cemac.c,v 1.40 2024/08/28 06:50:17 skrll Exp $	*/
 
 /*
  * Copyright (c) 2015  Genetec Corporation.  All rights reserved.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.39 2024/08/27 07:53:20 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.40 2024/08/28 06:50:17 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -855,7 +855,7 @@ cemac_ifinit(struct ifnet *ifp)
 			IFCAP_CSUM_TCPv4_Rx | IFCAP_CSUM_UDPv4_Rx |
 			IFCAP_CSUM_TCPv6_Rx | IFCAP_CSUM_UDPv6_Rx)) {
 			cfg = CEMAC_READ(ETH_CFG);
-			cfg |= GEM_CFG_RX_CHKSUM_OFFLD_EN;
+			cfg |= GEM_CFG_RXCOEN;
 			CEMAC_WRITE(ETH_CFG, cfg);
 		}
 	}

Reply via email to