Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Modify comment. Use __BIT() a little. No functio...
details: https://anonhg.NetBSD.org/src/rev/1ca7ee9b9ce1
branches: trunk
changeset: 368581:1ca7ee9b9ce1
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jul 20 06:43:37 2022 +0000
description:
Modify comment. Use __BIT() a little. No functional change.
diffstat:
sys/dev/pci/if_wmreg.h | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diffs (46 lines):
diff -r bd01c27b2709 -r 1ca7ee9b9ce1 sys/dev/pci/if_wmreg.h
--- a/sys/dev/pci/if_wmreg.h Wed Jul 20 01:38:24 2022 +0000
+++ b/sys/dev/pci/if_wmreg.h Wed Jul 20 06:43:37 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wmreg.h,v 1.125 2021/12/22 07:28:34 skrll Exp $ */
+/* $NetBSD: if_wmreg.h,v 1.126 2022/07/20 06:43:37 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -1145,9 +1145,9 @@
#define WMREG_CRCERRS 0x4000 /* CRC Error Count */
#define WMREG_ALGNERRC 0x4004 /* Alignment Error Count */
#define WMREG_SYMERRC 0x4008 /* Symbol Error Count */
-#define WMREG_RXERRC 0x400c /* receive error Count - R/clr */
+#define WMREG_RXERRC 0x400c /* Receive error Count - R/clr */
#define WMREG_MPC 0x4010 /* Missed Packets Count - R/clr */
-#define WMREG_COLC 0x4028 /* collision Count - R/clr */
+#define WMREG_COLC 0x4028 /* Collision Count - R/clr */
#define WMREG_SEC 0x4038 /* Sequence Error Count */
#define WMREG_CEXTERR 0x403c /* Carrier Extension Error Count */
#define WMREG_RLEC 0x4040 /* Receive Length Error Count */
@@ -1302,15 +1302,15 @@
#define RSSRK_NUM_REGS 10
#define WMREG_MANC 0x5820 /* Management Control */
-#define MANC_SMBUS_EN 0x00000001
-#define MANC_ASF_EN 0x00000002
-#define MANC_ARP_EN 0x00002000
-#define MANC_RECV_TCO_RESET 0x00010000
-#define MANC_RECV_TCO_EN 0x00020000
-#define MANC_BLK_PHY_RST_ON_IDE 0x00040000
-#define MANC_RECV_ALL 0x00080000
-#define MANC_EN_MAC_ADDR_FILTER 0x00100000
-#define MANC_EN_MNG2HOST 0x00200000
+#define MANC_SMBUS_EN __BIT(0)
+#define MANC_ASF_EN __BIT(1)
+#define MANC_ARP_EN __BIT(13)
+#define MANC_RECV_TCO_RESET __BIT(16)
+#define MANC_RECV_TCO_EN __BIT(17)
+#define MANC_BLK_PHY_RST_ON_IDE __BIT(18)
+#define MANC_RECV_ALL __BIT(19)
+#define MANC_EN_MAC_ADDR_FILTER __BIT(20)
+#define MANC_EN_MNG2HOST __BIT(21)
#define WMREG_MANC2H 0x5860 /* Management Control To Host - RW */
#define MANC2H_PORT_623 (1 << 5)
Home |
Main Index |
Thread Index |
Old Index