]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.h
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Application / BootManagerMenuApp / BootManagerMenu.h
CommitLineData
a382952f
RN
1/** @file\r
2 FrontPage routines to handle the callbacks and browser calls\r
3\r
d1102dba 4Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
a382952f
RN
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15\r
16#ifndef _BOOT_MANAGER_MENU_H_\r
17#define _BOOT_MANAGER_MENU_H_\r
18\r
19#include <Uefi.h>\r
20#include <Guid/MdeModuleHii.h>\r
21#include <Library/UefiBootManagerLib.h>\r
22#include <Library/UefiBootServicesTableLib.h>\r
23#include <Library/UefiLib.h>\r
24#include <Library/HiiLib.h>\r
25#include <Library/MemoryAllocationLib.h>\r
26#include <Library/DebugLib.h>\r
27#include <Library/BaseMemoryLib.h>\r
28#include <Library/DevicePathLib.h>\r
29#include <Protocol/LoadedImage.h>\r
30#include <Protocol/BootLogo.h>\r
31\r
32#define TITLE_TOKEN_COUNT 1\r
33#define HELP_TOKEN_COUNT 3\r
34\r
35typedef struct _BOOT_MENU_SCREEN {\r
36 UINTN StartCol;\r
37 UINTN StartRow;\r
38 UINTN Width;\r
39 UINTN Height;\r
d1102dba 40} BOOT_MENU_SCREEN;\r
a382952f
RN
41\r
42typedef struct _BOOT_MENU_SCROLL_BAR_CONTROL {\r
43 BOOLEAN HasScrollBar;\r
44 UINTN ItemCountPerScreen;\r
45 UINTN FirstItem;\r
46 UINTN LastItem;\r
d1102dba 47} BOOT_MENU_SCROLL_BAR_CONTROL;\r
a382952f
RN
48\r
49typedef struct _BOOT_MENU_POPUP_DATA {\r
50 EFI_STRING_ID TitleToken[TITLE_TOKEN_COUNT]; // Title string ID\r
51 UINTN ItemCount; // Selectable item count\r
52 EFI_STRING_ID *PtrTokens; // All of selectable items string ID\r
53 EFI_STRING_ID HelpToken[HELP_TOKEN_COUNT]; // All of help string ID\r
d1102dba 54 UINTN SelectItem; // Current select item\r
a382952f
RN
55 BOOT_MENU_SCREEN MenuScreen; // Boot menu screen information\r
56 BOOT_MENU_SCROLL_BAR_CONTROL ScrollBarControl; // Boot menu scroll bar inoformation\r
57} BOOT_MENU_POPUP_DATA;\r
58\r
d1102dba 59#endif\r
a382952f 60\r