Skip to content
Snippets Groups Projects
Commit 3f91ec0f authored by Michal Simek's avatar Michal Simek Committed by Ben Warren
Browse files

net: Fix emaclite driver to support little-endian microblaze


Support New emaclite AXI IP.

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
parent f87a6f27
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,7 @@ int eth_rx (void)
#endif
}
/* Get the length of the frame that arrived */
switch(((in_be32 (baseaddress + XEL_RXBUFF_OFFSET + 0xC)) &
switch(((ntohl(in_be32 (baseaddress + XEL_RXBUFF_OFFSET + 0xC))) &
0xFFFF0000 ) >> 16) {
case 0x806:
length = 42 + 20; /* FIXME size of ARP */
......@@ -330,7 +330,7 @@ int eth_rx (void)
break;
case 0x800:
length = 14 + 14 +
(((in_be32 (baseaddress + XEL_RXBUFF_OFFSET + 0x10)) &
(((ntohl(in_be32 (baseaddress + XEL_RXBUFF_OFFSET + 0x10))) &
0xFFFF0000) >> 16); /* FIXME size of IP packet */
debug ("IP Packet\n");
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment