-
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.
x86: PAT avoid aliasing in /dev/mem read/write
Add xlate and unxlate around /dev/mem read/write. This sets up the mapping that can be used for /dev/mem read and write without aliasing worries. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
- Loading branch information
venkatesh.pallipadi@intel.com
authored and
Ingo Molnar
committed
Apr 24, 2008
1 parent
e2beb3e
commit e045fb2
Showing
5 changed files
with
64 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#ifndef _ASM_X86_IO_H | ||
#define _ASM_X86_IO_H | ||
|
||
#define ARCH_HAS_IOREMAP_WC | ||
|
||
#ifdef CONFIG_X86_32 | ||
# include "io_32.h" | ||
#else | ||
# include "io_64.h" | ||
#endif | ||
|
||
extern void *xlate_dev_mem_ptr(unsigned long phys); | ||
extern void unxlate_dev_mem_ptr(unsigned long phys, void *addr); | ||
|
||
extern int ioremap_change_attr(unsigned long vaddr, unsigned long size, | ||
unsigned long prot_val); | ||
extern void __iomem *ioremap_wc(unsigned long offset, unsigned long size); | ||
|
||
#endif /* _ASM_X86_IO_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
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