summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-02-07 22:14:22 +0100
committerAlexander Graf <agraf@suse.de>2018-04-04 11:00:07 +0200
commit0e0a3ceb509b19af55c5064607d9057ec7d8c1c4 (patch)
tree3985489492bb77e1009896b0d5b278d8fd73829a /include/efi_api.h
parentb095f3c85fe08744d6081b98db65768f3421295e (diff)
efi_loader: implement missing bit blit operations in gop
With the patch all block image transfer operations of the EFI_GRAPHICS_OUTPUT_PROTOCOL are supported. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index 433594f339..167c44e3a4 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -665,6 +665,13 @@ struct efi_gop_mode
unsigned long fb_size;
};
+struct efi_gop_pixel {
+ u8 blue;
+ u8 green;
+ u8 red;
+ u8 reserved;
+};
+
#define EFI_BLT_VIDEO_FILL 0
#define EFI_BLT_VIDEO_TO_BLT_BUFFER 1
#define EFI_BLT_BUFFER_TO_VIDEO 2
@@ -676,7 +683,8 @@ struct efi_gop
efi_uintn_t *size_of_info,
struct efi_gop_mode_info **info);
efi_status_t (EFIAPI *set_mode)(struct efi_gop *this, u32 mode_number);
- efi_status_t (EFIAPI *blt)(struct efi_gop *this, void *buffer,
+ efi_status_t (EFIAPI *blt)(struct efi_gop *this,
+ struct efi_gop_pixel *buffer,
u32 operation, efi_uintn_t sx,
efi_uintn_t sy, efi_uintn_t dx,
efi_uintn_t dy, efi_uintn_t width,