blob: 94a20a60ad15003769f52c7ae8a332596e51a121 [file] [log] [blame]
Dan Albert287553d2017-02-16 10:47:51 -08001/****************************************************************************
2 ****************************************************************************
3 ***
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.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_FIXMAP_H
20#define _ASM_FIXMAP_H
21#define FIXADDR_USER_START __fix_to_virt(FIX_VDSO)
22#define FIXADDR_USER_END __fix_to_virt(FIX_VDSO - 1)
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#ifndef __ASSEMBLY__
25#include <linux/kernel.h>
26#include <asm/acpi.h>
27#include <asm/apicdef.h>
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#include <asm/page.h>
30enum fixed_addresses {
31 FIX_HOLE,
32 FIX_VDSO,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 FIX_DBGP_BASE,
35 FIX_EARLYCON_MEM_BASE,
36 __end_of_permanent_fixed_addresses,
37#define NR_FIX_BTMAPS 16
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 FIX_BTMAP_END = __end_of_permanent_fixed_addresses,
40 FIX_BTMAP_BEGIN = FIX_BTMAP_END + NR_FIX_BTMAPS - 1,
41 FIX_WP_TEST,
42 __end_of_fixed_addresses
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45#define set_fixmap(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL)
46#define set_fixmap_nocache(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
47#define clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0))
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define FIXADDR_TOP ((unsigned long)__FIXADDR_TOP)
50#define __FIXADDR_SIZE (__end_of_permanent_fixed_addresses << PAGE_SHIFT)
51#define __FIXADDR_BOOT_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
52#define FIXADDR_START (FIXADDR_TOP - __FIXADDR_SIZE)
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define FIXADDR_BOOT_START (FIXADDR_TOP - __FIXADDR_BOOT_SIZE)
55#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
56#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
57#endif
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#endif