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