summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikeb <mikeb@openbsd.org>2013-06-04 09:41:50 +0000
committermikeb <mikeb@openbsd.org>2013-06-04 09:41:50 +0000
commit8d6fcf3c9a48968ade63fbbdfccb21530ef30bc1 (patch)
tree5828415e233767802af242af1ea0978640818858
parentSubstitute a couple of magic numbers with newly added PCIE (diff)
downloadwireguard-openbsd-8d6fcf3c9a48968ade63fbbdfccb21530ef30bc1.tar.xz
wireguard-openbsd-8d6fcf3c9a48968ade63fbbdfccb21530ef30bc1.zip
Substitute a couple of magic numbers with newly added PCIE
DCTL flag defines. Now with the right defines, doh!
-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 5f72295fd2b..90409cf9a5c 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.331 2013/06/04 09:36:20 mikeb Exp $ */
+/* $OpenBSD: if_bge.c,v 1.332 2013/06/04 09:41:50 mikeb Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -3160,8 +3160,8 @@ bge_reset(struct bge_softc *sc)
/* Set PCI Express max payload size. */
devctl = (devctl & ~PCI_PCIE_DCSR_MPS) | sc->bge_expmrq;
/* Clear error status. */
- devctl |= PCI_PCIE_DCSR_CED | PCI_PCIE_DCSR_NED |
- PCI_PCIE_DCSR_FED | PCI_PCIE_DCSR_URD;
+ devctl |= PCI_PCIE_DCSR_CEE | PCI_PCIE_DCSR_NFE |
+ PCI_PCIE_DCSR_FEE | PCI_PCIE_DCSR_URE;
pci_conf_write(pa->pa_pc, pa->pa_tag, sc->bge_expcap +
PCI_PCIE_DCSR, devctl);
}