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
This commit is contained in:
jfv 2007-05-11 21:36:08 +00:00
parent d500dd8585
commit 16e081d626

View File

@ -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);