-
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.
Inline ioremap() calls for constant addresses that map to KSEG1.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
- Loading branch information
Maciej W. Rozycki
authored and
Ralf Baechle
committed
Oct 29, 2005
1 parent
c134a5e
commit c3455b0
Showing
5 changed files
with
86 additions
and
15 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* include/asm-mips/mach-au1x00/ioremap.h | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
#ifndef __ASM_MACH_AU1X00_IOREMAP_H | ||
#define __ASM_MACH_AU1X00_IOREMAP_H | ||
|
||
#include <linux/config.h> | ||
#include <linux/types.h> | ||
|
||
#ifndef CONFIG_64BIT_PHYS_ADDR | ||
static inline phys_t __fixup_bigphys_addr(phys_t phys_addr, phys_t size) | ||
{ | ||
return phys_addr; | ||
} | ||
#endif | ||
|
||
/* | ||
* Allow physical addresses to be fixed up to help 36-bit peripherals. | ||
*/ | ||
static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size) | ||
{ | ||
return __fixup_bigphys_addr(phys_addr, size); | ||
} | ||
|
||
#endif /* __ASM_MACH_AU1X00_IOREMAP_H */ |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* include/asm-mips/mach-generic/ioremap.h | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the License, or (at your option) any later version. | ||
*/ | ||
#ifndef __ASM_MACH_GENERIC_IOREMAP_H | ||
#define __ASM_MACH_GENERIC_IOREMAP_H | ||
|
||
#include <linux/types.h> | ||
|
||
/* | ||
* Allow physical addresses to be fixed up to help peripherals located | ||
* outside the low 32-bit range -- generic pass-through version. | ||
*/ | ||
static inline phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size) | ||
{ | ||
return phys_addr; | ||
} | ||
|
||
#endif /* __ASM_MACH_GENERIC_IOREMAP_H */ |