summaryrefslogtreecommitdiffstats
path: root/sys/dev/em/if_em.c
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2007-05-11 21:36:08 +0000
committerjfv <jfv@FreeBSD.org>2007-05-11 21:36:08 +0000
commit16e081d626c5f310f37689b90549421eb9ac88fe (patch)
treeb90aba775299061b9bd4cf27e2449600335a44f3 /sys/dev/em/if_em.c
parentd500dd8585c7a49953623e9f262f052c5ef98066 (diff)
downloadFreeBSD-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/em/if_em.c')
-rw-r--r--sys/dev/em/if_em.c3
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);
OpenPOWER on IntegriCloud