public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ruiyu" <ruiyu.ni@intel.com>
To: "Bi, Dandan" <dandan.bi@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Zeng, Star" <star.zeng@intel.com>, "Fan, Jeff" <jeff.fan@intel.com>
Subject: Re: [patch 2/8] IntelFrameworkModulePkg: Update comments in SimpleTextInEx
Date: Mon, 19 Jun 2017 02:31:30 +0000	[thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D5B99BD30@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <1497835292-34476-3-git-send-email-dandan.bi@intel.com>

Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>

Thanks/Ray

> -----Original Message-----
> From: Bi, Dandan
> Sent: Monday, June 19, 2017 9:21 AM
> To: edk2-devel@lists.01.org
> Cc: Zeng, Star <star.zeng@intel.com>; Ni, Ruiyu <ruiyu.ni@intel.com>; Fan,
> Jeff <jeff.fan@intel.com>
> Subject: [patch 2/8] IntelFrameworkModulePkg: Update comments in
> SimpleTextInEx
> 
> Update comments in SimpleTextInEx according to UEFI 2.7.
> 
> Cc: Star Zeng <star.zeng@intel.com>
> Cc: Ruiyu Ni <ruiyu.ni@intel.com>
> Cc: Jeff Fan <jeff.fan@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Dandan Bi <dandan.bi@intel.com>
> ---
>  .../Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c                | 10 +++++++---
>  .../Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h                 | 10 +++++++---
>  .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c             | 15 +++++++++-----
> -
>  .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h             | 16 ++++++++++---
> ---
>  4 files changed, 33 insertions(+), 18 deletions(-)
> 
> diff --git
> a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
> b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
> index 5825a04..12ee529 100644
> --- a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
> +++ b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c
> @@ -1,10 +1,10 @@
>  /** @file
>    Routines implements SIMPLE_TEXT_IN protocol's interfaces based on 8042
> interfaces
>    provided by Ps2KbdCtrller.c.
> 
> -Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
>  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
> http://opensource.org/licenses/bsd-license.php
> 
> @@ -531,13 +531,17 @@ Exit:
>  /**
>      Register a notification function for a particular keystroke for the input
> device.
> 
>      @param This                       Protocol instance pointer.
>      @param KeyData                    A pointer to a buffer that is filled in with the
> keystroke
> -                                      information data for the key that was pressed.
> +                                      information data for the key that was pressed.If
> KeyData.Key,
> +                                      KeyData.KeyState.KeyToggleState and
> KeyData.KeyState.KeyShiftState
> +                                      are 0, then any incomplete keystroke will trigger a
> notification of
> +                                      the KeyNotificationFunction.
>      @param KeyNotificationFunction    Points to the function to be called
> when the key
> -                                      sequence is typed specified by KeyData.
> +                                      sequence is typed specified by KeyData.This notification
> function
> +                                      should be called at <=TPL_CALLBACK.
>      @param NotifyHandle               Points to the unique handle assigned to the
> registered notification.
> 
>      @retval EFI_SUCCESS               The notification function was registered
> successfully.
>      @retval EFI_OUT_OF_RESOURCES      Unable to allocate resources for
> necesssary data structures.
>      @retval EFI_INVALID_PARAMETER     KeyData or NotifyHandle or
> KeyNotificationFunction is NULL.
> diff --git
> a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h
> b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h
> index 82aa5a6..656d759 100644
> --- a/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h
> +++ b/IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h
> @@ -1,9 +1,9 @@
>  /** @file
>    PS/2 keyboard driver header file
> 
> -Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
>  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
> http://opensource.org/licenses/bsd-license.php
> 
> @@ -492,13 +492,17 @@ KeyboardSetState (
>  /**
>      Register a notification function for a particular keystroke for the input
> device.
> 
>      @param This                    - Protocol instance pointer.
>      @param KeyData                 - A pointer to a buffer that is filled in with the
> keystroke
> -                              information data for the key that was pressed.
> +                                     information data for the key that was pressed.If
> KeyData.Key,
> +                                     KeyData.KeyState.KeyToggleState and
> KeyData.KeyState.KeyShiftState
> +                                     are 0, then any incomplete keystroke will trigger a
> notification of
> +                                     the KeyNotificationFunction.
>      @param KeyNotificationFunction - Points to the function to be called
> when the key
> -                              sequence is typed specified by KeyData.
> +                                     sequence is typed specified by KeyData.This notification
> function
> +                                     should be called at <=TPL_CALLBACK.
>      @param NotifyHandle            - Points to the unique handle assigned to the
> registered notification.
> 
>      @retval EFI_SUCCESS             - The notification function was registered
> successfully.
>      @retval EFI_OUT_OF_RESOURCES    - Unable to allocate resources for
> necesssary data structures.
>      @retval EFI_INVALID_PARAMETER   - KeyData or NotifyHandle is NULL.
> diff --git
> a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> c
> b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> c
> index 742d009..b04c340 100644
> ---
> a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> c
> +++
> b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> c
> @@ -2311,21 +2311,24 @@ Exit:
>  /**
>    Register a notification function for a particular keystroke for the input
> device.
> 
>    @param  This                    Protocol instance pointer.
>    @param  KeyData                 A pointer to a buffer that is filled in with the
> keystroke
> -                                  information data for the key that was pressed.
> +                                  information data for the key that was pressed.If
> KeyData.Key,
> +                                  KeyData.KeyState.KeyToggleState and
> KeyData.KeyState.KeyShiftState
> +                                  are 0, then any incomplete keystroke will trigger a
> notification of
> +                                  the KeyNotificationFunction.
>    @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.
> +                                  sequence is typed specified by KeyData.This notification
> function
> +                                  should be called at <=TPL_CALLBACK.
> +  @param  NotifyHandle            Points to the unique handle assigned to the
> registered notification.
> 
> -
>    @retval EFI_SUCCESS             The notification function was registered
> successfully.
>    @retval EFI_OUT_OF_RESOURCES    Unable to allocate resources for
> necesssary data structures.
>    @retval EFI_INVALID_PARAMETER   KeyData or NotifyHandle is NULL.
> -
> -**/
> +
> +**/
>  EFI_STATUS
>  EFIAPI
>  BiosKeyboardRegisterKeyNotify (
>    IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL  *This,
>    IN EFI_KEY_DATA                       *KeyData,
> diff --git
> a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> h
> b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> h
> index f38411a..c64a131 100644
> ---
> a/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> h
> +++
> b/IntelFrameworkModulePkg/Csm/BiosThunk/KeyboardDxe/BiosKeyboard.
> h
> @@ -1,8 +1,8 @@
>  /** @file
> 
> -Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
> 
>  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
> @@ -633,21 +633,25 @@ BiosKeyboardSetState (
>  /**
>    Register a notification function for a particular keystroke for the input
> device.
> 
>    @param  This                    Protocol instance pointer.
>    @param  KeyData                 A pointer to a buffer that is filled in with the
> keystroke
> -                                  information data for the key that was pressed.
> +                                  information data for the key that was pressed.If
> KeyData.Key,
> +                                  KeyData.KeyState.KeyToggleState and
> KeyData.KeyState.KeyShiftState
> +                                  are 0, then any incomplete keystroke will trigger a
> notification of
> +                                  the KeyNotificationFunction.
>    @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.
> +                                  sequence is typed specified by KeyData.This notification
> function
> +                                  should be called at <=TPL_CALLBACK.
> +  @param  NotifyHandle            Points to the unique handle assigned to the
> registered notification.
> 
> 
>    @retval EFI_SUCCESS             The notification function was registered
> successfully.
>    @retval EFI_OUT_OF_RESOURCES    Unable to allocate resources for
> necesssary data structures.
>    @retval EFI_INVALID_PARAMETER   KeyData or NotifyHandle is NULL.
> -
> -**/
> +
> +**/
>  EFI_STATUS
>  EFIAPI
>  BiosKeyboardRegisterKeyNotify (
>    IN EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL  *This,
>    IN EFI_KEY_DATA                       *KeyData,
> --
> 1.9.5.msysgit.1



  reply	other threads:[~2017-06-19  2:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-19  1:21 [patch 0/8] Update function comments according to UEFI2.7 spec Dandan Bi
2017-06-19  1:21 ` [patch 1/8] MdePkg/SimpleTextInEx: Update comments according to UEFI 2.7 spec Dandan Bi
2017-06-19  2:31   ` Ni, Ruiyu
2017-06-19  2:39   ` Zeng, Star
2017-06-19  1:21 ` [patch 2/8] IntelFrameworkModulePkg: Update comments in SimpleTextInEx Dandan Bi
2017-06-19  2:31   ` Ni, Ruiyu [this message]
2017-06-19  2:40   ` Zeng, Star
2017-06-19  1:21 ` [patch 3/8] MdeModulePkg: Update comments in SimpleTextInEx according to UEFI 2.7 Dandan Bi
2017-06-19  2:31   ` Ni, Ruiyu
2017-06-19  2:41   ` Zeng, Star
2017-06-19  2:57     ` Bi, Dandan
2017-06-19  1:21 ` [patch 4/8] MdePkg/HiiImageDecoder.h: Remove the unnecessary comments Dandan Bi
2017-06-19  2:31   ` Ni, Ruiyu
2017-06-19  1:21 ` [patch 5/8] MdePkg: Update comments in EFI_MEMORY_DESCRIPTOR according to UEFI2.7 Dandan Bi
2017-06-19  2:43   ` Zeng, Star
2017-06-19  1:21 ` [patch 6/8] MdePkg: update comments in ResetSystem() " Dandan Bi
2017-06-19  2:31   ` Ni, Ruiyu
2017-06-19  1:21 ` [patch 7/8] MdePkg: Clean ACPI 2.0 characters in UEFI spec Dandan Bi
2017-06-19  2:55   ` Zeng, Star
2017-06-19  1:21 ` [patch 8/8] MdeModulePkg: " Dandan Bi
2017-06-19  2:57   ` Zeng, Star

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=734D49CCEBEEF84792F5B80ED585239D5B99BD30@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox