2015-05-06 06:49:30 +02:00
|
|
|
/** @file
|
|
|
|
FrontPage routines to handle the callbacks and browser calls
|
|
|
|
|
2018-06-27 15:08:52 +02:00
|
|
|
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:05:13 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2015-05-06 06:49:30 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _BOOT_MANAGER_MENU_H_
|
|
|
|
#define _BOOT_MANAGER_MENU_H_
|
|
|
|
|
|
|
|
#include <Uefi.h>
|
|
|
|
#include <Guid/MdeModuleHii.h>
|
|
|
|
#include <Library/UefiBootManagerLib.h>
|
|
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
|
|
#include <Library/UefiLib.h>
|
|
|
|
#include <Library/HiiLib.h>
|
|
|
|
#include <Library/MemoryAllocationLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
#include <Library/BaseMemoryLib.h>
|
|
|
|
#include <Library/DevicePathLib.h>
|
|
|
|
#include <Protocol/LoadedImage.h>
|
|
|
|
#include <Protocol/BootLogo.h>
|
|
|
|
|
|
|
|
#define TITLE_TOKEN_COUNT 1
|
|
|
|
#define HELP_TOKEN_COUNT 3
|
|
|
|
|
|
|
|
typedef struct _BOOT_MENU_SCREEN {
|
|
|
|
UINTN StartCol;
|
|
|
|
UINTN StartRow;
|
|
|
|
UINTN Width;
|
|
|
|
UINTN Height;
|
2018-06-27 15:08:52 +02:00
|
|
|
} BOOT_MENU_SCREEN;
|
2015-05-06 06:49:30 +02:00
|
|
|
|
|
|
|
typedef struct _BOOT_MENU_SCROLL_BAR_CONTROL {
|
|
|
|
BOOLEAN HasScrollBar;
|
|
|
|
UINTN ItemCountPerScreen;
|
|
|
|
UINTN FirstItem;
|
|
|
|
UINTN LastItem;
|
2018-06-27 15:08:52 +02:00
|
|
|
} BOOT_MENU_SCROLL_BAR_CONTROL;
|
2015-05-06 06:49:30 +02:00
|
|
|
|
|
|
|
typedef struct _BOOT_MENU_POPUP_DATA {
|
|
|
|
EFI_STRING_ID TitleToken[TITLE_TOKEN_COUNT]; // Title string ID
|
|
|
|
UINTN ItemCount; // Selectable item count
|
|
|
|
EFI_STRING_ID *PtrTokens; // All of selectable items string ID
|
|
|
|
EFI_STRING_ID HelpToken[HELP_TOKEN_COUNT]; // All of help string ID
|
2018-06-27 15:08:52 +02:00
|
|
|
UINTN SelectItem; // Current select item
|
2015-05-06 06:49:30 +02:00
|
|
|
BOOT_MENU_SCREEN MenuScreen; // Boot menu screen information
|
2020-02-07 02:07:23 +01:00
|
|
|
BOOT_MENU_SCROLL_BAR_CONTROL ScrollBarControl; // Boot menu scroll bar information
|
2015-05-06 06:49:30 +02:00
|
|
|
} BOOT_MENU_POPUP_DATA;
|
|
|
|
|
2018-06-27 15:08:52 +02:00
|
|
|
#endif
|
2015-05-06 06:49:30 +02:00
|
|
|
|