]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Bus/Usb/UsbMouse/Dxe/usbmouse.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkModulePkg / Bus / Usb / UsbMouse / Dxe / usbmouse.c
index f7449ebfc332619e57cd1d1f517d297745d30980..a3fc6c725f8d0377b6effd33edb587d3cdc93a21 100644 (file)
@@ -1,13 +1,13 @@
 /*++\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
@@ -127,7 +127,7 @@ USBMouseDriverBindingSupported (
   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
@@ -283,8 +283,8 @@ USBMouseDriverBindingStart (
   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
@@ -304,13 +304,13 @@ USBMouseDriverBindingStart (
     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
@@ -677,8 +677,8 @@ InitializeUsbMouseDevice (
   }\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
@@ -805,11 +805,11 @@ GetMouseState (
 \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
@@ -858,11 +858,11 @@ UsbMouseReset (
 \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
@@ -928,17 +928,17 @@ USBMouseRecoveryHandler (
   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