]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BiosVideoThunkDxe/BiosVideo.c
Omap35xxPkg: Removing ipf which is no longer supported from edk2.
[mirror_edk2.git] / DuetPkg / BiosVideoThunkDxe / BiosVideo.c
index 07a20aeb000614fa5fb22ef6c1143eb30c031015..dc367e9983b3aac5aa331ea83d16b797986c0d3e 100644 (file)
@@ -2,8 +2,8 @@
 \r
   BiosVideo driver produce EFI_GRAPHIC_OUTPUT_PROTOCOL via LegacyBios Video rom.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+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
@@ -94,7 +94,7 @@ VESA_BIOS_EXTENSIONS_EDID_TIMING mEstablishedEdidTiming[] = {
 };\r
 \r
 /**\r
-  Install child hanlde for a detect BiosVideo device and install related protocol\r
+  Install child handle for a detect BiosVideo device and install related protocol\r
   into this handle, such as EFI_GRAPHIC_OUTPUT_PROTOCOL.\r
 \r
   @param This                Instance pointer of EFI_DRIVER_BINDING_PROTOCOL\r
@@ -391,7 +391,7 @@ BiosVideoDriverBindingStop (
 }\r
 \r
 /**\r
-  Install child hanlde for a detect BiosVideo device and install related protocol\r
+  Install child handle for a detect BiosVideo device and install related protocol\r
   into this handle, such as EFI_GRAPHIC_OUTPUT_PROTOCOL.\r
 \r
   @param This                Instance pointer of EFI_DRIVER_BINDING_PROTOCOL\r
@@ -1090,18 +1090,18 @@ BiosVideoCheckForVbe (
   //\r
   // INT 10 - VESA SuperVGA BIOS (VBE) - GET SuperVGA INFORMATION\r
   //\r
-  //   AX = 4F00h\r
-  //   ES:DI -> buffer for SuperVGA information (see #00077)\r
+  //  AX = 4F00h\r
+  //  ES:DI -> buffer for SuperVGA information (see #00077)\r
   // Return: AL = 4Fh if function supported\r
-  //   AH = status\r
-  //       00h successful\r
-  //           ES:DI buffer filled\r
-  //       01h failed\r
-  //       ---VBE v2.0---\r
-  //       02h function not supported by current hardware configuration\r
-  //       03h function invalid in current video mode\r
-  // Desc:     determine whether VESA BIOS extensions are present and the capabilities\r
-  //     supported by the display adapter\r
+  //  AH = status\r
+  //      00h successful\r
+  //    ES:DI buffer filled\r
+  //      01h failed\r
+  //      ---VBE v2.0---\r
+  //      02h function not supported by current hardware configuration\r
+  //      03h function invalid in current video mode\r
+  // Desc:  determine whether VESA BIOS extensions are present and the capabilities\r
+  //    supported by the display adapter\r
   //\r
   gBS->SetMem (&Regs, sizeof (Regs), 0);\r
   Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_CONTROLLER_INFORMATION;\r
@@ -1232,15 +1232,15 @@ BiosVideoCheckForVbe (
     //\r
     // INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION\r
     //\r
-    //  AX = 4F01h\r
-    //  CX = SuperVGA video mode (see #04082 for bitfields)\r
-    //  ES:DI -> 256-byte buffer for mode information (see #00079)\r
+    //   AX = 4F01h\r
+    //   CX = SuperVGA video mode (see #04082 for bitfields)\r
+    //   ES:DI -> 256-byte buffer for mode information (see #00079)\r
     // Return: AL = 4Fh if function supported\r
-    //  AH = status\r
-    //     00h successful\r
-    //         ES:DI buffer filled\r
-    //     01h failed\r
-    // Desc:   determine the attributes of the specified video mode\r
+    //   AH = status\r
+    //      00h successful\r
+    //    ES:DI buffer filled\r
+    //      01h failed\r
+    // Desc:  determine the attributes of the specified video mode\r
     //\r
     gBS->SetMem (&Regs, sizeof (Regs), 0);\r
     Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_MODE_INFORMATION;\r
@@ -1675,10 +1675,6 @@ BiosVideoGraphicsOutputSetMode (
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  if (ModeNumber == This->Mode->Mode) {\r
-    return EFI_SUCCESS;\r
-  }\r
-\r
   ModeData = &BiosVideoPrivate->ModeData[ModeNumber];\r
 \r
   if (BiosVideoPrivate->LineBuffer) {\r