diff options
author | Michael Brown | 2015-03-03 01:08:41 +0100 |
---|---|---|
committer | Michael Brown | 2015-03-03 01:08:41 +0100 |
commit | e399fc0d216533a5351631b6bc8bb97c898bc877 (patch) | |
tree | fa12db6c02f61eb68da83b8b02b7c1683174c6e4 /src/drivers/net/forcedeth.c | |
parent | [pci] Remove outdated and mostly-unused pci_ids.h file (diff) | |
download | ipxe-e399fc0d216533a5351631b6bc8bb97c898bc877.tar.gz ipxe-e399fc0d216533a5351631b6bc8bb97c898bc877.tar.xz ipxe-e399fc0d216533a5351631b6bc8bb97c898bc877.zip |
[pci] Rewrite unrelicensable portions of pci.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/forcedeth.c')
-rw-r--r-- | src/drivers/net/forcedeth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/drivers/net/forcedeth.c b/src/drivers/net/forcedeth.c index d8ece9a7..79938cbb 100644 --- a/src/drivers/net/forcedeth.c +++ b/src/drivers/net/forcedeth.c @@ -1749,10 +1749,8 @@ forcedeth_map_regs ( struct forcedeth_private *priv ) for ( reg = PCI_BASE_ADDRESS_0; reg <= PCI_BASE_ADDRESS_5; reg += 4 ) { pci_read_config_dword ( priv->pci_dev, reg, &bar ); - if ( ( ( bar & PCI_BASE_ADDRESS_SPACE ) == - PCI_BASE_ADDRESS_SPACE_MEMORY ) && - ( pci_bar_size ( priv->pci_dev, reg ) >= - register_size ) ) { + if ( ( ! ( bar & PCI_BASE_ADDRESS_SPACE_IO ) ) && + ( pci_bar_size ( priv->pci_dev, reg ) >= register_size ) ){ addr = pci_bar_start ( priv->pci_dev, reg ); break; } |