]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/UnixThunk/Bus/Uga/UnixUgaScreen.c
Add some definitions for efi event in Uefi/UefiSpec.h to follow spec.
[mirror_edk2.git] / EdkUnixPkg / Dxe / UnixThunk / Bus / Uga / UnixUgaScreen.c
index 85c23f0d8ff2ee4ab172e5d65ec56440df59e5a7..10efc5e3d616ad7204fde780902c6f41b2229bae 100644 (file)
@@ -1,22 +1,22 @@
 /*++\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
+\r
     UnixUgaScreen.c\r
 \r
 Abstract:\r
 \r
-  This file produces the graphics abstration of UGA. It is called by \r
-  UnixUgaDriver.c file which deals with the EFI 1.1 driver model. \r
+  This file produces the graphics abstration of UGA. It is called by\r
+  UnixUgaDriver.c file which deals with the EFI 1.1 driver model.\r
   This file just does graphics.\r
 \r
 --*/\r
@@ -71,7 +71,7 @@ UnixUgaGetMode (
 \r
   Returns:\r
     EFI_SUCCESS     - Mode information returned.\r
-    EFI_NOT_STARTED - Video display is not initialized. Call SetMode () \r
+    EFI_NOT_STARTED - Video display is not initialized. Call SetMode ()\r
     EFI_INVALID_PARAMETER - One of the input args was NULL.\r
 \r
 --*/\r
@@ -122,7 +122,7 @@ UnixUgaSetMode (
 \r
   Returns:\r
     EFI_SUCCESS     - Mode information returned.\r
-    EFI_NOT_STARTED - Video display is not initialized. Call SetMode () \r
+    EFI_NOT_STARTED - Video display is not initialized. Call SetMode ()\r
     EFI_INVALID_PARAMETER - One of the input args was NULL.\r
 \r
 --*/\r
@@ -196,19 +196,19 @@ UnixUgaBlt (
   Routine Description:\r
     Blt pixels from the rectangle (Width X Height) formed by the BltBuffer\r
     onto the graphics screen starting a location (X, Y). (0, 0) is defined as\r
-    the upper left hand side of the screen. (X, Y) can be outside of the \r
-    current screen geometry and the BltBuffer will be cliped when it is \r
-    displayed. X and Y can be negative or positive. If Width or Height is \r
+    the upper left hand side of the screen. (X, Y) can be outside of the\r
+    current screen geometry and the BltBuffer will be cliped when it is\r
+    displayed. X and Y can be negative or positive. If Width or Height is\r
     bigger than the current video screen the image will be clipped.\r
 \r
   Arguments:\r
     This          - Protocol instance pointer.\r
-    X             - X location on graphics screen. \r
+    X             - X location on graphics screen.\r
     Y             - Y location on the graphics screen.\r
     Width         - Width of BltBuffer.\r
     Height        - Hight of BltBuffer\r
     BltOperation  - Operation to perform on BltBuffer and video memory\r
-    BltBuffer     - Buffer containing data to blt into video buffer. This \r
+    BltBuffer     - Buffer containing data to blt into video buffer. This\r
                     buffer has a size of Width*Height*sizeof(EFI_UGA_PIXEL)\r
     SourceX       - If the BltOperation is a EfiCopyBlt this is the source\r
                     of the copy. For other BLT operations this argument is not\r
@@ -216,11 +216,11 @@ UnixUgaBlt (
     SourceX       - If the BltOperation is a EfiCopyBlt this is the source\r
                     of the copy. For other BLT operations this argument is not\r
                     used.\r
-      \r
+\r
   Returns:\r
     EFI_SUCCESS           - The palette is updated with PaletteArray.\r
     EFI_INVALID_PARAMETER - BltOperation is not valid.\r
-    EFI_DEVICE_ERROR      - A hardware error occured writting to the video \r
+    EFI_DEVICE_ERROR      - A hardware error occured writting to the video\r
                              buffer.\r
 \r
 --*/\r
@@ -256,7 +256,7 @@ UnixUgaBlt (
   // We would not want a timer based event (Cursor, ...) to come in while we are\r
   // doing this operation.\r
   //\r
-  OriginalTPL = gBS->RaiseTPL (EFI_TPL_NOTIFY);\r
+  OriginalTPL = gBS->RaiseTPL (TPL_NOTIFY);\r
 \r
   Status = Private->UgaIo->UgaBlt (Private->UgaIo,
                                   BltBuffer,
@@ -348,8 +348,8 @@ Returns:
   // Register to be notified on exit boot services so we can destroy the window.\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EFI_EVENT_SIGNAL_EXIT_BOOT_SERVICES,\r
-                  EFI_TPL_CALLBACK,\r
+                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  TPL_CALLBACK,\r
                   KillNtUgaThread,\r
                   Private,\r
                   &mUgaScreenExitBootServicesEvent\r
@@ -426,8 +426,8 @@ KillNtUgaThread (
 /*++\r
 \r
 Routine Description:\r
-  \r
-  This is the UGA screen's callback notification function for exit-boot-services. \r
+\r
+  This is the UGA screen's callback notification function for exit-boot-services.\r
   All we do here is call UnixUgaDestructor().\r
 \r
 Arguments:\r