summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/prism2_plx.c
diff options
context:
space:
mode:
authorMichael Brown2015-03-03 01:08:41 +0100
committerMichael Brown2015-03-03 01:08:41 +0100
commite399fc0d216533a5351631b6bc8bb97c898bc877 (patch)
treefa12db6c02f61eb68da83b8b02b7c1683174c6e4 /src/drivers/net/prism2_plx.c
parent[pci] Remove outdated and mostly-unused pci_ids.h file (diff)
downloadipxe-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/prism2_plx.c')
-rw-r--r--src/drivers/net/prism2_plx.c4
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;