]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkUnixPkg / Dxe / UnixThunk / Bus / Uga / UnixUgaInput.c
index babfa4bdac90b7674492deb8e0ae4c3eb6dd8d79..9158a45c2e9286620dd1052179487dafbbdf120c 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
@@ -15,13 +15,13 @@ Module Name:
 \r
 Abstract:\r
 \r
-  This file produces the Simple Text In for an Uga window. \r
+  This file produces the Simple Text In for an Uga window.\r
 \r
   This stuff is linked at the hip to the Window, since the window\r
   processing is done in a thread kicked off in UnixUgaImplementation.c\r
 \r
   Since the window information is processed in an other thread we need\r
-  a keyboard Queue to pass data about. The Simple Text In code just \r
+  a keyboard Queue to pass data about. The Simple Text In code just\r
   takes data off the Queue. The WinProc message loop takes keyboard input\r
   and places it in the Queue.\r
 \r
@@ -68,7 +68,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   //\r
   // A reset is draining the Queue\r
@@ -119,7 +119,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = Private->UgaIo->UgaGetKey(Private->UgaIo, Key);
   //\r
@@ -166,7 +166,7 @@ Returns:
   //\r
   // Enter critical section\r
   //\r
-  OldTpl  = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OldTpl  = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status  = Private->UgaIo->UgaCheckKey(Private->UgaIo);
   if (!EFI_ERROR (Status)) {\r
@@ -210,8 +210,8 @@ Returns:
   Private->SimpleTextIn.ReadKeyStroke = UnixUgaSimpleTextInReadKeyStroke;\r
 \r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_NOTIFY_WAIT,\r
-                  EFI_TPL_NOTIFY,\r
+                  EVT_NOTIFY_WAIT,\r
+                  TPL_NOTIFY,\r
                   UnixUgaSimpleTextInWaitForKey,\r
                   Private,\r
                   &Private->SimpleTextIn.WaitForKey\r