Add a PcdPs2KbdExtendedVerification to let user to choose whether extend reset for keyboard driver in start (). Add more debug information in the driver.
Signed-off-by: li-elvin Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12207 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -332,7 +332,7 @@ KbdControllerDriverStart (
|
||||
//
|
||||
// Reset the keyboard device
|
||||
//
|
||||
Status = ConsoleIn->ConInEx.Reset (&ConsoleIn->ConInEx, TRUE);
|
||||
Status = ConsoleIn->ConInEx.Reset (&ConsoleIn->ConInEx, FeaturePcdGet (PcdPs2KbdExtendedVerification));
|
||||
if (EFI_ERROR (Status)) {
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
StatusCode = EFI_PERIPHERAL_KEYBOARD | EFI_P_EC_NOT_DETECTED;
|
||||
|
@@ -33,6 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/TimerLib.h>
|
||||
#include <Library/PcdLib.h>
|
||||
|
||||
//
|
||||
// Global Variables
|
||||
|
@@ -4,7 +4,7 @@
|
||||
# The keyboard type implemented follows IBM compatible PS2 protocol, with Scan Codes Set 1.
|
||||
#
|
||||
# This dirver directly uses IsaIo protocol service to support KeyBoard work.
|
||||
# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2011, 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
|
||||
@@ -56,6 +56,7 @@
|
||||
BaseLib
|
||||
BaseMemoryLib
|
||||
TimerLib
|
||||
PcdLib
|
||||
|
||||
[Protocols]
|
||||
gEfiPs2PolicyProtocolGuid # PROTOCOL TO_START
|
||||
@@ -64,6 +65,9 @@
|
||||
gEfiSimpleTextInputExProtocolGuid # PROTOCOL BY_START
|
||||
gEfiDevicePathProtocolGuid # PROTOCOL TO_START
|
||||
|
||||
[FeaturePcd]
|
||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2KbdExtendedVerification
|
||||
|
||||
# [Event]
|
||||
# ##
|
||||
# # Event will be signaled for WaitForKey event.
|
||||
|
Reference in New Issue
Block a user