diff options
Diffstat (limited to 'include/linux/io.h')
-rw-r--r-- | include/linux/io.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/io.h b/include/linux/io.h index e2c8419278c1..82ef36eac8a1 100644 --- a/include/linux/io.h +++ b/include/linux/io.h | |||
@@ -141,4 +141,26 @@ enum { | |||
141 | void *memremap(resource_size_t offset, size_t size, unsigned long flags); | 141 | void *memremap(resource_size_t offset, size_t size, unsigned long flags); |
142 | void memunmap(void *addr); | 142 | void memunmap(void *addr); |
143 | 143 | ||
144 | /* | ||
145 | * On x86 PAT systems we have memory tracking that keeps track of | ||
146 | * the allowed mappings on memory ranges. This tracking works for | ||
147 | * all the in-kernel mapping APIs (ioremap*), but where the user | ||
148 | * wishes to map a range from a physical device into user memory | ||
149 | * the tracking won't be updated. This API is to be used by | ||
150 | * drivers which remap physical device pages into userspace, | ||
151 | * and wants to make sure they are mapped WC and not UC. | ||
152 | */ | ||
153 | #ifndef arch_io_reserve_memtype_wc | ||
154 | static inline int arch_io_reserve_memtype_wc(resource_size_t base, | ||
155 | resource_size_t size) | ||
156 | { | ||
157 | return 0; | ||
158 | } | ||
159 | |||
160 | static inline void arch_io_free_memtype_wc(resource_size_t base, | ||
161 | resource_size_t size) | ||
162 | { | ||
163 | } | ||
164 | #endif | ||
165 | |||
144 | #endif /* _LINUX_IO_H */ | 166 | #endif /* _LINUX_IO_H */ |