summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Hajnoczi2010-01-22 19:12:48 +0100
committerMarty Connor2010-01-25 23:04:39 +0100
commit5835ed5746590960d99a6366b13347046fbade82 (patch)
tree05176dc314d69cacf778bc18ba5f734c3c4f8865
parent[natsemi] Convert stray mmio readl() to pio inl() (diff)
downloadipxe-5835ed5746590960d99a6366b13347046fbade82.tar.gz
ipxe-5835ed5746590960d99a6366b13347046fbade82.tar.xz
ipxe-5835ed5746590960d99a6366b13347046fbade82.zip
[rtl818x] Remove broken mmio register support
The rtl818x driver uses programmed I/O but has a fallback to memory-mapped I/O registers. The fallback currently will not work since the registers are accessed using inl()/outl() programmed I/O functions in the driver. This patch removes the fallback to we fail cleanly when programmed I/O is not possible. Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Joshua Oreman <oremanj@rwcr.net> Signed-off-by: Marty Connor <mdc@etherboot.org>
-rw-r--r--src/drivers/net/rtl818x/rtl818x.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/net/rtl818x/rtl818x.c b/src/drivers/net/rtl818x/rtl818x.c
index 167409d8..7c7ca488 100644
--- a/src/drivers/net/rtl818x/rtl818x.c
+++ b/src/drivers/net/rtl818x/rtl818x.c
@@ -680,9 +680,6 @@ static int rtl818x_probe(struct pci_device *pdev,
dev->netdev->dev = &pdev->dev;
priv->map = (struct rtl818x_csr *)pdev->ioaddr;
- if (!priv->map)
- priv->map = (struct rtl818x_csr *)pdev->membase;
-
if (!priv->map) {
DBG("rtl818x: cannot find device memory\n");
err = -ENXIO;