From b7c51c9cf4864df6aabb99a1ae843becd577237c Mon Sep 17 00:00:00 2001 From: raywu Date: Fri, 15 Jun 2018 00:00:50 +0800 Subject: init. 1AQQW051 --- Include/Protocol/HotKeys.h | 108 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 Include/Protocol/HotKeys.h (limited to 'Include/Protocol/HotKeys.h') diff --git a/Include/Protocol/HotKeys.h b/Include/Protocol/HotKeys.h new file mode 100644 index 0000000..eb4375b --- /dev/null +++ b/Include/Protocol/HotKeys.h @@ -0,0 +1,108 @@ +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2005, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** + +//********************************************************************** +// $Header: /Alaska/BIN/Core/Include/Protocol/HotKeys.h 3 3/13/06 1:40a Felixp $ +// +// $Revision: 3 $ +// +// $Date: 3/13/06 1:40a $ +//********************************************************************** +// Revision History +// ---------------- +// $Log: /Alaska/BIN/Core/Include/Protocol/HotKeys.h $ +// +// 3 3/13/06 1:40a Felixp +// +// 2 3/04/05 10:38a Mandal +// +// 1 2/01/05 1:14a Felixp +// +// 2 1/18/05 3:22p Felixp +// PrintDebugMessage renamed to Trace +// +// 1 10/28/04 10:19a Olegi +// +// 1 9/30/04 3:38p Olegi +// Initial HotKeys protocol checkin. + +//********************************************************************** +// +// +// Name: HotKeys.h +// +// Description: HotKeys protocol definition +// +// +//********************************************************************** +#ifndef __HOT_KEYS_PROTOCOL_H__ +#define __HOT_KEYS_PROTOCOL_H__ +#ifdef __cplusplus +extern "C" { +#endif +#include + +#define EFI_HOT_KEYS_PROTOCOL_GUID \ + {0xf1e48287, 0x3fe1, 0x4535, 0x89, 0xab, 0x48, 0xd6, 0xc3, 0xda, 0x27, 0x59} + +GUID_VARIABLE_DECLARATION(gEfiHotKeysProtocolGuid,EFI_HOT_KEYS_PROTOCOL_GUID); + +// +// Keyboard extension functions definitions +// +typedef EFI_STATUS (*KEY_EXTENDED_FUNC) (VOID* Context); + +typedef struct _KEY_ASSOCIATION { + UINT8 KeyCode; + UINT8 KeyAttrib; + BOOLEAN ReportKey; + KEY_EXTENDED_FUNC KeyExtendedFunc; + VOID* FunctionContext; +} KEY_ASSOCIATION; + +// +// Forward declaration +// +//typedef struct _HOT_KEYS_PROTOCOL HOT_KEYS_PROTOCOL; + +typedef EFI_STATUS (EFIAPI *REGISTER_HOT_KEY) ( + IN KEY_ASSOCIATION *HotKey, + IN BOOLEAN ReplaceExisting +); + +typedef EFI_STATUS (EFIAPI *UNREGISTER_HOT_KEYS) (); + +typedef struct _HOT_KEYS_PROTOCOL { + REGISTER_HOT_KEY RegisterHotKey; + UNREGISTER_HOT_KEYS UnregisterHotKeys; +} HOT_KEYS_PROTOCOL; + +/****** DO NOT WRITE BELOW THIS LINE *******/ +#ifdef __cplusplus +} +#endif +#endif +//********************************************************************** +//********************************************************************** +//** ** +//** (C)Copyright 1985-2005, American Megatrends, Inc. ** +//** ** +//** All Rights Reserved. ** +//** ** +//** 6145-F Northbelt Pkwy, Norcross, GA 30071 ** +//** ** +//** Phone: (770)-246-8600 ** +//** ** +//********************************************************************** +//********************************************************************** -- cgit v1.2.3