This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RE: i82559 using large EEPROM
- From: "Daly, Jeffrey" <jeffrey dot daly at intel dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: <ecos-patches at ecos dot sourceware dot org>
- Date: Sun, 18 Jan 2004 09:32:24 -0500
- Subject: RE: i82559 using large EEPROM
Hi Andrew,
Could you back out that patch? I submitted a more complete one
(including the ChangeLog) via bugzilla, sorry about the confusion.
-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch]
Sent: Saturday, January 17, 2004 11:17 AM
To: Daly, Jeffrey
Cc: ecos-patches@ecos.sourceware.org
Subject: Re: i82559 using large EEPROM
On Thu, Jan 15, 2004 at 05:15:02PM -0500, Daly, Jeffrey wrote:
> we might be the only ones in the world using this, but the i82559
> eeprom can be either 0x40 or 0x100 in size.... hopefully this is
> attached in the correct format (MS Outlook user, beware!) if not,
> berate me :)
The patch applied OK, but please could you include a ChangeLog entry
next time.
Thanks
Andrew
Index: devs/eth/intel/i82559//current/ChangeLog
===================================================================
RCS file:
/cvs/ecos/ecos/packages/devs/eth/intel/i82559/current/ChangeLog,v
retrieving revision 1.22
diff -u -r1.22 ChangeLog
--- devs/eth/intel/i82559//current/ChangeLog 5 Jan 2004 21:58:32
-0000 1.22
+++ devs/eth/intel/i82559//current/ChangeLog 17 Jan 2004 16:16:45
-0000
@@ -1,3 +1,7 @@
+2004-01-17 Jeffrey Daly <jeffrey.daly@intel.com>
+
+ * src/if_i82559.c (read_eeprom_esa): Allow bigger EEPROMs to
work.
+
2004-01-05 Gary Thomas <gary@mlbassoc.com>
* src/if_i82559.c: Names of FLASH config types changed.
Index: devs/eth/intel/i82559//current/src/if_i82559.c
===================================================================
RCS file:
/cvs/ecos/ecos/packages/devs/eth/intel/i82559/current/src/if_i82559.c,v
retrieving revision 1.24
diff -u -r1.24 if_i82559.c
--- devs/eth/intel/i82559//current/src/if_i82559.c 5 Jan 2004
21:58:32 -0000 1.24
+++ devs/eth/intel/i82559//current/src/if_i82559.c 17 Jan 2004
16:16:55 -0000
@@ -1342,7 +1342,8 @@
p_i82559->index);
#endif
} else {
- for (checksum = 0, i = 0, count = 0; count < 64; count++) {
+ for (checksum = 0, i = 0, count = 0;
+ count < (1 << addr_length); count++) {
cyg_uint16 value;
// read word from eeprom
value = read_eeprom(ioaddr, count, addr_length);