summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-11-21 12:37:17 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-11-21 12:37:17 +0000
commit2a48e53c56589d48cfbdbca505e50eb9d3feff8a (patch)
tree86dab8a9d4f6a2763a847ce2fddd670b36f34fe4
parent09f988d4b6b10047df794b0fef33dc380c234fd4 (diff)
Correct the test for requiring a 64 bit mem bar.
ok mikeb@ who tested on 82599, x540 and x550.
-rw-r--r--sys/dev/pci/if_ix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index edd3ab2212c..541e75c0fba 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.139 2016/11/21 12:05:28 mikeb Exp $ */
+/* $OpenBSD: if_ix.c,v 1.140 2016/11/21 12:37:16 jsg Exp $ */
/******************************************************************************
@@ -1516,8 +1516,8 @@ ixgbe_allocate_pci_resources(struct ix_softc *sc)
int val;
val = pci_conf_read(pa->pa_pc, pa->pa_tag, PCIR_BAR(0));
- if (PCI_MAPREG_TYPE(val) != PCI_MAPREG_TYPE_MEM &&
- PCI_MAPREG_TYPE(val) != PCI_MAPREG_MEM_TYPE_64BIT) {
+ if (PCI_MAPREG_TYPE(val) != PCI_MAPREG_TYPE_MEM ||
+ PCI_MAPREG_MEM_TYPE(val) != PCI_MAPREG_MEM_TYPE_64BIT) {
printf(": mmba is not mem space\n");
return (ENXIO);
}