![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 0003 0004 #include <linux/export.h> 0005 #include <linux/mm.h> 0006 #include <linux/io.h> 0007 0008 pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, 0009 unsigned long size, pgprot_t vma_prot) 0010 { 0011 if (!pfn_valid(pfn)) { 0012 return pgprot_noncached(vma_prot); 0013 } else if (file->f_flags & O_SYNC) { 0014 return pgprot_writecombine(vma_prot); 0015 } 0016 0017 return vma_prot; 0018 } 0019 EXPORT_SYMBOL(phys_mem_access_prot);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |