X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkModulePkg%2FUniversal%2FConsole%2FVgaClassDxe%2FVgaClass.c;fp=IntelFrameworkModulePkg%2FUniversal%2FConsole%2FVgaClassDxe%2FVgaClass.c;h=a9da74c7920eeb8161abbbfc682de0b711108a9c;hp=2d672797fa942535e37ced9d6bdd07d5af246b98;hb=0a6f48249a601f88af124ae1ff6814b195b699c3;hpb=e38f26a2f7f62b69fec2d84e83bcc4b45ddefdc1
diff --git a/IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.c b/IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.c
index 2d672797fa..a9da74c792 100644
--- a/IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.c
+++ b/IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClass.c
@@ -1,14 +1,14 @@
/** @file
VGA Class Driver that managers VGA devices and produces Simple Text Output Protocol.
-Copyright (c) 2006 - 2009, 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 - 2018, 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.
**/
@@ -310,7 +310,7 @@ UNICODE_TO_CHAR UnicodeToPcAnsiOrAscii[] = {
@param ImageHandle The firmware allocated handle for the EFI image.
@param SystemTable A pointer to the EFI System Table.
-
+
@retval EFI_SUCCESS The entry point is executed successfully.
**/
@@ -341,7 +341,7 @@ InitializeVgaClass(
/**
Internal worker function to program CRTC register via PCI I/O Protocol.
-
+
@param VgaClassDev device instance object
@param Address Address of register to write
@param Data Data to write to register.
@@ -375,12 +375,12 @@ WriteCrtc (
/**
Internal worker function to set cursor's position to VgaClass device
-
+
@param VgaClassDev Private data structure for device instance.
@param Column Colomn of position to set cursor to.
@param Row Row of position to set cursor to.
@param MaxColumn Max value of column.
-
+
**/
VOID
SetVideoCursorPosition (
@@ -461,7 +461,7 @@ LibIsValidTextGraphics (
/**
Internal worker function to check whether input value is an ASCII char.
-
+
@param Char Character to check.
@retval TRUE Input value is an ASCII char.
@@ -482,7 +482,7 @@ IsValidAscii (
/**
Internal worker function to check whether input value is a unicode control char.
-
+
@param Char Character to check.
@retval TRUE Input value is a unicode control char.
@@ -712,7 +712,7 @@ ErrorExit:
/**
Starts the device controller.
-
+
This function implments EFI_DRIVER_BINDING_PROTOCOL.Stop().
It stops this driver on Controller. Support stopping any child handles
created by this driver.
@@ -798,7 +798,7 @@ VgaClassDriverBindingStop (
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset().
It resets the text output device hardware. The cursor position is set to (0, 0),
and the screen is cleared to the default background color for the output device.
-
+
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
@param ExtendedVerification Indicates that the driver may perform a more exhaustive
verification operation of the device during reset.
@@ -837,7 +837,7 @@ VgaClassReset (
/**
Writes a Unicode string to the output device.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.OutputString().
It writes a Unicode string to the output device. This is the most basic output mechanism
on an output device.
@@ -977,7 +977,7 @@ VgaClassOutputString (
/**
Verifies that all characters in a Unicode string can be output to the target device.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.TestString().
It verifies that all characters in a Unicode string can be output to the target device.
@@ -1009,13 +1009,13 @@ VgaClassTestString (
/**
Clears the output device(s) display to the currently selected background color.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.ClearScreen().
The ClearScreen() function clears the output device(s) display to the currently
selected background color. The cursor position is set to (0, 0).
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
-
+
@retval EFI_SUCESS The operation completed successfully.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
@@ -1063,7 +1063,7 @@ VgaClassClearScreen (
/**
Sets the background and foreground colors for theOutputString() and ClearScreen() functions.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetAttribute().
It sets the background and foreground colors for the OutputString() and ClearScreen() functions.
The color mask can be set even when the device is in an invalid text mode.
@@ -1074,7 +1074,7 @@ VgaClassClearScreen (
@param Attribute The attribute to set.
Bits 0..3 are the foreground color,
and bits 4..6 are the background color.
-
+
@retval EFI_SUCCESS The requested attributes were set.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
@@ -1096,15 +1096,15 @@ VgaClassSetAttribute (
/**
Sets the current coordinates of the cursor position.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.SetCursorPosition().
It sets the current coordinates of the cursor position.
The upper left corner of the screen is defined as coordinate (0, 0).
-
+
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
@param Column Column of position to set the cursor to.
@param Row Row of position to set the cursor to.
-
+
@retval EFI_SUCCESS The operation completed successfully.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
@retval EFI_UNSUPPORTED The output device is not in a valid text mode, or the cursor
@@ -1150,14 +1150,14 @@ VgaClassSetCursorPosition (
/**
Makes the cursor visible or invisible.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.EnableCursor().
It makes the cursor visible or invisible.
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
@param Visible If TRUE, the cursor is set to be visible.
If FALSE, the cursor is set to be invisible.
-
+
@retval EFI_SUCESS The operation completed successfully.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request or the
device does not support changing the cursor mode.
@@ -1208,7 +1208,7 @@ VgaClassEnableCursor (
@param ModeNumber The mode number to return information on.
@param Columns Columen in current mode number
@param Rows Row in current mode number.
-
+
@retval EFI_SUCCESS The requested mode information was returned.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
@retval EFI_UNSUPPORTED The mode number was not valid.
@@ -1251,7 +1251,7 @@ VgaClassQueryMode (
/**
Sets the output device(s) to a specified mode.
-
+
This function implements EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.QueryMode().
It sets the output device(s) to the requested mode.
On success the device is in the geometry for the requested mode,
@@ -1259,7 +1259,7 @@ VgaClassQueryMode (
@param This Pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL instance.
@param ModeNumber The text mode to set.
-
+
@retval EFI_SUCCESS The requested text mode was set.
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
@retval EFI_UNSUPPORTED The mode number was not valid.