summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2013-07-11 11:25:43 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2013-07-11 11:25:43 +0000
commitdcc538a3a4f8134b9585f37efa8cfb40cdb46f87 (patch)
treeb2c97757d2c106e97e42479b4649553fba1fc211 /sys/dev/pci
parented99b34f892ff9cd673fc42977afb7068de84fad (diff)
use fls as initially intended
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_bge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index a4a73b94dc7..5469768086b 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.337 2013/06/28 11:59:42 mikeb Exp $ */
+/* $OpenBSD: if_bge.c,v 1.338 2013/07/11 11:25:42 mikeb Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2555,9 +2555,9 @@ bge_attach(struct device *parent, struct device *self, void *aux)
sc->bge_mps = 128 << (reg & 0x7);
if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5719 ||
BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5720)
- sc->bge_expmrq = 0x4000; /* (fls(2048) - 8) << 12 */
+ sc->bge_expmrq = (fls(2048) - 8) << 12;
else
- sc->bge_expmrq = 0x5000; /* (fls(4096) - 8) << 12 */
+ sc->bge_expmrq = (fls(4096) - 8) << 12;
/* Disable PCIe Active State Power Management (ASPM). */
reg = pci_conf_read(pa->pa_pc, pa->pa_tag,
sc->bge_expcap + PCI_PCIE_LCSR);