From 48a9aebdec435679f144c79b55a4816db48b5036 Mon Sep 17 00:00:00 2001 From: skrll Date: Mon, 25 Jul 2022 08:29:14 +0000 Subject: [PATCH] Some more BITS(3) --- sys/dev/pci/if_bgevar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/if_bgevar.h b/sys/dev/pci/if_bgevar.h index c86dda0aa417..55bb8051df85 100644 --- a/sys/dev/pci/if_bgevar.h +++ b/sys/dev/pci/if_bgevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_bgevar.h,v 1.29 2022/07/25 08:19:50 skrll Exp $ */ +/* $NetBSD: if_bgevar.h,v 1.30 2022/07/25 08:29:14 skrll Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -314,9 +314,9 @@ struct bge_softc { uint32_t bge_tx_max_coal_bds; uint32_t bge_tx_buf_ratio; uint32_t bge_sts; -#define BGE_STS_LINK 0x00000001 /* MAC link status */ -#define BGE_STS_LINK_EVT 0x00000002 /* pending link event */ -#define BGE_STS_AUTOPOLL 0x00000004 /* PHY auto-polling */ +#define BGE_STS_LINK __BIT(0) /* MAC link status */ +#define BGE_STS_LINK_EVT __BIT(1) /* pending link event */ +#define BGE_STS_AUTOPOLL __BIT(2) /* PHY auto-polling */ #define BGE_STS_BIT(sc, x) ((sc)->bge_sts & (x)) #define BGE_STS_SETBIT(sc, x) ((sc)->bge_sts |= (x)) #define BGE_STS_CLRBIT(sc, x) ((sc)->bge_sts &= ~(x))