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]

ETH - Improve i82559 driver with CDL control


Index: devs/eth/intel/i82559/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/intel/i82559/current/ChangeLog,v
retrieving revision 1.17
diff -u -5 -p -r1.17 ChangeLog
--- devs/eth/intel/i82559/current/ChangeLog	24 Dec 2002 16:00:45 -0000	1.17
+++ devs/eth/intel/i82559/current/ChangeLog	3 Jan 2003 14:48:07 -0000
@@ -1,5 +1,11 @@
+2003-01-03  Gary Thomas  <gary@mlbassoc.com>
+
+	* src/if_i82559.c: 
+	* cdl/intel_i82559_eth_drivers.cdl: Allow finer control over
+	debug (chatter) by making control booldata.
+
 2002-12-17  Mark Salter  <msalter@redhat.com>
 
 	* src/if_i82559.c (CYGHWR_DEVS_ETH_INTEL_I82559_ENDIAN_NEUTRAL_IO): New
 	flag to support systems where PCI IO operations are not affected by
 	CPU endianess.
Index: devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl,v
retrieving revision 1.6
diff -u -5 -p -r1.6 intel_i82559_eth_drivers.cdl
--- devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl	23 May 2002 23:00:43 -0000	1.6
+++ devs/eth/intel/i82559/current/cdl/intel_i82559_eth_drivers.cdl	3 Jan 2003 14:47:52 -0000
@@ -7,10 +7,11 @@
 # ====================================================================
 #####ECOSGPLCOPYRIGHTBEGIN####
 ## -------------------------------------------
 ## This file is part of eCos, the Embedded Configurable Operating System.
 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+## Copyright (C) 2003 Gary Thomas
 ##
 ## eCos is free software; you can redistribute it and/or modify it under
 ## the terms of the GNU General Public License as published by the Free
 ## Software Foundation; either version 2 or (at your option) any later version.
 ##
@@ -74,17 +75,20 @@ cdl_package CYGPKG_DEVS_ETH_INTEL_I82559
 
     compile       -library=libextras.a if_i82559.c
 
     cdl_option CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER {
 	display "Prints ethernet device status info during startup"
+        flavor        booldata
 	default_value 0
 	description   "
-	    The ethernet device initialization code can print lots of info
+	    Definining this will cause the ethernet device initialization code 
+            to print lots of info
 	    to confirm that it has found the devices on the PCI bus, read
 	    the MAC address from EEPROM correctly, and so on, and also
 	    displays the mode (10/100MHz, half/full duplex) of the
-	    connection."
+	    connection.  If the value is set higher than one then
+            additional information about each packet sent will be printed."
     }
 
     cdl_option CYGNUM_DEVS_ETH_INTEL_I82559_DEV_COUNT {
 	display "Number of supported interfaces."
 	calculated    { CYGINT_DEVS_ETH_INTEL_I82559_REQUIRED }
Index: devs/eth/intel/i82559/current/src/if_i82559.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/intel/i82559/current/src/if_i82559.c,v
retrieving revision 1.17
diff -u -5 -p -r1.17 if_i82559.c
--- devs/eth/intel/i82559/current/src/if_i82559.c	24 Dec 2002 16:00:45 -0000	1.17
+++ devs/eth/intel/i82559/current/src/if_i82559.c	3 Jan 2003 14:48:08 -0000
@@ -7,11 +7,11 @@
 //==========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
-// Copyright (C) 2002 Gary Thomas
+// Copyright (C) 2002, 2003 Gary Thomas
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
 // Software Foundation; either version 2 or (at your option) any later version.
 //
@@ -218,13 +218,15 @@
 #endif
 
 // ------------------------------------------------------------------------
 
 #ifdef CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER
-#define notDEBUG_82559 // This one prints stuff as packets come and go
 #define DEBUG          // Startup printing mainly
 #define DEBUG_EE       // Some EEPROM specific retries &c
+#if (CYGDBG_DEVS_ETH_INTEL_I82559_CHATTER > 1)
+#define DEBUG_82559 // This one prints stuff as packets come and go
+#endif
 #endif
 
 #ifdef CYGDBG_USE_ASSERTS
 static struct {
     int can_send;


-- 
------------------------------------------------------------
Gary Thomas                 |
MLB Associates              |  Consulting for the
+1 (970) 229-1963           |    Embedded world
http://www.mlbassoc.com/    |
email: <gary@mlbassoc.com>  |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------


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