lkml.org 
[lkml]   [2011]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] alpha: add io{read,write}{16,32}be functions
    Date
    These functions are used in some PCI drivers with big-endian
    MMIO space.

    Admittedly it is almost certain that no one this side of the
    Moon would use such a card in an Alpha but it does get us
    closer to being able to build allyesconfig or allmodconfig,
    and it enables the Debian default generic config to build.

    Signed-off-by: Michael Cree <mcree@orcon.net.nz>
    ---
    arch/alpha/include/asm/io.h | 5 +++++
    1 files changed, 5 insertions(+), 0 deletions(-)

    diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
    index 56ff965..6365ef2 100644
    --- a/arch/alpha/include/asm/io.h
    +++ b/arch/alpha/include/asm/io.h
    @@ -490,6 +490,11 @@ extern inline void writeq(u64 b, volatile void __iomem *addr)
    }
    #endif

    +#define ioread16be(p) be16_to_cpu(ioread16(p))
    +#define ioread32be(p) be32_to_cpu(ioread32(p))
    +#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
    +#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
    +
    #define inb_p inb
    #define inw_p inw
    #define inl_p inl
    --
    1.7.4.3


    \
     
     \ /
      Last update: 2011-11-30 09:51    [W:0.022 / U:190.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site