1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _ASM_X86_BOOTPARAM_H
3 #define _ASM_X86_BOOTPARAM_H
4 
5 /* setup_data/setup_indirect types */
6 #define SETUP_NONE			0
7 #define SETUP_E820_EXT			1
8 #define SETUP_DTB			2
9 #define SETUP_PCI			3
10 #define SETUP_EFI			4
11 #define SETUP_APPLE_PROPERTIES		5
12 #define SETUP_JAILHOUSE			6
13 #define SETUP_CC_BLOB			7
14 #define SETUP_IMA			8
15 #define SETUP_RNG_SEED			9
16 #define SETUP_ENUM_MAX			SETUP_RNG_SEED
17 
18 #define SETUP_INDIRECT			(1<<31)
19 #define SETUP_TYPE_MAX			(SETUP_ENUM_MAX | SETUP_INDIRECT)
20 
21 /* ram_size flags */
22 #define RAMDISK_IMAGE_START_MASK	0x07FF
23 #define RAMDISK_PROMPT_FLAG		0x8000
24 #define RAMDISK_LOAD_FLAG		0x4000
25 
26 /* loadflags */
27 #define LOADED_HIGH	(1<<0)
28 #define KASLR_FLAG	(1<<1)
29 #define QUIET_FLAG	(1<<5)
30 #define KEEP_SEGMENTS	(1<<6)
31 #define CAN_USE_HEAP	(1<<7)
32 
33 /* xloadflags */
34 #define XLF_KERNEL_64			(1<<0)
35 #define XLF_CAN_BE_LOADED_ABOVE_4G	(1<<1)
36 #define XLF_EFI_HANDOVER_32		(1<<2)
37 #define XLF_EFI_HANDOVER_64		(1<<3)
38 #define XLF_EFI_KEXEC			(1<<4)
39 #define XLF_5LEVEL			(1<<5)
40 #define XLF_5LEVEL_ENABLED		(1<<6)
41 
42 
43 #endif /* _ASM_X86_BOOTPARAM_H */
44