Re: Memory mapped IO vs Port IO

Mike Fedyk
2003-09-12T21:52:05Z

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