]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Bus/Isa/Ps2MouseDxe/Ps2Mouse.c
updated the Bus Driver that is able to create all or one of its child handles on...
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Isa / Ps2MouseDxe / Ps2Mouse.c
index 600f031ec16bb685de3bd4558b418cb49add3650..13c4c206901a946ccbc2b8bf28e15217fe76e017 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   PS/2 Mouse driver. Routines that interacts with callers,\r
-  conforming to EFI driver model\r
+  conforming to EFI driver model.\r
   \r
-Copyright (c) 2006 - 2007, Intel Corporation\r
+Copyright (c) 2006 - 2009, 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
@@ -16,9 +16,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Ps2Mouse.h"\r
 #include "CommPs2.h"\r
 \r
-//\r
-// DriverBinding Protocol Instance\r
-//\r
+///\r
+/// DriverBinding Protocol Instance\r
+///\r
 EFI_DRIVER_BINDING_PROTOCOL gPS2MouseDriver = {\r
   PS2MouseDriverSupported,\r
   PS2MouseDriverStart,\r
@@ -109,9 +109,9 @@ PS2MouseDriverSupported (
 }\r
 \r
 /**\r
-  Start this driver on ControllerHandle by opening a IsaIo\r
-  protocol, creating PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid\r
-  finnally.\r
+  Start this driver on ControllerHandle by opening a IsaIo protocol, creating \r
+  PS2_MOUSE_ABSOLUTE_POINTER_DEV device and install gEfiAbsolutePointerProtocolGuid\r
+  finally.\r
 \r
   @param  This                 Protocol instance pointer.\r
   @param  ControllerHandle     Handle of device to bind driver to\r
@@ -205,9 +205,9 @@ PS2MouseDriverStart (
   //\r
   MouseDev->Signature       = PS2_MOUSE_DEV_SIGNATURE;\r
   MouseDev->Handle          = Controller;\r
-  MouseDev->SampleRate      = SSR_20;\r
-  MouseDev->Resolution      = CMR4;\r
-  MouseDev->Scaling         = SF1;\r
+  MouseDev->SampleRate      = SampleRate20;\r
+  MouseDev->Resolution      = MouseResolution4;\r
+  MouseDev->Scaling         = Scaling1;\r
   MouseDev->DataPackageSize = 3;\r
   MouseDev->IsaIo           = IsaIo;\r
   MouseDev->DevicePath      = ParentDevicePath;\r
@@ -377,7 +377,7 @@ ErrorExit:
   }\r
 \r
   if (MouseDev != NULL) {\r
-    gBS->FreePool (MouseDev);\r
+    FreePool (MouseDev);\r
   }\r
 \r
   gBS->CloseProtocol (\r
@@ -480,7 +480,7 @@ PS2MouseDriverStop (
 \r
   gBS->CloseEvent (MouseDev->SimplePointerProtocol.WaitForInput);\r
   FreeUnicodeStringTable (MouseDev->ControllerNameTable);\r
-  gBS->FreePool (MouseDev);\r
+  FreePool (MouseDev);\r
 \r
   gBS->CloseProtocol (\r
          Controller,\r