blob: 977fee6ffd6898017967afc42473ed4e2dad3a41 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPILINUX_KEXEC_H
20#define _UAPILINUX_KEXEC_H
21#include <linux/types.h>
22#define KEXEC_ON_CRASH 0x00000001
Nick Kralevicha67e4de2013-01-14 11:28:26 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define KEXEC_PRESERVE_CONTEXT 0x00000002
25#define KEXEC_ARCH_MASK 0xffff0000
26#define KEXEC_ARCH_DEFAULT ( 0 << 16)
27#define KEXEC_ARCH_386 ( 3 << 16)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define KEXEC_ARCH_X86_64 (62 << 16)
30#define KEXEC_ARCH_PPC (20 << 16)
31#define KEXEC_ARCH_PPC64 (21 << 16)
32#define KEXEC_ARCH_IA_64 (50 << 16)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define KEXEC_ARCH_ARM (40 << 16)
35#define KEXEC_ARCH_S390 (22 << 16)
36#define KEXEC_ARCH_SH (42 << 16)
37#define KEXEC_ARCH_MIPS_LE (10 << 16)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define KEXEC_ARCH_MIPS ( 8 << 16)
40#define KEXEC_SEGMENT_MAX 16
41struct kexec_segment {
42 const void *buf;
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044 size_t bufsz;
45 const void *mem;
46 size_t memsz;
47};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Nick Kralevicha67e4de2013-01-14 11:28:26 -080049#endif