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 - 2008, Intel Corporation. <BR>
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
22 #define GET_KEY_CODE_COUNT(KeyOptions) (((KeyOptions) & EFI_KEY_CODE_COUNT) >> 8)
24 #define BDS_HOTKEY_OPTION_SIGNATURE EFI_SIGNATURE_32 ('B', 'd', 'K', 'O')
29 EFI_HANDLE NotifyHandle
;
30 UINT16 BootOptionNumber
;
33 EFI_KEY_DATA KeyData
[3];
36 #define BDS_HOTKEY_OPTION_FROM_LINK(a) CR (a, BDS_HOTKEY_OPTION, Link, BDS_HOTKEY_OPTION_SIGNATURE)
38 #define VAR_KEY_ORDER L"KeyOrder"
42 Create Key#### for the given hotkey.
45 @param KeyOption - The Hot Key Option to be added.
46 @param KeyOptionNumber - The key option number for Key#### (optional).
48 @retval EFI_SUCCESS Register hotkey successfully.
49 @retval EFI_INVALID_PARAMETER The hotkey option is invalid.
54 IN EFI_KEY_OPTION
*KeyOption
,
55 OUT UINT16
*KeyOptionNumber
60 Delete Key#### for the given Key Option number.
63 @param KeyOptionNumber - Key option number for Key####
65 @retval EFI_SUCCESS Unregister hotkey successfully.
66 @retval EFI_NOT_FOUND No Key#### is found for the given Key Option number.
71 IN UINT16 KeyOptionNumber
77 Process all the "Key####" variables, associate Hotkeys with corresponding Boot Options.
82 @retval EFI_SUCCESS Hotkey services successfully initialized.
86 InitializeHotkeyService (