Re: [RFC] I/O Access Abstractions

From: David Woodhouse (
Date: Mon Jul 02 2001 - 09:22:56 EST said:
> But it's going to cost for the ones who do not support this.

You don't need to make it out-of-line for all cases - or indeed in any case
where it isn't out-of-line already. Some architectures may have only IO
calls out-of-line (many already do). Some may have MMIO calls out-of-line
too - some already do that too.

It would just be nice to have a standard way of doing it, and in particular
it would be nice to pass the struct resource into the out-of-line functions
in the case where they _are_ out of line, so that the Iyou/O functions don't
have to play evil tricks with the numbers they're given to work out which bus
the caller wanted to talk to.

#define res_readb(res, adr) (res->access_ops->readb(res, adr)
#define res_readb(res, adr) readb(adr)



- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to More majordomo info at Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:10 EST