This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
patch to smsc_lan91cxx.h
- From: Gary Parnes <GaryP at logicpd dot com>
- To: "'ecos-patches at sources dot redhat dot com'" <ecos-patches at sources dot redhat dot com>
- Date: Tue, 16 Dec 2003 10:04:14 -0600
- Subject: patch to smsc_lan91cxx.h
My first patch...
The SMSC LAN91CXX driver allows you to override all low-level access
functions, save one: get_banksel()
This patch allows get_banksel() to be overridden in the same way as the
others.
--Gary Parnes
SENIOR SOFTWARE ENGINEER
Logic Product Development
411 Washington Ave. North, Suite 101
Minneapolis, MN 55401
Main: (612) 672-9495
Direct: (612) 436-5165
Index: smsc_lan91cxx.h
===================================================================
RCS file:
/cvs/ecos/ecos/packages/devs/eth/smsc/lan91cxx/current/src/smsc_lan91cxx.h,v
retrieving revision 1.10
diff -u -r1.10 smsc_lan91cxx.h
--- smsc_lan91cxx.h 5 Dec 2003 17:09:49 -0000 1.10
+++ smsc_lan91cxx.h 16 Dec 2003 15:53:31 -0000
@@ -421,6 +421,7 @@
// ------------------------------------------------------------------------
// Read the bank register (this one is bank-independent)
+#ifndef SMSC_PLATFORM_DEFINED_GET_BANKSEL
static __inline__ unsigned short
get_banksel(struct eth_drv_sc *sc)
{
@@ -435,6 +436,7 @@
#endif
return val;
}
+#endif
// ------------------------------------------------------------------------