powerpc: iomap.c: introduce io{read|write}64_{lo_hi|hi_lo}
authorLogan Gunthorpe <logang@deltatee.com>
Tue, 27 Mar 2018 23:08:29 +0000 (17:08 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 Apr 2018 04:59:26 +0000 (14:59 +1000)
These functions will be introduced into the generic iomap.c so they
can deal with PIO accesses in hi-lo/lo-hi variants. Thus, the powerpc
version of iomap.c will need to provide the same functions even
though, in this arch, they are identical to the regular
io{read|write}64 functions.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Tested-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/iomap.c

index aab456ed2a0061ceada12f33dd791cf56afc43fc..5ac84efc6ede8f893d701c0f03d2e735bf27ddf9 100644 (file)
@@ -45,12 +45,32 @@ u64 ioread64(void __iomem *addr)
 {
        return readq(addr);
 }
+u64 ioread64_lo_hi(void __iomem *addr)
+{
+       return readq(addr);
+}
+u64 ioread64_hi_lo(void __iomem *addr)
+{
+       return readq(addr);
+}
 u64 ioread64be(void __iomem *addr)
 {
        return readq_be(addr);
 }
+u64 ioread64be_lo_hi(void __iomem *addr)
+{
+       return readq_be(addr);
+}
+u64 ioread64be_hi_lo(void __iomem *addr)
+{
+       return readq_be(addr);
+}
 EXPORT_SYMBOL(ioread64);
+EXPORT_SYMBOL(ioread64_lo_hi);
+EXPORT_SYMBOL(ioread64_hi_lo);
 EXPORT_SYMBOL(ioread64be);
+EXPORT_SYMBOL(ioread64be_lo_hi);
+EXPORT_SYMBOL(ioread64be_hi_lo);
 #endif /* __powerpc64__ */
 
 void iowrite8(u8 val, void __iomem *addr)
@@ -83,12 +103,32 @@ void iowrite64(u64 val, void __iomem *addr)
 {
        writeq(val, addr);
 }
+void iowrite64_lo_hi(u64 val, void __iomem *addr)
+{
+       writeq(val, addr);
+}
+void iowrite64_hi_lo(u64 val, void __iomem *addr)
+{
+       writeq(val, addr);
+}
 void iowrite64be(u64 val, void __iomem *addr)
 {
        writeq_be(val, addr);
 }
+void iowrite64be_lo_hi(u64 val, void __iomem *addr)
+{
+       writeq_be(val, addr);
+}
+void iowrite64be_hi_lo(u64 val, void __iomem *addr)
+{
+       writeq_be(val, addr);
+}
 EXPORT_SYMBOL(iowrite64);
+EXPORT_SYMBOL(iowrite64_lo_hi);
+EXPORT_SYMBOL(iowrite64_hi_lo);
 EXPORT_SYMBOL(iowrite64be);
+EXPORT_SYMBOL(iowrite64be_lo_hi);
+EXPORT_SYMBOL(iowrite64be_hi_lo);
 #endif /* __powerpc64__ */
 
 /*