eboot.h 700 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BOOT_COMPRESSED_EBOOT_H
  3. #define BOOT_COMPRESSED_EBOOT_H
  4. #define SEG_TYPE_DATA (0 << 3)
  5. #define SEG_TYPE_READ_WRITE (1 << 1)
  6. #define SEG_TYPE_CODE (1 << 3)
  7. #define SEG_TYPE_EXEC_READ (1 << 1)
  8. #define SEG_TYPE_TSS ((1 << 3) | (1 << 0))
  9. #define SEG_OP_SIZE_32BIT (1 << 0)
  10. #define SEG_GRANULARITY_4KB (1 << 0)
  11. #define DESC_TYPE_CODE_DATA (1 << 0)
  12. typedef struct {
  13. u32 get_mode;
  14. u32 set_mode;
  15. u32 blt;
  16. } efi_uga_draw_protocol_32_t;
  17. typedef struct {
  18. u64 get_mode;
  19. u64 set_mode;
  20. u64 blt;
  21. } efi_uga_draw_protocol_64_t;
  22. typedef struct {
  23. void *get_mode;
  24. void *set_mode;
  25. void *blt;
  26. } efi_uga_draw_protocol_t;
  27. #endif /* BOOT_COMPRESSED_EBOOT_H */