This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
More than one rtlk8139 card
- From: Bob Koninckx <bob dot koninckx at fmtc dot be>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 04 Mar 2005 15:01:46 +0100
- Subject: More than one rtlk8139 card
- Organization: FMTC
- Reply-to: bob dot koninckx at fmtc dot be
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;