/*++\r
\r
-Copyright (c) 2006, Intel Corporation \r
+Copyright (c) 2006 - 2008, Intel Corporation \r
All rights reserved. This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
#define _GRAPHICS_CONSOLE_H\r
\r
#include <PiDxe.h>\r
-#include <Protocol/FrameworkHii.h>\r
+//#include <Protocol/FrameworkHii.h>\r
#include <Protocol/SimpleTextOut.h>\r
#include <Protocol/GraphicsOutput.h>\r
#include <Protocol/UgaDraw.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiLib.h>\r
-#include <Library/FrameworkHiiLib.h>\r
+//#include <Library/FrameworkHiiLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
+#include <Library/HiiLib.h>\r
+#include <Library/BaseLib.h>\r
+\r
+#include <MdeModuleHii.h>\r
+\r
+#include <Protocol/HiiFont.h>\r
+#include <Protocol/HiiDatabase.h>\r
\r
\r
extern EFI_COMPONENT_NAME_PROTOCOL gGraphicsConsoleComponentName;\r
//\r
// Glyph database\r
//\r
-#define GLYPH_WIDTH 8\r
-#define GLYPH_HEIGHT 19\r
+//#define GLYPH_WIDTH 8\r
+//#define GLYPH_HEIGHT 19\r
+\r
+//\r
+// User can define valid graphic resolution here\r
+// e.g. 640x480, 800x600, 1024x768...\r
+//\r
+#define CURRENT_HORIZONTAL_RESOLUTION 800\r
+#define CURRENT_VERTICAL_RESOLUTION 600\r
\r
typedef union {\r
EFI_NARROW_GLYPH NarrowGlyph;\r
UINT32 GopModeNumber;\r
} GRAPHICS_CONSOLE_MODE_DATA;\r
\r
-#define GRAPHICS_MAX_MODE 3\r
+#define GRAPHICS_MAX_MODE 4\r
\r
typedef struct {\r
UINTN Signature;\r
IN BOOLEAN Visible\r
);\r
\r
-EFI_STATUS\r
-EfiLocateHiiProtocol (\r
- VOID\r
- );\r
-\r
EFI_STATUS\r
EFIAPI\r
GraphicsConsoleControllerDriverSupported (\r
IN EFI_HANDLE *ChildHandleBuffer\r
);\r
\r
+EFI_STATUS\r
+EfiLocateHiiProtocol (\r
+ VOID\r
+ )\r
+;\r
+\r
+\r
#endif\r