• Thierry Reding's avatar
    asm-generic/io.h: Reconcile I/O accessor overrides · 9216efaf
    Thierry Reding authored
    Overriding I/O accessors and helpers is currently very inconsistent.
    This commit introduces a homogeneous way to override functions by
    checking for the existence of a macro with the same of the function.
    Architectures can provide their own implementations and communicate this
    to the generic header by defining the appropriate macro. Doing this will
    also help prevent the implementations from being subsequently
    While at it, also turn a lot of macros into static inline functions for
    better type checking and to provide a canonical signature for overriding
    architectures to copy. Also reorder functions by logical groups.
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
io.h 12.6 KB