-
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.
yaml --- r: 146654 b: refs/heads/master c: 9833385 h: refs/heads/master v: v3
- Loading branch information
Paul Mundt
committed
Apr 20, 2009
1 parent
b69e9b0
commit daf631e
Showing
4 changed files
with
33 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 4c5107e44514a9bde74d0af77982705d602d9e39 | ||
refs/heads/master: 9833385131fc4e8c52f95320ab899051d1c06831 |
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,26 @@ | ||
#include <linux/kernel.h> | ||
#include <linux/mm.h> | ||
#include <linux/init.h> | ||
#include <linux/types.h> | ||
#include <linux/pci.h> | ||
|
||
int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | ||
enum pci_mmap_state mmap_state, int write_combine) | ||
{ | ||
/* | ||
* I/O space can be accessed via normal processor loads and stores on | ||
* this platform but for now we elect not to do this and portable | ||
* drivers should not do this anyway. | ||
*/ | ||
if (mmap_state == pci_mmap_io) | ||
return -EINVAL; | ||
|
||
/* | ||
* Ignore write-combine; for now only return uncached mappings. | ||
*/ | ||
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); | ||
|
||
return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, | ||
vma->vm_end - vma->vm_start, | ||
vma->vm_page_prot); | ||
} |
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