/* uga_draw.h - definitions of the uga draw protocol */ /* * VAS_EBOOT -- GRand Unified Bootloader * Copyright (C) 2008 Free Software Foundation, Inc. * * VAS_EBOOT is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * VAS_EBOOT is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with VAS_EBOOT. If not, see . */ /* The console control protocol is not a part of the EFI spec, but defined in Intel's Sample Implementation. */ #ifndef VAS_EBOOT_EFI_UGA_DRAW_HEADER #define VAS_EBOOT_EFI_UGA_DRAW_HEADER 1 #define VAS_EBOOT_EFI_UGA_DRAW_GUID \ { 0x982c298b, 0xf4fa, 0x41cb, { 0xb8, 0x38, 0x77, 0xaa, 0x68, 0x8f, 0xb8, 0x39 }} enum VasEBoot_efi_uga_blt_operation { VAS_EBOOT_EFI_UGA_VIDEO_FILL, VAS_EBOOT_EFI_UGA_VIDEO_TO_BLT, VAS_EBOOT_EFI_UGA_BLT_TO_VIDEO, VAS_EBOOT_EFI_UGA_VIDEO_TO_VIDEO, VAS_EBOOT_EFI_UGA_BLT_MAX }; struct VasEBoot_efi_uga_pixel { VasEBoot_uint8_t Blue; VasEBoot_uint8_t Green; VasEBoot_uint8_t Red; VasEBoot_uint8_t Reserved; }; struct VasEBoot_efi_uga_draw_protocol { VasEBoot_efi_status_t (__VasEBoot_efi_api *get_mode) (struct VasEBoot_efi_uga_draw_protocol *this, VasEBoot_uint32_t *width, VasEBoot_uint32_t *height, VasEBoot_uint32_t *depth, VasEBoot_uint32_t *refresh_rate); VasEBoot_efi_status_t (__VasEBoot_efi_api *set_mode) (struct VasEBoot_efi_uga_draw_protocol *this, VasEBoot_uint32_t width, VasEBoot_uint32_t height, VasEBoot_uint32_t depth, VasEBoot_uint32_t refresh_rate); VasEBoot_efi_status_t (__VasEBoot_efi_api *blt) (struct VasEBoot_efi_uga_draw_protocol *this, struct VasEBoot_efi_uga_pixel *blt_buffer, enum VasEBoot_efi_uga_blt_operation blt_operation, VasEBoot_efi_uintn_t src_x, VasEBoot_efi_uintn_t src_y, VasEBoot_efi_uintn_t dest_x, VasEBoot_efi_uintn_t dest_y, VasEBoot_efi_uintn_t width, VasEBoot_efi_uintn_t height, VasEBoot_efi_uintn_t delta); }; typedef struct VasEBoot_efi_uga_draw_protocol VasEBoot_efi_uga_draw_protocol_t; #endif /* ! VAS_EBOOT_EFI_UGA_DRAW_HEADER */