summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/fb.h
blob: 3cecf14d51de8661a2e9af0df8244c3b37c2886c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_FB_H_
#define _ASM_FB_H_

#include <asm/page.h>

static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
					  unsigned long vm_start, unsigned long vm_end,
					  unsigned long offset)
{
	/*
	 * PowerPC's implementation of phys_mem_access_prot() does
	 * not use the file argument. Set it to NULL in preparation
	 * of later updates to the interface.
	 */
	return phys_mem_access_prot(NULL, PHYS_PFN(offset), vm_end - vm_start, prot);
}
#define pgprot_framebuffer pgprot_framebuffer

#include <asm-generic/fb.h>

#endif /* _ASM_FB_H_ */