Use PCD to customize if ps2 mouse and mouse pointer device do full reset.
Signed-off-by: li-elvin Reviewed-by: lgao4 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12755 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -256,7 +256,10 @@ PS2MouseAbsolutePointerDriverStart (
|
|||||||
//
|
//
|
||||||
// Reset the mouse
|
// Reset the mouse
|
||||||
//
|
//
|
||||||
Status = MouseAbsolutePointerDev->AbsolutePointerProtocol.Reset (&MouseAbsolutePointerDev->AbsolutePointerProtocol, TRUE);
|
Status = MouseAbsolutePointerDev->AbsolutePointerProtocol.Reset (
|
||||||
|
&MouseAbsolutePointerDev->AbsolutePointerProtocol,
|
||||||
|
FeaturePcdGet (PcdPs2MouseExtendedVerification)
|
||||||
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//
|
//
|
||||||
// mouse not connected
|
// mouse not connected
|
||||||
|
@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/ReportStatusCodeLib.h>
|
#include <Library/ReportStatusCodeLib.h>
|
||||||
|
#include <Library/PcdLib.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global Variables
|
// Global Variables
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Ps2 Mouse Simulate TouchPad Driver
|
# Ps2 Mouse Simulate TouchPad Driver
|
||||||
#
|
#
|
||||||
# This dirver directly uses IsaIo protocol service to support a faked Ps2 TouchPad work.
|
# This dirver directly uses IsaIo protocol service to support a faked Ps2 TouchPad 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
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -51,12 +51,16 @@
|
|||||||
UefiLib
|
UefiLib
|
||||||
UefiDriverEntryPoint
|
UefiDriverEntryPoint
|
||||||
DebugLib
|
DebugLib
|
||||||
|
PcdLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiIsaIoProtocolGuid ## TO_START
|
gEfiIsaIoProtocolGuid ## TO_START
|
||||||
gEfiAbsolutePointerProtocolGuid ## BY_START
|
gEfiAbsolutePointerProtocolGuid ## BY_START
|
||||||
gEfiDevicePathProtocolGuid ## TO_START
|
gEfiDevicePathProtocolGuid ## TO_START
|
||||||
|
|
||||||
|
[FeaturePcd]
|
||||||
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification
|
||||||
|
|
||||||
# [Event]
|
# [Event]
|
||||||
# ##
|
# ##
|
||||||
# # Event for EFI_SIMPLE_POINTER_PROTOCOL.WaitForInput.
|
# # Event for EFI_SIMPLE_POINTER_PROTOCOL.WaitForInput.
|
||||||
|
@ -266,7 +266,10 @@ PS2MouseDriverStart (
|
|||||||
//
|
//
|
||||||
// Reset the mouse
|
// Reset the mouse
|
||||||
//
|
//
|
||||||
Status = MouseDev->SimplePointerProtocol.Reset (&MouseDev->SimplePointerProtocol, TRUE);
|
Status = MouseDev->SimplePointerProtocol.Reset (
|
||||||
|
&MouseDev->SimplePointerProtocol,
|
||||||
|
FeaturePcdGet (PcdPs2MouseExtendedVerification)
|
||||||
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//
|
//
|
||||||
// mouse not connected
|
// mouse not connected
|
||||||
|
@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
#include <Library/MemoryAllocationLib.h>
|
#include <Library/MemoryAllocationLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/ReportStatusCodeLib.h>
|
#include <Library/ReportStatusCodeLib.h>
|
||||||
|
#include <Library/PcdLib.h>
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global Variables
|
// Global Variables
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# Ps2 Mouse Driver.
|
# Ps2 Mouse Driver.
|
||||||
#
|
#
|
||||||
# This dirver directly uses IsaIo protocol service to support Ps2 mouse work.
|
# This dirver directly uses IsaIo protocol service to support Ps2 mouse 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
|
# This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
@ -51,12 +51,15 @@
|
|||||||
UefiLib
|
UefiLib
|
||||||
UefiDriverEntryPoint
|
UefiDriverEntryPoint
|
||||||
DebugLib
|
DebugLib
|
||||||
|
PcdLib
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiIsaIoProtocolGuid ## TO_START
|
gEfiIsaIoProtocolGuid ## TO_START
|
||||||
gEfiSimplePointerProtocolGuid ## BY_START
|
gEfiSimplePointerProtocolGuid ## BY_START
|
||||||
gEfiDevicePathProtocolGuid ## TO_START
|
gEfiDevicePathProtocolGuid ## TO_START
|
||||||
|
|
||||||
|
[FeaturePcd]
|
||||||
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification
|
||||||
|
|
||||||
# [Event]
|
# [Event]
|
||||||
# ##
|
# ##
|
||||||
|
@ -123,6 +123,9 @@
|
|||||||
## If TRUE, ACPI Support Protocol will be installed.
|
## If TRUE, ACPI Support Protocol will be installed.
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdInstallAcpiSupportProtocol|TRUE|BOOLEAN|0x00010046
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdInstallAcpiSupportProtocol|TRUE|BOOLEAN|0x00010046
|
||||||
|
|
||||||
|
## This PCD specifies whether PS2 mouse does a extended verification during start.
|
||||||
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification|TRUE|BOOLEAN|0x00010047
|
||||||
|
|
||||||
[PcdsFixedAtBuild]
|
[PcdsFixedAtBuild]
|
||||||
## FFS filename to find the default BMP Logo file.
|
## FFS filename to find the default BMP Logo file.
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile |{ 0x99, 0x8b, 0xB2, 0x7B, 0xBB, 0x61, 0xD5, 0x11, 0x9A, 0x5D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }|VOID*|0x40000003
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile |{ 0x99, 0x8b, 0xB2, 0x7B, 0xBB, 0x61, 0xD5, 0x11, 0x9A, 0x5D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }|VOID*|0x40000003
|
||||||
|
Reference in New Issue
Block a user