diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2013-06-04 09:41:51 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2013-06-04 09:41:51 +0000 |
commit | 1a41f763097a2c1eb12322a38ac70a34079906ae (patch) | |
tree | de15ac8b28b36756aca6ced11faa8cc7b6324fe9 /sys | |
parent | 548b74093a4d281ac029a5eae9f84a07109fad55 (diff) |
Substitute a couple of magic numbers with newly added PCIE
DCTL flag defines. Now with the right defines, doh!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_bge.c | 6 |
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); } |