This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

misc - minor cleanups


Just some [cosmetic] things I had lying around...

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: io/eth/current/src/stand_alone/eth_drv.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/io/eth/current/src/stand_alone/eth_drv.c,v
retrieving revision 1.20
diff -u -5 -p -r1.20 eth_drv.c
--- io/eth/current/src/stand_alone/eth_drv.c	9 Oct 2003 20:23:52 -0000	1.20
+++ io/eth/current/src/stand_alone/eth_drv.c	14 Dec 2003 20:15:58 -0000
@@ -291,11 +291,11 @@ eth_drv_write(char *eth_hdr, char *buf, 
         if (--wait_time <= 0)
             goto reset_and_out;  // Give up on sending packet
     }
 
     sg_list[0].buf = (CYG_ADDRESS)eth_hdr;
-    sg_list[0].len = 14;  // FIXME
+    sg_list[0].len = (6+6+2);  // FIXME
     sg_list[1].buf = (CYG_ADDRESS)buf;
     sg_list[1].len = len;
     packet_sent = 0;
 #ifdef CYGDBG_IO_ETH_DRIVERS_DEBUG
     if (cyg_io_eth_net_debug) {
Index: devs/eth/powerpc/fec/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/fec/current/ChangeLog,v
retrieving revision 1.20
diff -u -5 -p -r1.20 ChangeLog
--- devs/eth/powerpc/fec/current/ChangeLog	6 Oct 2003 12:18:13 -0000	1.20
+++ devs/eth/powerpc/fec/current/ChangeLog	21 Dec 2003 13:45:18 -0000
@@ -1,5 +1,9 @@
+2003-12-21  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/if_fec.c (fec_eth_RxEvent): Clean up some unused variables.
+
 2003-10-06  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/fec_eth_drivers.cdl: Disable STATUS_LEDS by default since these
 	are mostly useful for debugging and get in the way of "normal" LED use.
 
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.17
diff -u -5 -p -r1.17 if_fec.c
--- devs/eth/powerpc/fec/current/src/if_fec.c	4 May 2003 17:37:10 -0000	1.17
+++ devs/eth/powerpc/fec/current/src/if_fec.c	14 Dec 2003 20:16:34 -0000
@@ -670,14 +670,11 @@ fec_eth_send(struct eth_drv_sc *sc, stru
 static void
 fec_eth_RxEvent(struct eth_drv_sc *sc)
 {
     struct fec_eth_info *qi = (struct fec_eth_info *)sc->driver_private;
     volatile struct fec_bd *rxbd, *rxfirst;
-    int cache_state;
 
-    // Note: the MPC8xx does not seem to snoop/invalidate the data cache properly!
-    HAL_DCACHE_IS_ENABLED(cache_state);
     rxbd = rxfirst = qi->rnext;
     while (true) {
         if ((rxbd->ctrl & FEC_BD_Rx_Empty) == 0) {
             qi->rxbd = rxbd;  // Save for callback
             set_led(LED_RxACTIVE);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]