Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / sh / include / asm / io_generic.h
blob87ec38f4e53291f3dd700fc0fe230f0b2b1a6cc1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Trivial I/O routine definitions, intentionally meant to be included
4 * multiple times. Ugly I/O routine concatenation helpers taken from
5 * alpha. Must be included _before_ io.h to avoid preprocessor-induced
6 * routine mismatch.
7 */
8 #define IO_CONCAT(a,b) _IO_CONCAT(a,b)
9 #define _IO_CONCAT(a,b) a ## _ ## b
11 #ifndef __IO_PREFIX
12 #error "Don't include this header without a valid system prefix"
13 #endif
15 void __iomem *IO_CONCAT(__IO_PREFIX,ioport_map)(unsigned long addr, unsigned int size);
16 void IO_CONCAT(__IO_PREFIX,ioport_unmap)(void __iomem *addr);
17 void IO_CONCAT(__IO_PREFIX,mem_init)(void);
19 #undef __IO_PREFIX