diff options
Diffstat (limited to 'arch/x86/boot/compressed/eboot.h')
| -rw-r--r-- | arch/x86/boot/compressed/eboot.h | 67 | 
1 files changed, 59 insertions, 8 deletions
diff --git a/arch/x86/boot/compressed/eboot.h b/arch/x86/boot/compressed/eboot.h index e5b0a8f91c5..c88c31ecad1 100644 --- a/arch/x86/boot/compressed/eboot.h +++ b/arch/x86/boot/compressed/eboot.h @@ -11,9 +11,6 @@  #define DESC_TYPE_CODE_DATA	(1 << 0) -#define EFI_PAGE_SIZE		(1UL << EFI_PAGE_SHIFT) -#define EFI_READ_CHUNK_SIZE	(1024 * 1024) -  #define EFI_CONSOLE_OUT_DEVICE_GUID    \  	EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, \  		  0x3f, 0xc1, 0x4d) @@ -40,6 +37,24 @@ struct efi_graphics_output_mode_info {  	u32 pixels_per_scan_line;  } __packed; +struct efi_graphics_output_protocol_mode_32 { +	u32 max_mode; +	u32 mode; +	u32 info; +	u32 size_of_info; +	u64 frame_buffer_base; +	u32 frame_buffer_size; +} __packed; + +struct efi_graphics_output_protocol_mode_64 { +	u32 max_mode; +	u32 mode; +	u64 info; +	u64 size_of_info; +	u64 frame_buffer_base; +	u64 frame_buffer_size; +} __packed; +  struct efi_graphics_output_protocol_mode {  	u32 max_mode;  	u32 mode; @@ -49,6 +64,20 @@ struct efi_graphics_output_protocol_mode {  	unsigned long frame_buffer_size;  } __packed; +struct efi_graphics_output_protocol_32 { +	u32 query_mode; +	u32 set_mode; +	u32 blt; +	u32 mode; +}; + +struct efi_graphics_output_protocol_64 { +	u64 query_mode; +	u64 set_mode; +	u64 blt; +	u64 mode; +}; +  struct efi_graphics_output_protocol {  	void *query_mode;  	unsigned long set_mode; @@ -56,16 +85,38 @@ struct efi_graphics_output_protocol {  	struct efi_graphics_output_protocol_mode *mode;  }; +struct efi_uga_draw_protocol_32 { +	u32 get_mode; +	u32 set_mode; +	u32 blt; +}; + +struct efi_uga_draw_protocol_64 { +	u64 get_mode; +	u64 set_mode; +	u64 blt; +}; +  struct efi_uga_draw_protocol {  	void *get_mode;  	void *set_mode;  	void *blt;  }; -struct efi_simple_text_output_protocol { -	void *reset; -	void *output_string; -	void *test_string; -}; +struct efi_config { +	u64 image_handle; +	u64 table; +	u64 allocate_pool; +	u64 allocate_pages; +	u64 get_memory_map; +	u64 free_pool; +	u64 free_pages; +	u64 locate_handle; +	u64 handle_protocol; +	u64 exit_boot_services; +	u64 text_output; +	efi_status_t (*call)(unsigned long, ...); +	bool is64; +} __packed;  #endif /* BOOT_COMPRESSED_EBOOT_H */  | 
