Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 1 | #ifndef BOOT_COMPRESSED_EBOOT_H |
| 2 | #define BOOT_COMPRESSED_EBOOT_H |
| 3 | |
| 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 | |
| 12 | #define DESC_TYPE_CODE_DATA (1 << 0) |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 13 | |
Matt Fleming | 677703c | 2014-01-10 13:47:37 +0000 | [diff] [blame] | 14 | struct efi_uga_draw_protocol_32 { |
| 15 | u32 get_mode; |
| 16 | u32 set_mode; |
| 17 | u32 blt; |
| 18 | }; |
| 19 | |
| 20 | struct efi_uga_draw_protocol_64 { |
| 21 | u64 get_mode; |
| 22 | u64 set_mode; |
| 23 | u64 blt; |
| 24 | }; |
| 25 | |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 26 | struct efi_uga_draw_protocol { |
| 27 | void *get_mode; |
| 28 | void *set_mode; |
| 29 | void *blt; |
| 30 | }; |
| 31 | |
Matt Fleming | 291f363 | 2011-12-12 21:27:52 +0000 | [diff] [blame] | 32 | #endif /* BOOT_COMPRESSED_EBOOT_H */ |