/** @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
#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
}\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
//\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
}\r
\r
if (MouseDev != NULL) {\r
- gBS->FreePool (MouseDev);\r
+ FreePool (MouseDev);\r
}\r
\r
gBS->CloseProtocol (\r
\r
gBS->CloseEvent (MouseDev->SimplePointerProtocol.WaitForInput);\r
FreeUnicodeStringTable (MouseDev->ControllerNameTable);\r
- gBS->FreePool (MouseDev);\r
+ FreePool (MouseDev);\r
\r
gBS->CloseProtocol (\r
Controller,\r