-
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.
fbdev: move arch-specific bits to their respective subdirectories
Move arch-specific bits of fb_mmap() to their respective subdirectories [bob.picco@hp.com: efi_range_is_wc is referenced but not declared] [bunk@stusta.de: fix include/asm-m68k/fb.h] Signed-off-by: Antonino Daplas <adaplas@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
- Loading branch information
Antonino A. Daplas
authored and
Linus Torvalds
committed
Jul 17, 2007
1 parent
0c6c1ce
commit 10eb265
Showing
25 changed files
with
264 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
/* Caching is off in the I/O space quadrant by design. */ | ||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,15 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = __pgprot((pgprot_val(vma->vm_page_prot) | ||
& ~_PAGE_CACHABLE) | ||
| (_PAGE_BUFFER | _PAGE_DIRTY)); | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,14 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
if (boot_cpu_data.x86 > 3) | ||
pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; | ||
} | ||
|
||
#endif /* _ASM_FB_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,17 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <linux/efi.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
if (efi_range_is_wc(vma->vm_start, vma->vm_end - vma->vm_start)) | ||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | ||
else | ||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,28 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
#include <asm/setup.h> | ||
|
||
#ifdef CONFIG_SUN3 | ||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE; | ||
} | ||
#else | ||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
if (CPU_IS_020_OR_030) | ||
pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030; | ||
if (CPU_IS_040_OR_060) { | ||
pgprot_val(vma->vm_page_prot) &= _CACHEMASK040; | ||
/* Use no-cache mode, serialized */ | ||
pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE_S; | ||
} | ||
} | ||
#endif /* CONFIG_SUN3 */ | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE; | ||
} | ||
|
||
#endif /* _ASM_FB_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,15 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, | ||
vma->vm_end - vma->vm_start, | ||
vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,13 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,12 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_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,14 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#include <linux/fs.h> | ||
#include <asm/page.h> | ||
|
||
static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, | ||
unsigned long off) | ||
{ | ||
if (boot_cpu_data.x86 > 3) | ||
pgprot_val(vma->vm_page_prot) |= _PAGE_PCD; | ||
} | ||
|
||
#endif /* _ASM_FB_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,6 @@ | ||
#ifndef _ASM_FB_H_ | ||
#define _ASM_FB_H_ | ||
|
||
#define fb_pgprotect(...) do {} while (0) | ||
|
||
#endif /* _ASM_FB_H_ */ |