summaryrefslogtreecommitdiff
path: root/Include/Protocol/HotKeys.h
diff options
context:
space:
mode:
authorraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
committerraywu <raywu0301@gmail.com>2018-06-15 00:00:50 +0800
commitb7c51c9cf4864df6aabb99a1ae843becd577237c (patch)
treeeebe9b0d0ca03062955223097e57da84dd618b9a /Include/Protocol/HotKeys.h
downloadzprj-b7c51c9cf4864df6aabb99a1ae843becd577237c.tar.xz
init. 1AQQW051HEADmaster
Diffstat (limited to 'Include/Protocol/HotKeys.h')
-rw-r--r--Include/Protocol/HotKeys.h108
1 files changed, 108 insertions, 0 deletions
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.
+
+//**********************************************************************
+//<AMI_FHDR_START>
+//
+// Name: HotKeys.h
+//
+// Description: HotKeys protocol definition
+//
+//<AMI_FHDR_END>
+//**********************************************************************
+#ifndef __HOT_KEYS_PROTOCOL_H__
+#define __HOT_KEYS_PROTOCOL_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include <EFI.h>
+
+#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 **
+//** **
+//**********************************************************************
+//**********************************************************************