logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

setup_data.h (1757B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ASM_X86_SETUP_DATA_H
  3. #define _ASM_X86_SETUP_DATA_H
  4. /* setup_data/setup_indirect types */
  5. #define SETUP_NONE 0
  6. #define SETUP_E820_EXT 1
  7. #define SETUP_DTB 2
  8. #define SETUP_PCI 3
  9. #define SETUP_EFI 4
  10. #define SETUP_APPLE_PROPERTIES 5
  11. #define SETUP_JAILHOUSE 6
  12. #define SETUP_CC_BLOB 7
  13. #define SETUP_IMA 8
  14. #define SETUP_RNG_SEED 9
  15. #define SETUP_ENUM_MAX SETUP_RNG_SEED
  16. #define SETUP_INDIRECT (1<<31)
  17. #define SETUP_TYPE_MAX (SETUP_ENUM_MAX | SETUP_INDIRECT)
  18. #ifndef __ASSEMBLY__
  19. #include <linux/types.h>
  20. /* extensible setup data list node */
  21. struct setup_data {
  22. __u64 next;
  23. __u32 type;
  24. __u32 len;
  25. __u8 data[];
  26. };
  27. /* extensible setup indirect data node */
  28. struct setup_indirect {
  29. __u32 type;
  30. __u32 reserved; /* Reserved, must be set to zero. */
  31. __u64 len;
  32. __u64 addr;
  33. };
  34. /*
  35. * The E820 memory region entry of the boot protocol ABI:
  36. */
  37. struct boot_e820_entry {
  38. __u64 addr;
  39. __u64 size;
  40. __u32 type;
  41. } __attribute__((packed));
  42. /*
  43. * The boot loader is passing platform information via this Jailhouse-specific
  44. * setup data structure.
  45. */
  46. struct jailhouse_setup_data {
  47. struct {
  48. __u16 version;
  49. __u16 compatible_version;
  50. } __attribute__((packed)) hdr;
  51. struct {
  52. __u16 pm_timer_address;
  53. __u16 num_cpus;
  54. __u64 pci_mmconfig_base;
  55. __u32 tsc_khz;
  56. __u32 apic_khz;
  57. __u8 standard_ioapic;
  58. __u8 cpu_ids[255];
  59. } __attribute__((packed)) v1;
  60. struct {
  61. __u32 flags;
  62. } __attribute__((packed)) v2;
  63. } __attribute__((packed));
  64. /*
  65. * IMA buffer setup data information from the previous kernel during kexec
  66. */
  67. struct ima_setup_data {
  68. __u64 addr;
  69. __u64 size;
  70. } __attribute__((packed));
  71. #endif /* __ASSEMBLY__ */
  72. #endif /* _ASM_X86_SETUP_DATA_H */