sparc64: add reads{b,w,l}/writes{b,w,l}
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Jul 2018 09:18:34 +0000 (11:18 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 31 Jul 2018 07:46:06 +0000 (09:46 +0200)
commit15280e8107e17a5ee40509e3d1384ad28d6fdcf4
treefeefa5ef8bc5548a7425001f2bb90966fa41ecee
parent0bbf47eab4697557718fccc1ec9835c44c47fe7f
sparc64: add reads{b,w,l}/writes{b,w,l}

Some drivers need these for compile-testing. On most architectures
they come from asm-generic/io.h, but not on sparc64, which has its
own definitions.

Since we already have ioread*_rep()/iowrite*_rep() that have the
same behavior on sparc64 (i.e. all PCI I/O space is memory mapped),
we can rename the existing helpers and add macros to define them
to the same implementation.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David S. Miller <davem@davemloft.net>
Tested-by: Boris Brezillon <boris.brezillon@bootlin>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
arch/sparc/include/asm/io_64.h