diff options
author | jfv <jfv@FreeBSD.org> | 2007-05-11 21:36:08 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2007-05-11 21:36:08 +0000 |
commit | 16e081d626c5f310f37689b90549421eb9ac88fe (patch) | |
tree | b90aba775299061b9bd4cf27e2449600335a44f3 /sys/dev | |
parent | d500dd8585c7a49953623e9f262f052c5ef98066 (diff) | |
download | FreeBSD-src-16e081d626c5f310f37689b90549421eb9ac88fe.zip FreeBSD-src-16e081d626c5f310f37689b90549421eb9ac88fe.tar.gz |
Mistake in the logic deciding what adapters need
to map the IO BAR. Causing the driver to fail on
th 82542.
Reviewed by:pdeuskar
Approved by:pdeuskar
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/em/if_em.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 3725cd3..d2a7538 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -2506,7 +2506,8 @@ em_allocate_pci_resources(struct adapter *adapter) adapter->hw.hw_addr = (uint8_t *)&adapter->osdep.mem_bus_space_handle; /* Only older adapters use IO mapping */ - if (adapter->hw.mac.type <= e1000_82543) { + if ((adapter->hw.mac.type > e1000_82542) && + (adapter->hw.mac.type < e1000_82571)) { /* Figure our where our IO BAR is ? */ for (rid = PCIR_BAR(0); rid < PCIR_CIS;) { val = pci_read_config(dev, rid, 4); |