]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[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
9d510e61 5SPDX-License-Identifier: BSD-2-Clause-Patent\r
a382952f
RN
6\r
7**/\r
8\r
a382952f
RN
9#ifndef _BOOT_MANAGER_MENU_H_\r
10#define _BOOT_MANAGER_MENU_H_\r
11\r
12#include <Uefi.h>\r
13#include <Guid/MdeModuleHii.h>\r
14#include <Library/UefiBootManagerLib.h>\r
15#include <Library/UefiBootServicesTableLib.h>\r
16#include <Library/UefiLib.h>\r
17#include <Library/HiiLib.h>\r
18#include <Library/MemoryAllocationLib.h>\r
19#include <Library/DebugLib.h>\r
20#include <Library/BaseMemoryLib.h>\r
21#include <Library/DevicePathLib.h>\r
22#include <Protocol/LoadedImage.h>\r
23#include <Protocol/BootLogo.h>\r
24\r
1436aea4
MK
25#define TITLE_TOKEN_COUNT 1\r
26#define HELP_TOKEN_COUNT 3\r
a382952f
RN
27\r
28typedef struct _BOOT_MENU_SCREEN {\r
1436aea4
MK
29 UINTN StartCol;\r
30 UINTN StartRow;\r
31 UINTN Width;\r
32 UINTN Height;\r
d1102dba 33} BOOT_MENU_SCREEN;\r
a382952f
RN
34\r
35typedef struct _BOOT_MENU_SCROLL_BAR_CONTROL {\r
1436aea4
MK
36 BOOLEAN HasScrollBar;\r
37 UINTN ItemCountPerScreen;\r
38 UINTN FirstItem;\r
39 UINTN LastItem;\r
d1102dba 40} BOOT_MENU_SCROLL_BAR_CONTROL;\r
a382952f
RN
41\r
42typedef struct _BOOT_MENU_POPUP_DATA {\r
43 EFI_STRING_ID TitleToken[TITLE_TOKEN_COUNT]; // Title string ID\r
44 UINTN ItemCount; // Selectable item count\r
45 EFI_STRING_ID *PtrTokens; // All of selectable items string ID\r
46 EFI_STRING_ID HelpToken[HELP_TOKEN_COUNT]; // All of help string ID\r
d1102dba 47 UINTN SelectItem; // Current select item\r
a382952f 48 BOOT_MENU_SCREEN MenuScreen; // Boot menu screen information\r
02d7b797 49 BOOT_MENU_SCROLL_BAR_CONTROL ScrollBarControl; // Boot menu scroll bar information\r
a382952f
RN
50} BOOT_MENU_POPUP_DATA;\r
51\r
d1102dba 52#endif\r