]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Use PCD to customize if ps2 mouse and mouse pointer device do full reset.
authorli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 21 Nov 2011 11:16:39 +0000 (11:16 +0000)
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 21 Nov 2011 11:16:39 +0000 (11:16 +0000)
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

IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointer.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointer.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseAbsolutePointerDxe/Ps2MouseAbsolutePointerDxe.inf
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.h
IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec

index de66ee0bffc2c212f726b2d5d1032f1550cb2da3..664d7409b190a6d32003c467d06f2b3a20c764c0 100644 (file)
@@ -256,7 +256,10 @@ PS2MouseAbsolutePointerDriverStart (
   //\r
   // Reset the mouse\r
   //\r
-  Status = MouseAbsolutePointerDev->AbsolutePointerProtocol.Reset (&MouseAbsolutePointerDev->AbsolutePointerProtocol, TRUE);\r
+  Status = MouseAbsolutePointerDev->AbsolutePointerProtocol.Reset (\r
+                     &MouseAbsolutePointerDev->AbsolutePointerProtocol,\r
+                     FeaturePcdGet (PcdPs2MouseExtendedVerification)\r
+                     );\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // mouse not connected\r
index 5a929dd6d015015ee7dde79ec663e91cef1f0aa9..a4e2174a4c3b5829ce0277115685b6bddeffeb4d 100644 (file)
@@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/ReportStatusCodeLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 //\r
 // Global Variables\r
index d9e447df72218d5d06be6e3bb6ddac0203d04fd7..d93a0045f47393ac267a82e7111be2ec6a742e10 100644 (file)
@@ -2,7 +2,7 @@
 # Ps2 Mouse Simulate TouchPad Driver\r
 #\r
 # This dirver directly uses IsaIo protocol service to support a faked Ps2 TouchPad work.\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
   UefiLib\r
   UefiDriverEntryPoint\r
   DebugLib\r
+  PcdLib\r
 \r
 [Protocols]\r
   gEfiIsaIoProtocolGuid                         ## TO_START\r
   gEfiAbsolutePointerProtocolGuid               ## BY_START\r
   gEfiDevicePathProtocolGuid                    ## TO_START\r
 \r
+[FeaturePcd]\r
+  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification\r
+\r
 # [Event]\r
 #   ##\r
 #   # Event for EFI_SIMPLE_POINTER_PROTOCOL.WaitForInput.\r
index 0693e11087f0fdf5ca08cfd698102ba0f283e11d..273bbd629342ac2ea19a9ddea08ad04cca6e39fd 100644 (file)
@@ -266,7 +266,10 @@ PS2MouseDriverStart (
   //\r
   // Reset the mouse\r
   //\r
-  Status = MouseDev->SimplePointerProtocol.Reset (&MouseDev->SimplePointerProtocol, TRUE);\r
+  Status = MouseDev->SimplePointerProtocol.Reset (\r
+                     &MouseDev->SimplePointerProtocol,\r
+                     FeaturePcdGet (PcdPs2MouseExtendedVerification)\r
+                     );\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // mouse not connected\r
index f3cf6f67012fd13ec4150c37d9b1d0755ef84941..604fb47e47e6e76060311707d3936b88e52c9251 100644 (file)
@@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/MemoryAllocationLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/ReportStatusCodeLib.h>\r
+#include <Library/PcdLib.h>\r
 \r
 //\r
 // Global Variables\r
index f3286c6869aefe5d8ae89501b45db9886aa4685a..1519e0394fbdaac614dfdd119099eaf8ea46365b 100644 (file)
@@ -2,7 +2,7 @@
 # Ps2 Mouse Driver.\r
 #\r
 # This dirver directly uses IsaIo protocol service to support Ps2 mouse work.\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
   UefiLib\r
   UefiDriverEntryPoint\r
   DebugLib\r
+  PcdLib\r
 \r
 [Protocols]\r
   gEfiIsaIoProtocolGuid                         ## TO_START\r
   gEfiSimplePointerProtocolGuid                 ## BY_START\r
   gEfiDevicePathProtocolGuid                    ## TO_START\r
 \r
+[FeaturePcd]\r
+  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification\r
 \r
 # [Event]\r
 #   ##\r
index c5b2da847c9c66a3729076f82ae112e098e4268e..3be1df61e7d74c1759e3fdd2e446ae1e2b72e3ee 100644 (file)
   ## If TRUE, ACPI Support Protocol will be installed.\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdInstallAcpiSupportProtocol|TRUE|BOOLEAN|0x00010046\r
 \r
+  ## This PCD specifies whether PS2 mouse does a extended verification during start.\r
+  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPs2MouseExtendedVerification|TRUE|BOOLEAN|0x00010047\r
+\r
 [PcdsFixedAtBuild]\r
   ## FFS filename to find the default BMP Logo file.\r
   gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile |{ 0x99, 0x8b, 0xB2, 0x7B, 0xBB, 0x61, 0xD5, 0x11, 0x9A, 0x5D, 0x00, 0x90, 0x27, 0x3F, 0xC1, 0x4D }|VOID*|0x40000003\r