]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitebbeac15f1910c03aa23e6d2ec5e75a814f8eae2
treefeefa5ef8bc5548a7425001f2bb90966fa41ecee
parent0d456b5a7bdf1024261f9d15019331d077362f7a
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