Incoming to hostme.bitkeeper.com:/ua/repos/p/ppc/linuxppc_2_4_devel

Tom Rini trini at kernel.crashing.org
Fri Nov 9 08:47:04 EST 2001


On Thu, Nov 08, 2001 at 04:40:30PM -0500, Dan Malek wrote:
> Tom Rini wrote:
>
>
> >I was thinking about this a bit.  The problem is that we have multiple
> >types of serial controllers we need to 'init' some how.
>
> This is because I tried to use the same functions across a wide variety
> of boards.  All we need to do is define a macro in a board specific
> file someplace that calls the proper init function.

Yes, but then you end up with lots and lots of files with just a few
lines, or:
#if defined(A) || defined(B) || defined(C) || ... || defined(W)
#define serial_init(a) foo_init(a)
#endif

#if defined(X) || defined(Y) || ... || defined(Z)
#define serial_init(a) bar_init(a)
#endif

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list