/*++\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
\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
\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
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
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
// 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,
// 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
/*++\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