x86, efi: EFI boot stub support
[deliverable/linux.git] / arch / x86 / boot / compressed / eboot.h
CommitLineData
291f3632
MF
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)
13
14#define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT)
15
16#define PIXEL_RGB_RESERVED_8BIT_PER_COLOR 0
17#define PIXEL_BGR_RESERVED_8BIT_PER_COLOR 1
18#define PIXEL_BIT_MASK 2
19#define PIXEL_BLT_ONLY 3
20#define PIXEL_FORMAT_MAX 4
21
22struct efi_pixel_bitmask {
23 u32 red_mask;
24 u32 green_mask;
25 u32 blue_mask;
26 u32 reserved_mask;
27};
28
29struct efi_graphics_output_mode_info {
30 u32 version;
31 u32 horizontal_resolution;
32 u32 vertical_resolution;
33 int pixel_format;
34 struct efi_pixel_bitmask pixel_information;
35 u32 pixels_per_scan_line;
36} __packed;
37
38struct efi_graphics_output_protocol_mode {
39 u32 max_mode;
40 u32 mode;
41 unsigned long info;
42 unsigned long size_of_info;
43 u64 frame_buffer_base;
44 unsigned long frame_buffer_size;
45} __packed;
46
47struct efi_graphics_output_protocol {
48 void *query_mode;
49 unsigned long set_mode;
50 unsigned long blt;
51 struct efi_graphics_output_protocol_mode *mode;
52};
53
54struct efi_uga_draw_protocol {
55 void *get_mode;
56 void *set_mode;
57 void *blt;
58};
59
60#endif /* BOOT_COMPRESSED_EBOOT_H */
This page took 0.040435 seconds and 5 git commands to generate.