This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
ATLAS ethernet driver fix
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: 13 Mar 2003 18:54:08 +0000
- Subject: ATLAS ethernet driver fix
Applied to both trunk and v2.0 branch.
Note that this *does not* make the atlas ethernet driver work in eCos,
it just stops it causing compilation errors.
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/mips/atlas/current/ChangeLog,v
retrieving revision 1.6
diff -u -5 -r1.6 ChangeLog
--- ChangeLog 14 Jun 2002 22:01:30 -0000 1.6
+++ ChangeLog 13 Mar 2003 18:49:09 -0000
@@ -1,5 +1,16 @@
+2003-03-13 Nick Garnett <nickg at balti dot calivar dot com>
+
+ * cdl/atlas_eth_drivers.cdl:
+ Changed CYGPKG_DEVS_ETH_ARM_ATLAS_OPTIONS to
+ CYGPKG_DEVS_ETH_MIPS_ATLAS_OPTIONS.
+
+ * src/if_atlas.c (atlas_saa9730_init): ifdeffed out bogus code to
+ set MAC address in non-redboot configuration just to make it
+ compile. Note that there are other problems with this driver in
+ eCos.
+
2002-06-14 Gary Thomas <gary at chez-thomas dot org>
* src/if_atlas.c:
Need to include <pkgconf/io_eth_drivers.h> for proper configuration
of stand-alone (polled) vs. system (interrupt driven) mode.
Index: cdl/atlas_eth_drivers.cdl
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/mips/atlas/current/cdl/atlas_eth_drivers.cdl,v
retrieving revision 1.3
diff -u -5 -r1.3 atlas_eth_drivers.cdl
--- cdl/atlas_eth_drivers.cdl 23 May 2002 23:00:43 -0000 1.3
+++ cdl/atlas_eth_drivers.cdl 13 Mar 2003 18:49:09 -0000
@@ -84,11 +84,11 @@
cdl_component CYGPKG_DEVS_ETH_MIPS_ATLAS_OPTIONS {
display "MIPS Atlas ethernet driver build options"
flavor none
no_define
- cdl_option CYGPKG_DEVS_ETH_ARM_ATLAS_CFLAGS_ADD {
+ cdl_option CYGPKG_DEVS_ETH_MIPS_ATLAS_CFLAGS_ADD {
display "Additional compiler flags"
flavor data
no_define
default_value { "-D_KERNEL -D__ECOS" }
description "
Index: src/if_atlas.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/devs/eth/mips/atlas/current/src/if_atlas.c,v
retrieving revision 1.6
diff -u -5 -r1.6 if_atlas.c
--- src/if_atlas.c 14 Jun 2002 22:01:32 -0000 1.6
+++ src/if_atlas.c 13 Mar 2003 18:49:10 -0000
@@ -525,15 +525,17 @@
#if defined(CYGPKG_REDBOOT) && \
defined(CYGSEM_REDBOOT_FLASH_CONFIG) && \
!defined(CYGSEM_ARM_ATLAS_SET_ESA)
flash_get_config("atlas_esa", enaddr, CONFIG_ESA);
#else
+#if 0
for (i = 0; i < ETHER_ADDR_LEN; i += 2) {
unsigned short esa_reg = get_reg(PP_IA+i);
enaddr[i] = esa_reg & 0xFF;
enaddr[i+1] = esa_reg >> 8;
}
+#endif
#endif
saa9730_reset(spd);
// Initialize upper level driver
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts