Re: [PATCH] Driver for IXP4xx built-in Ethernet ports
From: Krzysztof Halasa
Date: Fri May 02 2008 - 18:09:29 EST
Jeff Garzik <jeff@xxxxxxxxxx> writes:
> the ifdefs are really ugly and want cleaning, but the rest seems
> sane. applied
Thanks.
They (#ifdef __ARMEB__) are indeed very ugly but I don't know how to
clean them, except by splitting the driver into two (which is worse).
The most used things are #defined and then used without those
__ARMEB__ checks.
Duplicating those functions is effectively splitting into two :-(
Well, perhaps Intel could give us firmware which could convert LE-BE
on the fly while TX/RX, that would make the LE code go away.
Binary-only :-(
OTOH I could convert #if* DEBUG_*, I will look at it.
--
Krzysztof Halasa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/