Skip to content

Commit

Permalink
asm-generic/io.h: Reconcile I/O accessor overrides
Browse files Browse the repository at this point in the history
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
overridden.

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: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Thierry Reding committed Nov 10, 2014
1 parent 4707a34 commit 9216efa
Showing 1 changed file with 350 additions and 95 deletions.
Loading

0 comments on commit 9216efa

Please sign in to comment.