X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkUnixPkg%2FDxe%2FUnixThunk%2FBus%2FUga%2FUnixUgaInput.c;h=9158a45c2e9286620dd1052179487dafbbdf120c;hp=babfa4bdac90b7674492deb8e0ae4c3eb6dd8d79;hb=93b0fbc8a1731a3c4ae789bebac4b1d8966719c3;hpb=c9093a06e72ef16d2f3bd7ce0a2b9a172e9d048c diff --git a/EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c b/EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c index babfa4bdac..9158a45c2e 100644 --- a/EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c +++ b/EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaInput.c @@ -1,13 +1,13 @@ /*++ -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials -are licensed and made available under the terms and conditions of the BSD License -which accompanies this distribution. The full text of the license may be found at -http://opensource.org/licenses/bsd-license.php - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: @@ -15,13 +15,13 @@ Module Name: Abstract: - This file produces the Simple Text In for an Uga window. + This file produces the Simple Text In for an Uga window. This stuff is linked at the hip to the Window, since the window processing is done in a thread kicked off in UnixUgaImplementation.c Since the window information is processed in an other thread we need - a keyboard Queue to pass data about. The Simple Text In code just + a keyboard Queue to pass data about. The Simple Text In code just takes data off the Queue. The WinProc message loop takes keyboard input and places it in the Queue. @@ -68,7 +68,7 @@ Returns: // // Enter critical section // - OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY); + OldTpl = gBS->RaiseTPL (TPL_NOTIFY); // // A reset is draining the Queue @@ -119,7 +119,7 @@ Returns: // // Enter critical section // - OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY); + OldTpl = gBS->RaiseTPL (TPL_NOTIFY); Status = Private->UgaIo->UgaGetKey(Private->UgaIo, Key); // @@ -166,7 +166,7 @@ Returns: // // Enter critical section // - OldTpl = gBS->RaiseTPL (EFI_TPL_NOTIFY); + OldTpl = gBS->RaiseTPL (TPL_NOTIFY); Status = Private->UgaIo->UgaCheckKey(Private->UgaIo); if (!EFI_ERROR (Status)) { @@ -210,8 +210,8 @@ Returns: Private->SimpleTextIn.ReadKeyStroke = UnixUgaSimpleTextInReadKeyStroke; Status = gBS->CreateEvent ( - EFI_EVENT_NOTIFY_WAIT, - EFI_TPL_NOTIFY, + EVT_NOTIFY_WAIT, + TPL_NOTIFY, UnixUgaSimpleTextInWaitForKey, Private, &Private->SimpleTextIn.WaitForKey