blob: b5f6956f19c8add59e974919df59028941e35e0c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Paul Mundtb66c1a32006-01-16 22:14:15 -08002 * 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 Torvalds1da177e2005-04-16 15:20:36 -07006 */
Paul Mundtb66c1a32006-01-16 22:14:15 -08007#define IO_CONCAT(a,b) _IO_CONCAT(a,b)
8#define _IO_CONCAT(a,b) a ## _ ## b
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Paul Mundtb66c1a32006-01-16 22:14:15 -080010#ifndef __IO_PREFIX
11#error "Don't include this header without a valid system prefix"
12#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Paul Mundtb66c1a32006-01-16 22:14:15 -080014void __iomem *IO_CONCAT(__IO_PREFIX,ioport_map)(unsigned long addr, unsigned int size);
15void IO_CONCAT(__IO_PREFIX,ioport_unmap)(void __iomem *addr);
Paul Mundt19d8f842010-05-10 15:39:05 +090016void IO_CONCAT(__IO_PREFIX,mem_init)(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Paul Mundtb66c1a32006-01-16 22:14:15 -080018#undef __IO_PREFIX