X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FSimpleTextInEx.h;h=8dcb5e141906eb80d306f293a7113ad76223aee4;hp=ac4d7a4828e752a194b748162d7ce0f5e2214215;hb=44717a398fddc4df1f4aeaa70bcd7a043187ed34;hpb=3f748e529cb13841e12d0bfdf8446db7763a3f20 diff --git a/MdePkg/Include/Protocol/SimpleTextInEx.h b/MdePkg/Include/Protocol/SimpleTextInEx.h index ac4d7a4828..8dcb5e1419 100644 --- a/MdePkg/Include/Protocol/SimpleTextInEx.h +++ b/MdePkg/Include/Protocol/SimpleTextInEx.h @@ -4,7 +4,7 @@ EFI_SIMPLE_TEXT_INPUT_PROTOCOL supports the same languages as the corresponding - Copyright (c) 2006 - 2007, Intel Corporation + Copyright (c) 2006 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -38,9 +38,7 @@ typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL EFI_SIMPLE_TEXT_INPUT_EX_PROTO this specification and is left up to the platform firmware or driver to implement. - @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - instance. Type EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - is defined in this section. + @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance. @param ExtendedVerification Indicates that the driver may perform a more exhaustive @@ -48,7 +46,7 @@ typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL EFI_SIMPLE_TEXT_INPUT_EX_PROTO device during reset. - @retval EFI_SUCCESS The device was reset. + @retval EFI_SUCCESS The device was reset. @retval EFI_DEVICE_ERROR The device is not functioning correctly and could not be reset. @@ -56,7 +54,7 @@ typedef struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL EFI_SIMPLE_TEXT_INPUT_EX_PROTO **/ typedef EFI_STATUS -(EFIAPI *EFI_INPUT_RESET_EX) ( +(EFIAPI *EFI_INPUT_RESET_EX)( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN BOOLEAN ExtendedVerification ); @@ -89,8 +87,8 @@ typedef struct _EFI_KEY_STATE { /** Definition of EFI_KEY_DATA. - @param Key The EFI scan code and Unicode value returned from - the input device. + @param Key The EFI scan code and Unicode value returned from + the input device. @param KeyState The current state of various toggled attributes as well as input modifier values. @@ -185,8 +183,7 @@ typedef struct { respective Toggle and Shift state fields should not be active. - @param This A pointer to the - EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX instance. + @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance. @param KeyData A pointer to a buffer that is filled in with the keystroke state data for the key that was @@ -205,7 +202,7 @@ typedef struct { **/ typedef EFI_STATUS -(EFIAPI *EFI_INPUT_READ_KEY_EX) ( +(EFIAPI *EFI_INPUT_READ_KEY_EX)( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, OUT EFI_KEY_DATA *KeyData ); @@ -214,15 +211,13 @@ EFI_STATUS The SetState() function allows the input device hardware to have state settings adjusted. - @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - instance. Type EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - is defined in this section. + @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance. @param KeyToggleState Pointer to the EFI_KEY_TOGGLE_STATE to set the state for the input device. - @retval EFI_SUCCESS The device state was set appropriately. + @retval EFI_SUCCESS The device state was set appropriately. @retval EFI_DEVICE_ERROR The device is not functioning correctly and could not have the @@ -234,7 +229,7 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_SET_STATE) ( +(EFIAPI *EFI_SET_STATE)( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN EFI_KEY_TOGGLE_STATE *KeyToggleState ); @@ -244,7 +239,7 @@ EFI_STATUS // typedef EFI_STATUS -(EFIAPI *EFI_KEY_NOTIFY_FUNCTION) ( +(EFIAPI *EFI_KEY_NOTIFY_FUNCTION)( IN EFI_KEY_DATA *KeyData ); @@ -252,21 +247,19 @@ EFI_STATUS The RegisterKeystrokeNotify() function registers a function which will be called when a specified keystroke will occur. - @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - instance. Type EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - is defined in this section. + @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance. - @param KeyData A pointer to a buffer that is filled in with - the keystroke information for the key that was - pressed. + @param KeyData A pointer to a buffer that is filled in with + the keystroke information for the key that was + pressed. @param KeyNotificationFunction Points to the function to be called when the key sequence is typed specified by KeyData. - @param NotifyHandle Points to the unique handle assigned to - the registered notification. + @param NotifyHandle Points to the unique handle assigned to + the registered notification. @retval EFI_SUCCESS The device state was set appropriately. @@ -277,7 +270,7 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY) ( +(EFIAPI *EFI_REGISTER_KEYSTROKE_NOTIFY)( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN EFI_KEY_DATA *KeyData, IN EFI_KEY_NOTIFY_FUNCTION KeyNotificationFunction, @@ -288,8 +281,7 @@ EFI_STATUS The UnregisterKeystrokeNotify() function removes the notification which was previously registered. - @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_PROTOCOL_EX - instance. + @param This A pointer to the EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL instance. @param NotificationHandle The handle of the notification function being unregistered. @@ -302,40 +294,24 @@ EFI_STATUS **/ typedef EFI_STATUS -(EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY) ( +(EFIAPI *EFI_UNREGISTER_KEYSTROKE_NOTIFY)( IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL *This, IN EFI_HANDLE NotificationHandle ); -/** - The EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL is used on the ConsoleIn - device. It is an extension to the Simple Text Input protocol - which allows a variety of extended shift state information to be - returned. - - @param Reset Reset the ConsoleIn device. See Reset(). - - @param ReadKeyStrokeEx Returns the next input character. See - ReadKeyStrokeEx(). - - @param WaitForKeyEx Event to use with WaitForEvent() to wait - for a key to be available. - - @param SetState Set the EFI_KEY_TOGGLE_STATE state settings - for the input device. - - @param RegisterKeyNotify Register a notification function to - be called when a given key sequence - is hit. - - @param UnregisterKeyNotifyRemoves A specific notification - function. - -**/ +/// +/// The EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL is used on the ConsoleIn +/// device. It is an extension to the Simple Text Input protocol +/// which allows a variety of extended shift state information to be +/// returned. +/// struct _EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL{ EFI_INPUT_RESET_EX Reset; EFI_INPUT_READ_KEY_EX ReadKeyStrokeEx; + /// + /// Event to use with WaitForEvent() to wait for a key to be available. + /// EFI_EVENT WaitForKeyEx; EFI_SET_STATE SetState; EFI_REGISTER_KEYSTROKE_NOTIFY RegisterKeyNotify;