-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ARM] 5573/1: ep93xx: ensure typesafe io
ARM: ep93xx: ensure typesafe io For the ep93xx platform, all EP93XX_*_BASE defines are based on virtual addresses. Ensure that all these defines are properly typesafe for the __raw_{read/write}* macros. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Ryan Mallon <ryan@bluewatersys.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
- Loading branch information
Hartley Sweeten
authored and
Russell King
committed
Jun 27, 2009
1 parent
28d0325
commit 702b59e
Showing
2 changed files
with
47 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
/* | ||
* arch/arm/mach-ep93xx/include/mach/io.h | ||
*/ | ||
#ifndef __ASM_MACH_IO_H | ||
#define __ASM_MACH_IO_H | ||
|
||
#define IO_SPACE_LIMIT 0xffffffff | ||
|
||
#define __io(p) __typesafe_io(p) | ||
#define __mem_pci(p) (p) | ||
#define __io(p) __typesafe_io(p) | ||
#define __mem_pci(p) (p) | ||
|
||
/* | ||
* A typesafe __io() variation for variable initialisers | ||
*/ | ||
#ifdef __ASSEMBLER__ | ||
#define IOMEM(p) p | ||
#else | ||
#define IOMEM(p) ((void __iomem __force *)(p)) | ||
#endif | ||
|
||
#endif /* __ASM_MACH_IO_H */ |