summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/dmv177/sonic
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-12 23:53:23 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-12 23:53:23 +0000
commitae320e0f3ce0698e0d9b6fcdc30d70c227a417b4 (patch)
tree391b63e774e3b237316ae51422353c39c8882b88 /c/src/lib/libbsp/powerpc/dmv177/sonic
parentAdded more debug information. There are probably debug prints left in. (diff)
downloadrtems-ae320e0f3ce0698e0d9b6fcdc30d70c227a417b4.tar.bz2
Removed spurious prints and cleaned up XXX.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/dmv177/sonic')
-rw-r--r--c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c b/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
index c6eb379251..1ff0726df0 100644
--- a/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
+++ b/c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c
@@ -309,7 +309,6 @@ SONIC_STATIC int sonic_stop (struct iface *iface)
struct sonic *dp = &sonic[iface->dev];
void *rp = dp->sonic;
-printf( "sonic_stop\n" );
/*
* Stop the transmitter and receiver.
*/
@@ -502,12 +501,11 @@ SONIC_STATIC void sonic_retire_tda (struct sonic *dp)
dp->txLostCarrier++;
/*
- * Free the packet
+ * Free the packet and reset a couple of fields
*/
dp->tdaActiveCount--;
free_p ((struct mbuf **)&dp->tdaTail->mbufp);
-/* XXX this does not help when you wrap */
dp->tdaTail->frag[0].frag_link = LSW(dp->tdaTail->link_pad);
dp->tdaTail->frag_count = 0;
@@ -560,7 +558,9 @@ SONIC_STATIC int sonic_raw (struct iface *iface, struct mbuf **bpp)
* txWaitTid variable.
*/
if (dp->txWaitTid) {
-printf( "TX: conflict delay\n" );
+#if (SONIC_DEBUG & SONIC_DEBUG_FRAGMENTS)
+ printf( "TX: conflict delay\n" );
+#endif
dp->txRawWait++;
while (dp->txWaitTid)
rtems_ka9q_ppause (10);
@@ -575,7 +575,9 @@ printf( "TX: conflict delay\n" );
* Wait for transmit descriptor to become available.
*/
if (dp->tdaActiveCount == dp->tdaCount) {
-puts( "Wait for more TDAs" );
+#if (SONIC_DEBUG & SONIC_DEBUG_FRAGMENTS)
+ puts( "Wait for more TDAs" );
+#endif
/*
* Find out who we are
*/
@@ -852,8 +854,8 @@ SONIC_STATIC void sonic_rx (int dev, void *p1, void *p2)
int continuousCount;
rwp = dp->rsa;
- rea = dp->rea; /* XXX was rwp; */
- rdp = dp->rda; /* XXX was rdp_last */
+ rea = dp->rea;
+ rdp = dp->rda;
/*
* Start the receiver
@@ -887,7 +889,6 @@ SONIC_STATIC void sonic_rx (int dev, void *p1, void *p2)
struct mbuf **mbp;
void *p;
-/* printf( "Valid packet\n" ); */
/*
* Get the mbuf pointer
*/
@@ -904,7 +905,6 @@ SONIC_STATIC void sonic_rx (int dev, void *p1, void *p2)
* Invalidate cache entries for this memory.
*/
bp->cnt = rdp->byte_count - sizeof (uint32);
-/* printf( "Routing the packet\n" ); */
net_route (iface, &bp);
/*
@@ -983,7 +983,6 @@ SONIC_STATIC void sonic_rx (int dev, void *p1, void *p2)
/*
* Move to next receive descriptor
*/
- /* rdp->link |= RDA_LINK_EOL; XXX */
rdp->in_use = RDA_FREE;
rdp = rdp->next;
rdp->link &= ~RDA_LINK_EOL;
@@ -1048,7 +1047,7 @@ SONIC_STATIC void sonic_initialize_hardware(
* are set to zero by sonic_allocate.
*/
-/* XXX not used by other drivers we looked at
+/* XXX not used by the BSD drivers
if (i & 1)
tdp->pkt_config = TDA_CONFIG_PINT;
*/