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 VarKeyOrder L"KeyOrder"
42 IN EFI_KEY_OPTION
*KeyOption
,
43 OUT UINT16
*KeyOptionNumber
49 Create Key#### for the given hotkey.
53 KeyOption - The Hot Key Option to be added.
54 KeyOptionNumber - The key option number for Key#### (optional).
58 EFI_SUCCESS - Register hotkey successfully.
59 EFI_INVALID_PARAMETER - The hotkey option is invalid.
66 IN UINT16 KeyOptionNumber
72 Delete Key#### for the given Key Option number.
76 KeyOptionNumber - Key option number for Key####
80 EFI_SUCCESS - Unregister hotkey successfully.
81 EFI_NOT_FOUND - No Key#### is found for the given Key Option number.
88 InitializeHotkeyService (
95 Process all the "Key####" variables, associate Hotkeys with corresponding Boot Options.
103 EFI_SUCCESS - Hotkey services successfully initialized.