summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-03 23:03:54 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-03 23:03:54 +0200
commit6dfa434e326babbf0209bfae01bb57424924d2a9 (patch)
treeb963866b93f35aa95099fa44366bd1d0dc81d8cf /cpu
parent507d3b0cdef8ae85e3ad6a60ddde1c721f38b6bb (diff)
Ignore broadcast status bit in received frames in 8260 FCC ethernet
loopback test code Patch by Murray Jensen, 18 Jul 2005
Diffstat (limited to 'cpu')
-rw-r--r--cpu/mpc8260/ether_fcc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpu/mpc8260/ether_fcc.c b/cpu/mpc8260/ether_fcc.c
index 82f73907099..0393afabc27 100644
--- a/cpu/mpc8260/ether_fcc.c
+++ b/cpu/mpc8260/ether_fcc.c
@@ -628,6 +628,9 @@ swap16 (unsigned short x)
return (((x & 0xff) << 8) | ((x & 0xff00) >> 8));
}
+/* broadcast is not an error - we send them like that */
+#define BD_ENET_RX_ERRS (BD_ENET_RX_STATS & ~BD_ENET_RX_BC)
+
void
eth_loopback_test (void)
{
@@ -1002,7 +1005,7 @@ eth_loopback_test (void)
ecp->rxeacc._f++;
}
- if (sc & BD_ENET_RX_STATS) {
+ if (sc & BD_ENET_RX_ERRS) {
ulong n;
/*
@@ -1033,7 +1036,7 @@ eth_loopback_test (void)
ecp->rxeacc.cl++;
bdp->cbd_sc &= \
- ~BD_ENET_RX_STATS;
+ ~BD_ENET_RX_ERRS;
}
else {
ushort datlen = bdp->cbd_datlen;