1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _UAPILINUX_KEXEC_H 8 #define _UAPILINUX_KEXEC_H 9 #include <linux/types.h> 10 #define KEXEC_ON_CRASH 0x00000001 11 #define KEXEC_PRESERVE_CONTEXT 0x00000002 12 #define KEXEC_UPDATE_ELFCOREHDR 0x00000004 13 #define KEXEC_CRASH_HOTPLUG_SUPPORT 0x00000008 14 #define KEXEC_ARCH_MASK 0xffff0000 15 #define KEXEC_FILE_UNLOAD 0x00000001 16 #define KEXEC_FILE_ON_CRASH 0x00000002 17 #define KEXEC_FILE_NO_INITRAMFS 0x00000004 18 #define KEXEC_FILE_DEBUG 0x00000008 19 #define KEXEC_ARCH_DEFAULT (0 << 16) 20 #define KEXEC_ARCH_386 (3 << 16) 21 #define KEXEC_ARCH_68K (4 << 16) 22 #define KEXEC_ARCH_PARISC (15 << 16) 23 #define KEXEC_ARCH_X86_64 (62 << 16) 24 #define KEXEC_ARCH_PPC (20 << 16) 25 #define KEXEC_ARCH_PPC64 (21 << 16) 26 #define KEXEC_ARCH_IA_64 (50 << 16) 27 #define KEXEC_ARCH_ARM (40 << 16) 28 #define KEXEC_ARCH_S390 (22 << 16) 29 #define KEXEC_ARCH_SH (42 << 16) 30 #define KEXEC_ARCH_MIPS_LE (10 << 16) 31 #define KEXEC_ARCH_MIPS (8 << 16) 32 #define KEXEC_ARCH_AARCH64 (183 << 16) 33 #define KEXEC_ARCH_RISCV (243 << 16) 34 #define KEXEC_ARCH_LOONGARCH (258 << 16) 35 #define KEXEC_SEGMENT_MAX 16 36 struct kexec_segment { 37 const void * buf; 38 __kernel_size_t bufsz; 39 const void * mem; 40 __kernel_size_t memsz; 41 }; 42 #endif 43