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]

More than one rtlk8139 card


Hi,

Typo prevented the correct detection of more than one rltk8139 ethernet
device in the same pc.

Patch attached.

Bob

 
Index: devs/eth/rltk/8139/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/rltk/8139/current/ChangeLog,v
retrieving revision 1.4
diff -u -5 -r1.4 ChangeLog
--- devs/eth/rltk/8139/current/ChangeLog	19 Oct 2004 12:24:44 -0000	1.4
+++ devs/eth/rltk/8139/current/ChangeLog	4 Mar 2005 13:57:54 -0000
@@ -1,5 +1,11 @@
+
+2005-03-03  Bob Koninckx <bob.koninckx@fmtc.be>
+
+	* src/if_8139.c: fixed bug that prevented rltk8139_find to find
+	anything but first device.
+
 2004-10-18  Andrew Dyer  <adyer@righthandtech.com>
 
 	* src/if_8139.c (rltk8139_recv): if eth_drv_recv() wants to
 	discard an incoming packet it sets the buffer address == 0. Add a
 	check for this and skip the memcpy if found.
Index: devs/eth/rltk/8139/current/src/if_8139.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/rltk/8139/current/src/if_8139.c,v
retrieving revision 1.4
diff -u -5 -r1.4 if_8139.c
--- devs/eth/rltk/8139/current/src/if_8139.c	19 Oct 2004 12:24:44 -0000	1.4
+++ devs/eth/rltk/8139/current/src/if_8139.c	4 Mar 2005 13:57:54 -0000
@@ -317,12 +317,12 @@
   cyg_uint16 command;
   int found = -1;
 
 
   /* Go through all PCI devices until we find the Nth 8139 chip */
+  pci_device_id = CYG_PCI_NULL_DEVID;
   do {
-    pci_device_id = CYG_PCI_NULL_DEVID;
     if (!cyg_pci_find_matching(&rltk8139_find_match_func, NULL,
                                &pci_device_id))
       return false;
     else
       found += 1;

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