Re: Memory mapped IO vs Port IO

From: Mike Fedyk
Date: Fri Sep 12 2003 - 16:53:10 EST


On Fri, Sep 12, 2003 at 05:41:47PM +0100, John Bradford wrote:
> #ifdef CONFIG_MMIO
> writel(... );
> readl(... );
> #endif
> #ifdef CONFIG_NO_MMIO
> outl(... );
> inl(...);
> #endif
> #ifdef CONFIG_DONT_CARE_MMIO
> if (dev->mmio) {
> writel(... );
> readl(... );
> } else {
> outl(... );
> inl(... );
> }
> #endif

If there's already a config option that keeps code from being compiled when
it's not used, then it should stay.

I'm all for a bunch of config options hidden away in broader questions in
the config system...
-
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/