/*++\r
\r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
if (OpenStatus == EFI_ALREADY_STARTED) {\r
return EFI_ALREADY_STARTED;\r
}\r
- \r
+\r
//\r
// Use the USB I/O protocol interface to see the Controller is\r
// the Mouse controller that can be managed by this driver.\r
UsbMouseDevice->SimplePointerProtocol.Mode = &UsbMouseDevice->Mode;\r
\r
Status = gBS->CreateEvent (\r
- EFI_EVENT_NOTIFY_WAIT,\r
- EFI_TPL_NOTIFY,\r
+ EVT_NOTIFY_WAIT,\r
+ TPL_NOTIFY,\r
UsbMouseWaitForInput,\r
UsbMouseDevice,\r
&((UsbMouseDevice->SimplePointerProtocol).WaitForInput)\r
Status = EFI_DEVICE_ERROR;\r
goto ErrorExit;\r
}\r
- \r
+\r
//\r
// After Enabling Async Interrupt Transfer on this mouse Device\r
// we will be able to get key data from it. Thus this is deemed as\r
// the enable action of the mouse\r
//\r
- \r
+\r
MouseReportStatusCode (\r
UsbMouseDevice->DevicePath,\r
EFI_PROGRESS_CODE,\r
}\r
\r
Status = gBS->CreateEvent (\r
- EFI_EVENT_TIMER | EFI_EVENT_NOTIFY_SIGNAL,\r
- EFI_TPL_NOTIFY,\r
+ EVT_TIMER | EVT_NOTIFY_SIGNAL,\r
+ TPL_NOTIFY,\r
USBMouseRecoveryHandler,\r
UsbMouseDev,\r
&UsbMouseDev->DelayedRecoveryEvent\r
\r
Routine Description:\r
Get the mouse state, see SIMPLE POINTER PROTOCOL.\r
- \r
+\r
Arguments:\r
This - Protocol instance pointer.\r
MouseState - Current mouse state\r
- \r
+\r
Returns:\r
EFI_SUCCESS\r
EFI_DEVICE_ERROR\r
\r
Routine Description:\r
Reset the mouse device, see SIMPLE POINTER PROTOCOL.\r
- \r
+\r
Arguments:\r
This - Protocol instance pointer.\r
ExtendedVerification - Ignored here/\r
- \r
+\r
Returns:\r
EFI_SUCCESS\r
\r
IN VOID *Context\r
)\r
/*++\r
- \r
+\r
Routine Description:\r
Timer handler for Delayed Recovery timer.\r
- \r
+\r
Arguments:\r
Event - The Delayed Recovery event.\r
Context - Points to the USB_KB_DEV instance.\r
- \r
+\r
Returns:\r
- \r
---*/ \r
+\r
+--*/\r
{\r
USB_MOUSE_DEV *UsbMouseDev;\r
EFI_USB_IO_PROTOCOL *UsbIo;\r