On 10/26/2010 08:33 PM, Blue Swirl wrote:
>
> Why two types? I think some devices use PIO on a PC and MMIO on other
> architectures. Sharing the type would allow sharing code.
Then there are the functions provided by rwhandler.c. I think that
interface makes even more sense compared to 8/16/32 (and 64?) bit
handlers in many cases.
On the other hand, that makes the transition harder.
Perhaps we can have a type with {read,write}(addr, width), and another
built on top that provides the traditional {read,write}[bwl](addr) to
ease the transition.
--
error compiling committee.c: too many arguments to function