diff options
| author | skrll <skrll@NetBSD.org> | 2022-07-25 08:29:14 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2022-07-25 08:29:14 +0000 |
| commit | 0466332097198228db2cf917be221986c5eff3dc (patch) | |
| tree | e7fcef04a9102cc5f933e292c66720aa4a0ba736 /sys/dev | |
| parent | cdfe44deb8bd617ba7ba6e2e3408f15efd64f87c (diff) | |
Some more BITS(3)
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_bgevar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bgevar.h b/sys/dev/pci/if_bgevar.h index c86dda0aa41..55bb8051df8 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)) |
