1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_HIGHMEM_H
13 #define _LINUX_HIGHMEM_H
18 #include <asm/cacheflush.h>
20 #ifndef ARCH_HAS_FLUSH_ANON_PAGE
22 #ifndef ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
24 #define kunmap(page) do { (void) (page); } while (0)
25 #define kmap_atomic(page, idx) page_address(page)
26 #define kunmap_atomic(addr, idx) do { } while (0)
27 #define kmap_atomic_pfn(pfn, idx) page_address(pfn_to_page(pfn))
28 #define kmap_atomic_to_page(ptr) virt_to_page(ptr)
29 #ifndef __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE