aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/net/phantom
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2008-08-27 21:25:06 +0100
committerMichael Brown <mcb30@etherboot.org>2008-08-27 21:25:06 +0100
commitcb6fea069075794f187e269af62ef66339169bbe (patch)
tree940622d7cc3fc9b28d6ae210967921c168d07cc8 /src/drivers/net/phantom
parentbd5189a96d88a27f8c7da29491876ec3790af138 (diff)
downloadipxe-cb6fea069075794f187e269af62ef66339169bbe.zip
ipxe-cb6fea069075794f187e269af62ef66339169bbe.tar.gz
ipxe-cb6fea069075794f187e269af62ef66339169bbe.tar.bz2
[phantom] Fix P3 B1 silicon bug workaround
Commit f58cc3f introduced a temporary workaround for a bug in current prototype silicon, but failed to apply it to all eight PCI functions within the device.
Diffstat (limited to 'src/drivers/net/phantom')
-rw-r--r--src/drivers/net/phantom/phantom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/net/phantom/phantom.c b/src/drivers/net/phantom/phantom.c
index 9d789d6..5644c96 100644
--- a/src/drivers/net/phantom/phantom.c
+++ b/src/drivers/net/phantom/phantom.c
@@ -1861,12 +1861,14 @@ static int phantom_probe ( struct pci_device *pci,
* B2 will have this fixed; remove this hack when B1 is no
* longer in use.
*/
- {
+ for ( i = 0 ; i < 8 ; i++ ) {
uint32_t temp;
+ pci->devfn = PCI_DEVFN ( PCI_SLOT ( pci->devfn ), i );
pci_read_config_dword ( pci, 0xc8, &temp );
pci_read_config_dword ( pci, 0xc8, &temp );
pci_write_config_dword ( pci, 0xc8, 0xf1000 );
}
+ pci->devfn = PCI_DEVFN ( PCI_SLOT ( pci->devfn ), 0 );
/* Allocate dummy DMA buffer and perform initial hardware handshake */
phantom->dma_buf = malloc_dma ( sizeof ( *(phantom->dma_buf) ),