Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
291f3632 MF |
2 | #ifndef BOOT_COMPRESSED_EBOOT_H |
3 | #define BOOT_COMPRESSED_EBOOT_H | |
4 | ||
5 | #define SEG_TYPE_DATA (0 << 3) | |
6 | #define SEG_TYPE_READ_WRITE (1 << 1) | |
7 | #define SEG_TYPE_CODE (1 << 3) | |
8 | #define SEG_TYPE_EXEC_READ (1 << 1) | |
9 | #define SEG_TYPE_TSS ((1 << 3) | (1 << 0)) | |
10 | #define SEG_OP_SIZE_32BIT (1 << 0) | |
11 | #define SEG_GRANULARITY_4KB (1 << 0) | |
12 | ||
13 | #define DESC_TYPE_CODE_DATA (1 << 0) | |
291f3632 | 14 | |
0b767b16 | 15 | typedef struct { |
677703ce MF |
16 | u32 get_mode; |
17 | u32 set_mode; | |
18 | u32 blt; | |
0b767b16 | 19 | } efi_uga_draw_protocol_32_t; |
677703ce | 20 | |
0b767b16 | 21 | typedef struct { |
677703ce MF |
22 | u64 get_mode; |
23 | u64 set_mode; | |
24 | u64 blt; | |
0b767b16 | 25 | } efi_uga_draw_protocol_64_t; |
677703ce | 26 | |
0b767b16 | 27 | typedef struct { |
291f3632 MF |
28 | void *get_mode; |
29 | void *set_mode; | |
30 | void *blt; | |
0b767b16 | 31 | } efi_uga_draw_protocol_t; |
291f3632 MF |
32 | |
33 | #endif /* BOOT_COMPRESSED_EBOOT_H */ |