Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Sprinkle some BITS(3). Same code before and after.



details:   https://anonhg.NetBSD.org/src/rev/d5cf27cd7ce9
branches:  trunk
changeset: 368266:d5cf27cd7ce9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 02 07:22:41 2022 +0000

description:
Sprinkle some BITS(3).  Same code before and after.

diffstat:

 sys/dev/pci/if_bgevar.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 78413a3967c9 -r d5cf27cd7ce9 sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h   Sat Jul 02 07:19:36 2022 +0000
+++ b/sys/dev/pci/if_bgevar.h   Sat Jul 02 07:22:41 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bgevar.h,v 1.27 2022/07/02 07:19:36 skrll Exp $     */
+/*     $NetBSD: if_bgevar.h,v 1.28 2022/07/02 07:22:41 skrll Exp $     */
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -286,11 +286,11 @@
        uint16_t                bge_mps;
        int                     bge_expmrq;
        uint32_t                bge_lasttag;
-       u_int32_t               bge_mfw_flags;  /* Management F/W flags */
-#define        BGE_MFW_ON_RXCPU        0x00000001
-#define        BGE_MFW_ON_APE          0x00000002
-#define        BGE_MFW_TYPE_NCSI       0x00000004
-#define        BGE_MFW_TYPE_DASH       0x00000008
+       uint32_t                bge_mfw_flags;  /* Management F/W flags */
+#define        BGE_MFW_ON_RXCPU        __BIT(0)
+#define        BGE_MFW_ON_APE          __BIT(1)
+#define        BGE_MFW_TYPE_NCSI       __BIT(2)
+#define        BGE_MFW_TYPE_DASH       __BIT(3)
        int                     bge_phy_ape_lock;
        int                     bge_phy_addr;
        uint32_t                bge_chipid;



Home | Main Index | Thread Index | Old Index