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_RNG_SEED 9 14 15 #define SETUP_INDIRECT (1<<31) 16 17 /* SETUP_INDIRECT | max(SETUP_*) */ 18 #define SETUP_TYPE_MAX (SETUP_INDIRECT | SETUP_JAILHOUSE) 19 20 /* ram_size flags */ 21 #define RAMDISK_IMAGE_START_MASK 0x07FF 22 #define RAMDISK_PROMPT_FLAG 0x8000 23 #define RAMDISK_LOAD_FLAG 0x4000 24 25 /* loadflags */ 26 #define LOADED_HIGH (1<<0) 27 #define KASLR_FLAG (1<<1) 28 #define QUIET_FLAG (1<<5) 29 #define KEEP_SEGMENTS (1<<6) 30 #define CAN_USE_HEAP (1<<7) 31 32 /* xloadflags */ 33 #define XLF_KERNEL_64 (1<<0) 34 #define XLF_CAN_BE_LOADED_ABOVE_4G (1<<1) 35 #define XLF_EFI_HANDOVER_32 (1<<2) 36 #define XLF_EFI_HANDOVER_64 (1<<3) 37 #define XLF_EFI_KEXEC (1<<4) 38 #define XLF_5LEVEL (1<<5) 39 #define XLF_5LEVEL_ENABLED (1<<6) 40 41 42 #endif /* _ASM_X86_BOOTPARAM_H */ 43