Path: blob/master/arch/x86/include/uapi/asm/setup_data.h
26495 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _UAPI_ASM_X86_SETUP_DATA_H2#define _UAPI_ASM_X86_SETUP_DATA_H34/* setup_data/setup_indirect types */5#define SETUP_NONE 06#define SETUP_E820_EXT 17#define SETUP_DTB 28#define SETUP_PCI 39#define SETUP_EFI 410#define SETUP_APPLE_PROPERTIES 511#define SETUP_JAILHOUSE 612#define SETUP_CC_BLOB 713#define SETUP_IMA 814#define SETUP_RNG_SEED 915#define SETUP_KEXEC_KHO 1016#define SETUP_ENUM_MAX SETUP_KEXEC_KHO1718#define SETUP_INDIRECT (1<<31)19#define SETUP_TYPE_MAX (SETUP_ENUM_MAX | SETUP_INDIRECT)2021#ifndef __ASSEMBLER__2223#include <linux/types.h>2425/* extensible setup data list node */26struct setup_data {27__u64 next;28__u32 type;29__u32 len;30__u8 data[];31};3233/* extensible setup indirect data node */34struct setup_indirect {35__u32 type;36__u32 reserved; /* Reserved, must be set to zero. */37__u64 len;38__u64 addr;39};4041/*42* The E820 memory region entry of the boot protocol ABI:43*/44struct boot_e820_entry {45__u64 addr;46__u64 size;47__u32 type;48} __attribute__((packed));4950/*51* The boot loader is passing platform information via this Jailhouse-specific52* setup data structure.53*/54struct jailhouse_setup_data {55struct {56__u16 version;57__u16 compatible_version;58} __attribute__((packed)) hdr;59struct {60__u16 pm_timer_address;61__u16 num_cpus;62__u64 pci_mmconfig_base;63__u32 tsc_khz;64__u32 apic_khz;65__u8 standard_ioapic;66__u8 cpu_ids[255];67} __attribute__((packed)) v1;68struct {69__u32 flags;70} __attribute__((packed)) v2;71} __attribute__((packed));7273/*74* IMA buffer setup data information from the previous kernel during kexec75*/76struct ima_setup_data {77__u64 addr;78__u64 size;79} __attribute__((packed));8081/*82* Locations of kexec handover metadata83*/84struct kho_data {85__u64 fdt_addr;86__u64 fdt_size;87__u64 scratch_addr;88__u64 scratch_size;89} __attribute__((packed));9091#endif /* __ASSEMBLER__ */9293#endif /* _UAPI_ASM_X86_SETUP_DATA_H */949596