mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
57615c7e86
commit
4e341d7ed1
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue