diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2004-09-30 21:19:32 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2004-09-30 21:19:32 +0000 |
commit | 25296d6e7bad28a49513d909feb1771282be7baa (patch) | |
tree | 6908f47e79a82ee4d613186e9ab25cec411167eb /sys | |
parent | 7289089b257290f8bade080bc5eeb4947d0628c4 (diff) |
magic constants... bad... this isn't linux.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_em.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index 1604cde2d31..2f91ca895a6 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -32,7 +32,7 @@ POSSIBILITY OF SUCH DAMAGE. ***************************************************************************/ /*$FreeBSD: if_em.c,v 1.38 2004/03/17 17:50:31 njl Exp $*/ -/* $OpenBSD: if_em.c,v 1.28 2004/09/23 17:45:16 brad Exp $ */ +/* $OpenBSD: if_em.c,v 1.29 2004/09/30 21:19:31 jason Exp $ */ #include "bpfilter.h" #include "vlan.h" @@ -2036,7 +2036,7 @@ em_allocate_pci_resources(struct em_softc * sc) rid = EM_MMBA; for (i = 0; i < 5; i++) { val = pci_conf_read(pa->pa_pc, pa->pa_tag, rid); - if (val & 0x00000001) { + if (PCI_MAPREG_TYPE(val) == PCI_MAPREG_TYPE_IO) { sc->io_rid = rid; break; } |