blob: 94a20a60ad15003769f52c7ae8a332596e51a121 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _ASM_FIXMAP_H
20#define _ASM_FIXMAP_H
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#define FIXADDR_USER_START __fix_to_virt(FIX_VDSO)
22#define FIXADDR_USER_END __fix_to_virt(FIX_VDSO - 1)
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#ifndef __ASSEMBLY__
25#include <linux/kernel.h>
26#include <asm/acpi.h>
27#include <asm/apicdef.h>
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080029#include <asm/page.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080030enum fixed_addresses {
31 FIX_HOLE,
32 FIX_VDSO,
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 FIX_DBGP_BASE,
35 FIX_EARLYCON_MEM_BASE,
36 __end_of_permanent_fixed_addresses,
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080037#define NR_FIX_BTMAPS 16
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 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
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080044};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080045#define set_fixmap(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080046#define set_fixmap_nocache(idx, phys) __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080047#define clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0))
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080049#define FIXADDR_TOP ((unsigned long)__FIXADDR_TOP)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080050#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)
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080054#define FIXADDR_BOOT_START (FIXADDR_TOP - __FIXADDR_BOOT_SIZE)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080055#define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
56#define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080057#endif
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080059#endif