]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BiosVideoThunkDxe/BiosVideo.h
MdePkg/ProcessorBind: add defines for page allocation granularity
[mirror_edk2.git] / DuetPkg / BiosVideoThunkDxe / BiosVideo.h
index 08053478f850215b4c95deb32e41fabd58f03b7f..37e303e17cae593cbd37d5f0cf14229ac4a0b7b6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2007, 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
@@ -30,7 +30,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Protocol/EdidActive.h>\r
 #include <Protocol/EdidDiscovered.h>\r
 #include <Protocol/DevicePath.h>\r
-#include <Protocol/LegacyBios.h>\r
 \r
 #include <Library/UefiLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -38,7 +37,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DevicePathLib.h>\r
 \r
-#include <IndustryStandard/Pci22.h>\r
+#include <IndustryStandard/Pci.h>\r
 \r
 #include "VesaBiosExtensions.h"\r
 \r
@@ -131,7 +130,10 @@ typedef struct {
 #define BIOS_VIDEO_DEV_FROM_GRAPHICS_OUTPUT_THIS(a)      CR (a, BIOS_VIDEO_DEV, GraphicsOutput, BIOS_VIDEO_DEV_SIGNATURE)\r
 #define BIOS_VIDEO_DEV_FROM_VGA_MINI_PORT_THIS(a) CR (a, BIOS_VIDEO_DEV, VgaMiniPort, BIOS_VIDEO_DEV_SIGNATURE)\r
 \r
-#define GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER   0xffff\r
+#define GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER  0xffff\r
+\r
+#define EFI_SEGMENT(_Adr)     (UINT16) ((UINT16) (((UINTN) (_Adr)) >> 4) & 0xf000)\r
+#define EFI_OFFSET(_Adr)      (UINT16) (((UINT16) ((UINTN) (_Adr))) & 0xffff)\r
 \r
 //\r
 // Global Variables\r
@@ -217,8 +219,9 @@ BiosVideoDriverBindingStop (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 BiosVideoCheckForVbe (\r
-  BIOS_VIDEO_DEV  *BiosVideoPrivate\r
+  IN OUT BIOS_VIDEO_DEV  *BiosVideoPrivate\r
   )\r
 ;\r
 \r
@@ -231,6 +234,7 @@ BiosVideoCheckForVbe (
 **/\r
 \r
 EFI_STATUS\r
+EFIAPI\r
 BiosVideoCheckForVga (\r
   BIOS_VIDEO_DEV  *BiosVideoPrivate\r
   )\r
@@ -494,7 +498,7 @@ EFIAPI
 LegacyBiosInt86 (\r
   IN  BIOS_VIDEO_DEV                 *BiosDev,\r
   IN  UINT8                           BiosInt,\r
-  IN  EFI_IA32_REGISTER_SET           *Regs\r
+  IN  IA32_REGISTER_SET           *Regs\r
   );    \r
   \r
 #endif\r