diff options
Diffstat (limited to 'Documentation/filesystems/sysfs-pci.txt')
-rw-r--r-- | Documentation/filesystems/sysfs-pci.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Documentation/filesystems/sysfs-pci.txt b/Documentation/filesystems/sysfs-pci.txt index 6ea1ceda6f52..06f1d64c6f70 100644 --- a/Documentation/filesystems/sysfs-pci.txt +++ b/Documentation/filesystems/sysfs-pci.txt | |||
@@ -113,9 +113,18 @@ Supporting PCI access on new platforms | |||
113 | -------------------------------------- | 113 | -------------------------------------- |
114 | 114 | ||
115 | In order to support PCI resource mapping as described above, Linux platform | 115 | In order to support PCI resource mapping as described above, Linux platform |
116 | code must define HAVE_PCI_MMAP and provide a pci_mmap_page_range function. | 116 | code should ideally define ARCH_GENERIC_PCI_MMAP_RESOURCE and use the generic |
117 | Platforms are free to only support subsets of the mmap functionality, but | 117 | implementation of that functionality. To support the historical interface of |
118 | useful return codes should be provided. | 118 | mmap() through files in /proc/bus/pci, platforms may also set HAVE_PCI_MMAP. |
119 | |||
120 | Alternatively, platforms which set HAVE_PCI_MMAP may provide their own | ||
121 | implementation of pci_mmap_page_range() instead of defining | ||
122 | ARCH_GENERIC_PCI_MMAP_RESOURCE. | ||
123 | |||
124 | Platforms which support write-combining maps of PCI resources must define | ||
125 | arch_can_pci_mmap_wc() which shall evaluate to non-zero at runtime when | ||
126 | write-combining is permitted. Platforms which support maps of I/O resources | ||
127 | define arch_can_pci_mmap_io() similarly. | ||
119 | 128 | ||
120 | Legacy resources are protected by the HAVE_PCI_LEGACY define. Platforms | 129 | Legacy resources are protected by the HAVE_PCI_LEGACY define. Platforms |
121 | wishing to support legacy functionality should define it and provide | 130 | wishing to support legacy functionality should define it and provide |