summaryrefslogtreecommitdiff
path: root/drivers/dc2114x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dc2114x.c')
-rw-r--r--drivers/dc2114x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dc2114x.c b/drivers/dc2114x.c
index e1147c0097..75bc618502 100644
--- a/drivers/dc2114x.c
+++ b/drivers/dc2114x.c
@@ -169,7 +169,11 @@ static void dc21x4x_halt(struct eth_device* dev);
extern void dc21x4x_select_media(struct eth_device* dev);
#endif
+#if defined(CONFIG_E500)
+#define phys_to_bus(a) (a)
+#else
#define phys_to_bus(a) pci_phys_to_mem((pci_dev_t)dev->priv, a)
+#endif
static int INL(struct eth_device* dev, u_long addr)
{