• Ian Munsie's avatar
    powerpc: Support endian agnostic MMIO · 15cba23e
    Ian Munsie authored
    This patch maps the MMIO functions for 32bit PowerPC to their
    appropriate instructions depending on CPU endianness.
    
    The macros used to create the corresponding inline functions are also
    renamed by this patch. Previously they had BE or LE in their names which
    was misleading - they had nothing to do with endianness, but actually
    created different instruction forms so their new names reflect the
    instruction form they are creating (D-Form and X-Form).
    
    Little endian 64bit PowerPC is not supported, so the lack of mappings
    (and corresponding breakage) for that case is intentional to bring the
    attention of anyone doing a 64bit little endian port. 64bit big endian
    is unaffected.
    
    [ Added 64 bit versions - Anton ]
    Signed-off-by: default avatarIan Munsie <imunsie@au1.ibm.com>
    Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    15cba23e
io.h 26.7 KB