3 Copyright (c) 2007 - 2008, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Provides a way for 3rd party applications to register themselves for launch by the
19 Boot Manager based on hot key
31 #define GET_KEY_CODE_COUNT(KeyOptions) (((KeyOptions) & EFI_KEY_CODE_COUNT) >> 8)
33 #define BDS_HOTKEY_OPTION_SIGNATURE EFI_SIGNATURE_32 ('B', 'd', 'K', 'O')
38 EFI_HANDLE NotifyHandle
;
39 UINT16 BootOptionNumber
;
42 EFI_KEY_DATA KeyData
[3];
45 #define BDS_HOTKEY_OPTION_FROM_LINK(a) CR (a, BDS_HOTKEY_OPTION, Link, BDS_HOTKEY_OPTION_SIGNATURE)
47 #define VarKeyOrder L"KeyOrder"
51 IN EFI_KEY_OPTION
*KeyOption
,
52 OUT UINT16
*KeyOptionNumber
58 Create Key#### for the given hotkey.
62 KeyOption - The Hot Key Option to be added.
63 KeyOptionNumber - The key option number for Key#### (optional).
67 EFI_SUCCESS - Register hotkey successfully.
68 EFI_INVALID_PARAMETER - The hotkey option is invalid.
75 IN UINT16 KeyOptionNumber
81 Delete Key#### for the given Key Option number.
85 KeyOptionNumber - Key option number for Key####
89 EFI_SUCCESS - Unregister hotkey successfully.
90 EFI_NOT_FOUND - No Key#### is found for the given Key Option number.
97 InitializeHotkeyService (
104 Process all the "Key####" variables, associate Hotkeys with corresponding Boot Options.
112 EFI_SUCCESS - Hotkey services successfully initialized.