X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FConsole%2FGraphicsConsoleDxe%2FGraphicsConsole.h;h=1c182f3b9095041a91ac239841347b462a65df0c;hb=93e3992d1ea50fb30c48f498d257d4e66252dd9b;hp=98780f704a2d41d114c0ccff18287998c5b8880c;hpb=8e5b17b25e91ffa293c1cbcb30e1c6997c6bdecd;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h index 98780f704a..1c182f3b90 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.h @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2006, Intel Corporation +Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -24,7 +24,7 @@ Revision History #define _GRAPHICS_CONSOLE_H #include -#include +//#include #include #include #include @@ -32,10 +32,17 @@ Revision History #include #include #include -#include +//#include #include #include #include +#include +#include + +#include + +#include +#include extern EFI_COMPONENT_NAME_PROTOCOL gGraphicsConsoleComponentName; @@ -174,8 +181,15 @@ GraphicsConsoleComponentNameGetControllerName ( // // Glyph database // -#define GLYPH_WIDTH 8 -#define GLYPH_HEIGHT 19 +//#define GLYPH_WIDTH 8 +//#define GLYPH_HEIGHT 19 + +// +// User can define valid graphic resolution here +// e.g. 640x480, 800x600, 1024x768... +// +#define CURRENT_HORIZONTAL_RESOLUTION 800 +#define CURRENT_VERTICAL_RESOLUTION 600 typedef union { EFI_NARROW_GLYPH NarrowGlyph; @@ -200,7 +214,7 @@ typedef struct { UINT32 GopModeNumber; } GRAPHICS_CONSOLE_MODE_DATA; -#define GRAPHICS_MAX_MODE 3 +#define GRAPHICS_MAX_MODE 4 typedef struct { UINTN Signature; @@ -299,11 +313,6 @@ GraphicsConsoleConOutEnableCursor ( IN BOOLEAN Visible ); -EFI_STATUS -EfiLocateHiiProtocol ( - VOID - ); - EFI_STATUS EFIAPI GraphicsConsoleControllerDriverSupported ( @@ -329,4 +338,11 @@ GraphicsConsoleControllerDriverStop ( IN EFI_HANDLE *ChildHandleBuffer ); +EFI_STATUS +EfiLocateHiiProtocol ( + VOID + ) +; + + #endif