summaryrefslogtreecommitdiff
path: root/board/xilinx/xilinx_enet/emac_adapter.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-03-11 13:48:24 +0100
committerMichal Simek <monstr@monstr.eu>2007-03-11 13:48:24 +0100
commitcfc67116a706fd18b8f6a9c11a16753c5626d689 (patch)
treea8ece1d13504912339bd59cbbc5d29c74c1def4d /board/xilinx/xilinx_enet/emac_adapter.c
parent76316a318de91f6184e7c22a10e02d275ade2441 (diff)
downloadu-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.zip
u-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.tar.gz
u-boot-imx-cfc67116a706fd18b8f6a9c11a16753c5626d689.tar.bz2
[Microblaze][PATCH] part 2
timer support interrupt controller support flash support ethernet support cache support board information support env support booting image support adding support for Xilinx ML401
Diffstat (limited to 'board/xilinx/xilinx_enet/emac_adapter.c')
-rw-r--r--board/xilinx/xilinx_enet/emac_adapter.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/xilinx/xilinx_enet/emac_adapter.c b/board/xilinx/xilinx_enet/emac_adapter.c
index f159cb6..de62695 100644
--- a/board/xilinx/xilinx_enet/emac_adapter.c
+++ b/board/xilinx/xilinx_enet/emac_adapter.c
@@ -147,7 +147,11 @@ eth_rx(void)
RecvFrameLength = PKTSIZE;
Result = XEmac_PollRecv(&Emac, (u8 *) etherrxbuff, &RecvFrameLength);
if (Result == XST_SUCCESS) {
+#ifndef CONFIG_MICROBLAZE
NetReceive((uchar *)etherrxbuff, RecvFrameLength);
+#else
+ NetReceive(etherrxbuff, RecvFrameLength);
+#endif
return (1);
} else {
return (0);