xref: /openbmc/linux/arch/sh/include/asm/io_generic.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2f15cbe6fSPaul Mundt /*
3f15cbe6fSPaul Mundt  * Trivial I/O routine definitions, intentionally meant to be included
4f15cbe6fSPaul Mundt  * multiple times. Ugly I/O routine concatenation helpers taken from
5f15cbe6fSPaul Mundt  * alpha. Must be included _before_ io.h to avoid preprocessor-induced
6f15cbe6fSPaul Mundt  * routine mismatch.
7f15cbe6fSPaul Mundt  */
8f15cbe6fSPaul Mundt #define IO_CONCAT(a,b)	_IO_CONCAT(a,b)
9f15cbe6fSPaul Mundt #define _IO_CONCAT(a,b)	a ## _ ## b
10f15cbe6fSPaul Mundt 
11f15cbe6fSPaul Mundt #ifndef __IO_PREFIX
12f15cbe6fSPaul Mundt #error "Don't include this header without a valid system prefix"
13f15cbe6fSPaul Mundt #endif
14f15cbe6fSPaul Mundt 
15f15cbe6fSPaul Mundt void __iomem *IO_CONCAT(__IO_PREFIX,ioport_map)(unsigned long addr, unsigned int size);
16f15cbe6fSPaul Mundt void IO_CONCAT(__IO_PREFIX,ioport_unmap)(void __iomem *addr);
1719d8f84fSPaul Mundt void IO_CONCAT(__IO_PREFIX,mem_init)(void);
18f15cbe6fSPaul Mundt 
19f15cbe6fSPaul Mundt #undef __IO_PREFIX
20