Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
10eb2659 AD |
2 | #ifndef _ASM_FB_H_ |
3 | #define _ASM_FB_H_ | |
4 | ||
10eb2659 AD |
5 | #include <asm/page.h> |
6 | ||
052ddf7b TZ |
7 | static inline pgprot_t pgprot_framebuffer(pgprot_t prot, |
8 | unsigned long vm_start, unsigned long vm_end, | |
9 | unsigned long offset) | |
10eb2659 | 10 | { |
c205a67d TZ |
11 | /* |
12 | * PowerPC's implementation of phys_mem_access_prot() does | |
13 | * not use the file argument. Set it to NULL in preparation | |
14 | * of later updates to the interface. | |
15 | */ | |
052ddf7b | 16 | return phys_mem_access_prot(NULL, PHYS_PFN(offset), vm_end - vm_start, prot); |
10eb2659 | 17 | } |
052ddf7b | 18 | #define pgprot_framebuffer pgprot_framebuffer |
10eb2659 | 19 | |
b50f6d46 | 20 | #include <asm-generic/fb.h> |
317b3c21 | 21 | |
10eb2659 | 22 | #endif /* _ASM_FB_H_ */ |