This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
FEC - clean up driver
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 15 Aug 2002 07:23:17 -0600
- Subject: FEC - clean up driver
Index: devs/eth/powerpc/fec/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/fec/current/ChangeLog,v
retrieving revision 1.8
diff -u -5 -p -r1.8 ChangeLog
--- devs/eth/powerpc/fec/current/ChangeLog 9 Aug 2002 00:15:28 -0000 1.8
+++ devs/eth/powerpc/fec/current/ChangeLog 15 Aug 2002 13:21:49 -0000
@@ -1,5 +1,10 @@
+2002-08-15 Gary Thomas <gthomas@ecoscentric.com>
+
+ * src/if_fec.c (fec_eth_send):
+ Clean up: remove unused variable _fec_eth_tx_count.
+
2002-08-08 Gary Thomas <gthomas@ecoscentric.com>
* src/if_fec.c (fec_eth_RxEvent): Cache needs to be invalidated
to avoid any possible corruption.
Index: devs/eth/powerpc/fec/current/src/if_fec.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/fec/current/src/if_fec.c,v
retrieving revision 1.8
diff -u -5 -p -r1.8 if_fec.c
--- devs/eth/powerpc/fec/current/src/if_fec.c 9 Aug 2002 00:15:28 -0000 1.8
+++ devs/eth/powerpc/fec/current/src/if_fec.c 13 Aug 2002 18:00:31 -0000
@@ -562,11 +562,11 @@ fec_eth_can_send(struct eth_drv_sc *sc)
return (qi->txactive < CYGNUM_DEVS_ETH_POWERPC_FEC_TxNUM);
}
//
// This routine is called to send data to the hardware.
-int _fec_eth_tx_count = 0;
+
static void
fec_eth_send(struct eth_drv_sc *sc, struct eth_drv_sg *sg_list, int sg_len,
int total_len, unsigned long key)
{
struct fec_eth_info *qi = (struct fec_eth_info *)sc->driver_private;
@@ -610,11 +610,10 @@ fec_eth_send(struct eth_drv_sc *sc, stru
#ifndef FEC_USE_EPPC_BD
if (cache_state) {
HAL_DCACHE_FLUSH(fec_eth_txring, sizeof(fec_eth_txring)); // Make sure no stale data
}
#endif
- _fec_eth_tx_count++;
qi->txactive++;
qi->fec->TxUpdate = 0x01000000; // Any write tells machine to look for work
set_led(LED_TxACTIVE);
// Remember the next buffer to try
if (txbd->ctrl & FEC_BD_Tx_Wrap) {
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------