Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 2 | * Trivial I/O routine definitions, intentionally meant to be included |
| 3 | * multiple times. Ugly I/O routine concatenation helpers taken from |
| 4 | * alpha. Must be included _before_ io.h to avoid preprocessor-induced |
| 5 | * routine mismatch. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | */ |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 7 | #define IO_CONCAT(a,b) _IO_CONCAT(a,b) |
| 8 | #define _IO_CONCAT(a,b) a ## _ ## b |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 10 | #ifndef __IO_PREFIX |
| 11 | #error "Don't include this header without a valid system prefix" |
| 12 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 14 | void __iomem *IO_CONCAT(__IO_PREFIX,ioport_map)(unsigned long addr, unsigned int size); |
| 15 | void IO_CONCAT(__IO_PREFIX,ioport_unmap)(void __iomem *addr); |
Paul Mundt | 19d8f84 | 2010-05-10 15:39:05 +0900 | [diff] [blame] | 16 | void IO_CONCAT(__IO_PREFIX,mem_init)(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Paul Mundt | b66c1a3 | 2006-01-16 22:14:15 -0800 | [diff] [blame] | 18 | #undef __IO_PREFIX |