]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/Hotkey.h
d73a1cbeeb1136f5d684fe67db8aab98bff52f52
2 Provides a way for 3rd party applications to register themselves for launch by the
3 Boot Manager based on hot key
5 Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
16 #define SET_BOOT_OPTION_SUPPORT_KEY_COUNT(a, c) { \
17 (a) = ((a) & ~EFI_BOOT_OPTION_SUPPORT_COUNT) | (((c) << LowBitSet32 (EFI_BOOT_OPTION_SUPPORT_COUNT)) & EFI_BOOT_OPTION_SUPPORT_COUNT); \
20 #define BDS_HOTKEY_OPTION_SIGNATURE SIGNATURE_32 ('B', 'd', 'K', 'O')
28 UINT16 BootOptionNumber
;
31 EFI_KEY_DATA KeyData
[3];
34 #define BDS_HOTKEY_OPTION_FROM_LINK(a) CR (a, BDS_HOTKEY_OPTION, Link, BDS_HOTKEY_OPTION_SIGNATURE)
38 Process all the "Key####" variables, associate Hotkeys with corresponding Boot Options.
43 @retval EFI_SUCCESS Hotkey services successfully initialized.
47 InitializeHotkeyService (
52 Try to boot the boot option triggered by hotkey.
53 @retval EFI_SUCCESS There is HotkeyBootOption & it is processed
54 @retval EFI_NOT_FOUND There is no HotkeyBootOption