1
2 #ifndef _UAPILINUX_KEXEC_H
3 #define _UAPILINUX_KEXEC_H
4
5
6
7
8
9
10 #include <linux/types.h>
11
12
13 #define KEXEC_ON_CRASH 0x00000001
14 #define KEXEC_PRESERVE_CONTEXT 0x00000002
15 #define KEXEC_ARCH_MASK 0xffff0000
16
17
18
19
20
21
22
23
24 #define KEXEC_FILE_UNLOAD 0x00000001
25 #define KEXEC_FILE_ON_CRASH 0x00000002
26 #define KEXEC_FILE_NO_INITRAMFS 0x00000004
27
28
29
30
31 #define KEXEC_ARCH_DEFAULT ( 0 << 16)
32 #define KEXEC_ARCH_386 ( 3 << 16)
33 #define KEXEC_ARCH_68K ( 4 << 16)
34 #define KEXEC_ARCH_PARISC (15 << 16)
35 #define KEXEC_ARCH_X86_64 (62 << 16)
36 #define KEXEC_ARCH_PPC (20 << 16)
37 #define KEXEC_ARCH_PPC64 (21 << 16)
38 #define KEXEC_ARCH_IA_64 (50 << 16)
39 #define KEXEC_ARCH_ARM (40 << 16)
40 #define KEXEC_ARCH_S390 (22 << 16)
41 #define KEXEC_ARCH_SH (42 << 16)
42 #define KEXEC_ARCH_MIPS_LE (10 << 16)
43 #define KEXEC_ARCH_MIPS ( 8 << 16)
44 #define KEXEC_ARCH_AARCH64 (183 << 16)
45
46
47 #define KEXEC_SEGMENT_MAX 16
48
49 #ifndef __KERNEL__
50
51
52
53
54 struct kexec_segment {
55 const void *buf;
56 size_t bufsz;
57 const void *mem;
58 size_t memsz;
59 };
60
61 #endif
62
63 #endif