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]

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
 
 
 // ------------------------------------------------------------------------


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