diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-03-03 00:08:41 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-03-03 00:08:41 +0000 |
commit | e399fc0d216533a5351631b6bc8bb97c898bc877 (patch) | |
tree | fa12db6c02f61eb68da83b8b02b7c1683174c6e4 /src/drivers/net/prism2_plx.c | |
parent | 06c8a27b742fab53c5072b40b32018eae12eca57 (diff) | |
download | ipxe-e399fc0d216533a5351631b6bc8bb97c898bc877.tar.gz |
[pci] Rewrite unrelicensable portions of pci.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/prism2_plx.c')
-rw-r--r-- | src/drivers/net/prism2_plx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/net/prism2_plx.c b/src/drivers/net/prism2_plx.c index 47e361404..a73b0e087 100644 --- a/src/drivers/net/prism2_plx.c +++ b/src/drivers/net/prism2_plx.c @@ -54,10 +54,10 @@ static int prism2_find_plx ( hfa384x_t *hw, struct pci_device *p ) /* Obtain all memory and IO base addresses */ pci_read_config_dword( p, PLX_LOCAL_CONFIG_REGISTER_BASE, &plx_lcr); - plx_lcr &= PCI_BASE_ADDRESS_IO_MASK; + plx_lcr &= ~PCI_BASE_ADDRESS_IO_MASK; pci_read_config_dword( p, PRISM2_PLX_ATTR_MEM_BASE, &attr_mem); pci_read_config_dword( p, PRISM2_PLX_IO_BASE, &iobase); - iobase &= PCI_BASE_ADDRESS_IO_MASK; + iobase &= ~PCI_BASE_ADDRESS_IO_MASK; /* Fill out hw structure */ hw->iobase = iobase; |