linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* wrong definition in cpm_8260.h?
@ 2003-01-22 11:03 Shen Rong
  2003-01-22 14:54 ` Joakim Tjernlund
  0 siblings, 1 reply; 9+ messages in thread
From: Shen Rong @ 2003-01-22 11:03 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

In cpm_8260.h, BD_ENET_RX_STATS is defined to 0x1ff, which leads
to the fcc driver can't clean the BD_ENET_RX_LAST&BD_ENET_RX_FIRST bits
with the following statement:
    bdp->cbd_sc &= ~BD_ENET_RX_STATS;

The first&last bits are set by the CPM not the CPU, so they
should be cleared after the frame is received. So it should be:

#define BD_ENET_RX_STATS ((ushort)0x0fff) /* All status bits */

The same problem in ppcboot.


Shenrong


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-01-24  2:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22 11:03 wrong definition in cpm_8260.h? Shen Rong
2003-01-22 14:54 ` Joakim Tjernlund
2003-01-22 18:04   ` Dan Malek
2003-01-22 21:33     ` Joakim Tjernlund
2003-01-22 22:20       ` Dan Malek
2003-01-22 23:08         ` Joakim Tjernlund
2003-01-23  2:04           ` Shen Rong
2003-01-23 15:45             ` Dan Malek
2003-01-24  2:20               ` Shen Rong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).