EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Data Structures | Defines | Functions | Variables

DuetPkg/BiosVideoThunkDxe/BiosVideo.h File Reference

#include <Uefi.h>
#include <Protocol/DevicePath.h>
#include <Protocol/PciIo.h>
#include <Protocol/DriverBinding.h>
#include <Protocol/ComponentName.h>
#include <Protocol/ComponentName2.h>
#include <Protocol/UgaDraw.h>
#include <Protocol/VgaMiniPort.h>
#include <Protocol/Legacy8259.h>
#include <Protocol/EdidActive.h>
#include <Protocol/EdidDiscovered.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>
#include <IndustryStandard/Pci.h>
#include "VesaBiosExtensions.h"

Go to the source code of this file.

Data Structures

struct  BIOS_VIDEO_COLOR_PLACEMENT
struct  BIOS_VIDEO_MODE_DATA
struct  BIOS_VIDEO_DEV

Defines

#define BIOS_VIDEO_DEV_SIGNATURE   SIGNATURE_32 ('B', 'V', 'M', 'p')
#define BIOS_VIDEO_DEV_FROM_PCI_IO_THIS(a)   CR (a, BIOS_VIDEO_DEV, PciIo, BIOS_VIDEO_DEV_SIGNATURE)
#define BIOS_VIDEO_DEV_FROM_GRAPHICS_OUTPUT_THIS(a)   CR (a, BIOS_VIDEO_DEV, GraphicsOutput, BIOS_VIDEO_DEV_SIGNATURE)
#define BIOS_VIDEO_DEV_FROM_VGA_MINI_PORT_THIS(a)   CR (a, BIOS_VIDEO_DEV, VgaMiniPort, BIOS_VIDEO_DEV_SIGNATURE)
#define GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER   0xffff
#define EFI_SEGMENT(_Adr)   (UINT16) ((UINT16) (((UINTN) (_Adr)) >> 4) & 0xf000)
#define EFI_OFFSET(_Adr)   (UINT16) (((UINT16) ((UINTN) (_Adr))) & 0xffff)
#define VGA_HORIZONTAL_RESOLUTION   640
#define VGA_VERTICAL_RESOLUTION   480
#define VGA_NUMBER_OF_BIT_PLANES   4
#define VGA_PIXELS_PER_BYTE   8
#define VGA_BYTES_PER_SCAN_LINE   (VGA_HORIZONTAL_RESOLUTION / VGA_PIXELS_PER_BYTE)
#define VGA_BYTES_PER_BIT_PLANE   (VGA_VERTICAL_RESOLUTION * VGA_BYTES_PER_SCAN_LINE)
#define VGA_GRAPHICS_CONTROLLER_ADDRESS_REGISTER   0x3ce
#define VGA_GRAPHICS_CONTROLLER_DATA_REGISTER   0x3cf
#define VGA_GRAPHICS_CONTROLLER_SET_RESET_REGISTER   0x00
#define VGA_GRAPHICS_CONTROLLER_ENABLE_SET_RESET_REGISTER   0x01
#define VGA_GRAPHICS_CONTROLLER_COLOR_COMPARE_REGISTER   0x02
#define VGA_GRAPHICS_CONTROLLER_DATA_ROTATE_REGISTER   0x03
#define VGA_GRAPHICS_CONTROLLER_FUNCTION_REPLACE   0x00
#define VGA_GRAPHICS_CONTROLLER_FUNCTION_AND   0x08
#define VGA_GRAPHICS_CONTROLLER_FUNCTION_OR   0x10
#define VGA_GRAPHICS_CONTROLLER_FUNCTION_XOR   0x18
#define VGA_GRAPHICS_CONTROLLER_READ_MAP_SELECT_REGISTER   0x04
#define VGA_GRAPHICS_CONTROLLER_MODE_REGISTER   0x05
#define VGA_GRAPHICS_CONTROLLER_READ_MODE_0   0x00
#define VGA_GRAPHICS_CONTROLLER_READ_MODE_1   0x08
#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_0   0x00
#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_1   0x01
#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_2   0x02
#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_3   0x03
#define VGA_GRAPHICS_CONTROLLER_MISCELLANEOUS_REGISTER   0x06
#define VGA_GRAPHICS_CONTROLLER_COLOR_DONT_CARE_REGISTER   0x07
#define VGA_GRAPHICS_CONTROLLER_BIT_MASK_REGISTER   0x08

Functions

EFI_STATUS EFIAPI BiosVideoDriverBindingSupported (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI BiosVideoDriverBindingStart (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EFIAPI BiosVideoDriverBindingStop (IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
EFI_STATUS EFIAPI BiosVideoCheckForVbe (IN OUT BIOS_VIDEO_DEV *BiosVideoPrivate)
EFI_STATUS EFIAPI BiosVideoCheckForVga (BIOS_VIDEO_DEV *BiosVideoPrivate)
VOID BiosVideoDeviceReleaseResource (BIOS_VIDEO_DEV *BiosVideoChildPrivate)
EFI_STATUS EFIAPI BiosVideoGraphicsOutputQueryMode (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN UINT32 ModeNumber, OUT UINTN *SizeOfInfo, OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info)
EFI_STATUS EFIAPI BiosVideoGraphicsOutputSetMode (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN UINT32 ModeNumber)
EFI_STATUS EFIAPI BiosVideoGraphicsOutputVbeBlt (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN Delta)
EFI_STATUS EFIAPI BiosVideoGraphicsOutputVgaBlt (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer, OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation, IN UINTN SourceX, IN UINTN SourceY, IN UINTN DestinationX, IN UINTN DestinationY, IN UINTN Width, IN UINTN Height, IN UINTN Delta)
EFI_STATUS EFIAPI BiosVideoVgaMiniPortSetMode (IN EFI_VGA_MINI_PORT_PROTOCOL *This, IN UINTN ModeNumber)
BOOLEAN BiosVideoIsVga (IN EFI_PCI_IO_PROTOCOL *PciIo)
VOID InitializeBiosIntCaller (THUNK_CONTEXT *ThunkContext)
VOID InitializeInterruptRedirection (IN EFI_LEGACY_8259_PROTOCOL *Legacy8259)
BOOLEAN EFIAPI LegacyBiosInt86 (IN BIOS_VIDEO_DEV *BiosDev, IN UINT8 BiosInt, IN IA32_REGISTER_SET *Regs)

Variables

EFI_DRIVER_BINDING_PROTOCOL gBiosVideoDriverBinding
EFI_COMPONENT_NAME_PROTOCOL gBiosVideoComponentName
EFI_COMPONENT_NAME2_PROTOCOL gBiosVideoComponentName2

Detailed Description

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.

Definition in file BiosVideo.h.


Define Documentation

#define BIOS_VIDEO_DEV_FROM_GRAPHICS_OUTPUT_THIS (   a)    CR (a, BIOS_VIDEO_DEV, GraphicsOutput, BIOS_VIDEO_DEV_SIGNATURE)

Definition at line 130 of file BiosVideo.h.

#define BIOS_VIDEO_DEV_FROM_PCI_IO_THIS (   a)    CR (a, BIOS_VIDEO_DEV, PciIo, BIOS_VIDEO_DEV_SIGNATURE)

Definition at line 129 of file BiosVideo.h.

#define BIOS_VIDEO_DEV_FROM_VGA_MINI_PORT_THIS (   a)    CR (a, BIOS_VIDEO_DEV, VgaMiniPort, BIOS_VIDEO_DEV_SIGNATURE)

Definition at line 131 of file BiosVideo.h.

#define BIOS_VIDEO_DEV_SIGNATURE   SIGNATURE_32 ('B', 'V', 'M', 'p')

Definition at line 76 of file BiosVideo.h.

#define EFI_OFFSET (   _Adr)    (UINT16) (((UINT16) ((UINTN) (_Adr))) & 0xffff)

Definition at line 136 of file BiosVideo.h.

#define EFI_SEGMENT (   _Adr)    (UINT16) ((UINT16) (((UINTN) (_Adr)) >> 4) & 0xf000)

Definition at line 135 of file BiosVideo.h.

#define GRAPHICS_OUTPUT_INVALIDE_MODE_NUMBER   0xffff

Definition at line 133 of file BiosVideo.h.

#define VGA_BYTES_PER_BIT_PLANE   (VGA_VERTICAL_RESOLUTION * VGA_BYTES_PER_SCAN_LINE)

Definition at line 425 of file BiosVideo.h.

#define VGA_BYTES_PER_SCAN_LINE   (VGA_HORIZONTAL_RESOLUTION / VGA_PIXELS_PER_BYTE)

Definition at line 424 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_ADDRESS_REGISTER   0x3ce

Definition at line 427 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_BIT_MASK_REGISTER   0x08

Definition at line 456 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_COLOR_COMPARE_REGISTER   0x02

Definition at line 434 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_COLOR_DONT_CARE_REGISTER   0x07

Definition at line 454 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_DATA_REGISTER   0x3cf

Definition at line 428 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_DATA_ROTATE_REGISTER   0x03

Definition at line 436 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_ENABLE_SET_RESET_REGISTER   0x01

Definition at line 432 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_FUNCTION_AND   0x08

Definition at line 438 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_FUNCTION_OR   0x10

Definition at line 439 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_FUNCTION_REPLACE   0x00

Definition at line 437 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_FUNCTION_XOR   0x18

Definition at line 440 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_MISCELLANEOUS_REGISTER   0x06

Definition at line 452 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_MODE_REGISTER   0x05

Definition at line 444 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_READ_MAP_SELECT_REGISTER   0x04

Definition at line 442 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_READ_MODE_0   0x00

Definition at line 445 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_READ_MODE_1   0x08

Definition at line 446 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_SET_RESET_REGISTER   0x00

Definition at line 430 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_0   0x00

Definition at line 447 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_1   0x01

Definition at line 448 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_2   0x02

Definition at line 449 of file BiosVideo.h.

#define VGA_GRAPHICS_CONTROLLER_WRITE_MODE_3   0x03

Definition at line 450 of file BiosVideo.h.

#define VGA_HORIZONTAL_RESOLUTION   640

Definition at line 420 of file BiosVideo.h.

#define VGA_NUMBER_OF_BIT_PLANES   4

Definition at line 422 of file BiosVideo.h.

#define VGA_PIXELS_PER_BYTE   8

Definition at line 423 of file BiosVideo.h.

#define VGA_VERTICAL_RESOLUTION   480

Definition at line 421 of file BiosVideo.h.


Function Documentation

EFI_STATUS EFIAPI BiosVideoCheckForVbe ( IN OUT BIOS_VIDEO_DEV BiosVideoPrivate)

Check for VBE device

Parameters:
BiosVideoPrivate- Pointer to BIOS_VIDEO_DEV structure
Return values:
EFI_SUCCESSVBE device found

Check for VBE device.

Parameters:
BiosVideoPrivatePointer to BIOS_VIDEO_DEV structure
Return values:
EFI_SUCCESSVBE device found

Definition at line 1029 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoCheckForVga ( BIOS_VIDEO_DEV BiosVideoPrivate)

Check for VGA device

Parameters:
BiosVideoPrivate- Pointer to BIOS_VIDEO_DEV structure
Return values:
EFI_SUCCESSStandard VGA device found
VOID BiosVideoDeviceReleaseResource ( BIOS_VIDEO_DEV BiosVideoPrivate)

Collect the resource from destroyed bios video device.

Parameters:
BiosVideoPrivateVideo child device private data structure

Collect the resource from destroyed bios video device.

Parameters:
BiosVideoPrivateVideo child device private data structure

Release resource for biso video instance.

Parameters:
BiosVideoPrivateVideo child device private data structure

Release resource for biso video instance.

Parameters:
BiosVideoPrivateVideo child device private data structure

Definition at line 717 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoDriverBindingStart ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Install Graphics Output Protocol onto VGA device handles

Parameters:
ThisPointer to driver binding protocol
ControllerController handle to connect
RemainingDevicePathA pointer to the remaining portion of a device path
Returns:
EFI_STATUS

Install Graphics Output Protocol onto VGA device handles.

Parameters:
ThisPointer to driver binding protocol
ControllerController handle to connect
RemainingDevicePathA pointer to the remaining portion of a device path
Returns:
EFI_STATUS

Definition at line 255 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoDriverBindingStop ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN UINTN  NumberOfChildren,
IN EFI_HANDLE ChildHandleBuffer 
)

Stop this driver on Controller

Parameters:
ThisProtocol instance pointer.
ControllerHandle of device to stop driver on
NumberOfChildrenNumber of Handles in ChildHandleBuffer. If number of children is zero stop the entire bus driver.
ChildHandleBufferList of Child Handles to Stop.
Return values:
EFI_SUCCESSThis driver is removed Controller.
otherThis driver was not removed from this device.

Stop.

Parameters:
ThisPointer to driver binding protocol
ControllerController handle to connect
NumberOfChildrenNumber of children handle created by this driver
ChildHandleBufferBuffer containing child handle created
Return values:
EFI_SUCCESSDriver disconnected successfully from controller
EFI_UNSUPPORTEDCannot find BIOS_VIDEO_DEV structure

Definition at line 352 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoDriverBindingSupported ( IN EFI_DRIVER_BINDING_PROTOCOL This,
IN EFI_HANDLE  Controller,
IN EFI_DEVICE_PATH_PROTOCOL RemainingDevicePath 
)

Test to see if Bios Video could be supported on the Controller.

Parameters:
ThisPointer to driver binding protocol
ControllerController handle to connect
RemainingDevicePathA pointer to the remaining portion of a device path
Return values:
EFI_SUCCESSThis driver supports this device.
otherThis driver does not support this device.

Supported.

Parameters:
ThisPointer to driver binding protocol
ControllerController handle to connect
RemainingDevicePathA pointer to the remaining portion of a device path
Return values:
EFI_STATUSEFI_SUCCESS:This controller can be managed by this driver, Otherwise, this controller cannot be managed by this driver

Definition at line 196 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoGraphicsOutputQueryMode ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL This,
IN UINT32  ModeNumber,
OUT UINTN SizeOfInfo,
OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **  Info 
)

Graphics Output protocol interface to get video mode

Parameters:
This- Protocol instance pointer.
ModeNumber- The mode number to return information on.
SizeOfInfo- A pointer to the size, in bytes, of the Info buffer.
Info- Caller allocated buffer that returns information about ModeNumber.
Returns:
EFI_SUCCESS - Mode information returned. EFI_DEVICE_ERROR - A hardware error occurred trying to retrieve the video mode. EFI_NOT_STARTED - Video display is not initialized. Call SetMode () EFI_INVALID_PARAMETER - One of the input args was NULL.

Graphics Output protocol interface to get video mode.

Parameters:
ThisProtocol instance pointer.
ModeNumberThe mode number to return information on.
SizeOfInfoA pointer to the size, in bytes, of the Info buffer.
InfoCaller allocated buffer that returns information about ModeNumber.
Return values:
EFI_SUCCESSMode information returned.
EFI_DEVICE_ERRORA hardware error occurred trying to retrieve the video mode.
EFI_NOT_STARTEDVideo display is not initialized. Call SetMode ()
EFI_INVALID_PARAMETEROne of the input args was NULL.

Definition at line 1599 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoGraphicsOutputSetMode ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL This,
IN UINT32  ModeNumber 
)

Graphics Output protocol interface to set video mode

Parameters:
This- Protocol instance pointer.
ModeNumber- The mode number to be set.
Returns:
EFI_SUCCESS - Graphics mode was changed. EFI_DEVICE_ERROR - The device had an error and could not complete the request. EFI_UNSUPPORTED - ModeNumber is not supported by this device.

Graphics Output protocol interface to set video mode.

Parameters:
ThisProtocol instance pointer.
ModeNumberThe mode number to be set.
Return values:
EFI_SUCCESSGraphics mode was changed.
EFI_DEVICE_ERRORThe device had an error and could not complete the request.
EFI_UNSUPPORTEDModeNumber is not supported by this device.

Definition at line 1658 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoGraphicsOutputVbeBlt ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL This,
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL BltBuffer,
OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION  BltOperation,
IN UINTN  SourceX,
IN UINTN  SourceY,
IN UINTN  DestinationX,
IN UINTN  DestinationY,
IN UINTN  Width,
IN UINTN  Height,
IN UINTN  Delta 
)

Graphics Output protocol instance to block transfer for VBE device

Parameters:
This- Pointer to Graphics Output protocol instance
BltBuffer- The data to transfer to screen
BltOperation- The operation to perform
SourceX- The X coordinate of the source for BltOperation
SourceY- The Y coordinate of the source for BltOperation
DestinationX- The X coordinate of the destination for BltOperation
DestinationY- The Y coordinate of the destination for BltOperation
Width- The width of a rectangle in the blt rectangle in pixels
Height- The height of a rectangle in the blt rectangle in pixels
Delta- Not used for EfiBltVideoFill and EfiBltVideoToVideo operation. If a Delta of 0 is used, the entire BltBuffer will be operated on. If a subrectangle of the BltBuffer is used, then Delta represents the number of bytes in a row of the BltBuffer.
Returns:
EFI_INVALID_PARAMETER - Invalid parameter passed in EFI_SUCCESS - Blt operation success

Graphics Output protocol instance to block transfer for VBE device.

Parameters:
ThisPointer to Graphics Output protocol instance
BltBufferThe data to transfer to screen
BltOperationThe operation to perform
SourceXThe X coordinate of the source for BltOperation
SourceYThe Y coordinate of the source for BltOperation
DestinationXThe X coordinate of the destination for BltOperation
DestinationYThe Y coordinate of the destination for BltOperation
WidthThe width of a rectangle in the blt rectangle in pixels
HeightThe height of a rectangle in the blt rectangle in pixels
DeltaNot used for EfiBltVideoFill and EfiBltVideoToVideo operation. If a Delta of 0 is used, the entire BltBuffer will be operated on. If a subrectangle of the BltBuffer is used, then Delta represents the number of bytes in a row of the BltBuffer.
Return values:
EFI_INVALID_PARAMETERInvalid parameter passed in
EFI_SUCCESSBlt operation success

Definition at line 1927 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoGraphicsOutputVgaBlt ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL This,
IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL BltBuffer,
OPTIONAL IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION  BltOperation,
IN UINTN  SourceX,
IN UINTN  SourceY,
IN UINTN  DestinationX,
IN UINTN  DestinationY,
IN UINTN  Width,
IN UINTN  Height,
IN UINTN  Delta 
)

Grahpics Output protocol instance to block transfer for VGA device

Parameters:
ThisPointer to Grahpics Output protocol instance
BltBufferThe data to transfer to screen
BltOperationThe operation to perform
SourceXThe X coordinate of the source for BltOperation
SourceYThe Y coordinate of the source for BltOperation
DestinationXThe X coordinate of the destination for BltOperation
DestinationYThe Y coordinate of the destination for BltOperation
WidthThe width of a rectangle in the blt rectangle in pixels
HeightThe height of a rectangle in the blt rectangle in pixels
DeltaNot used for EfiBltVideoFill and EfiBltVideoToVideo operation. If a Delta of 0 is used, the entire BltBuffer will be operated on. If a subrectangle of the BltBuffer is used, then Delta represents the number of bytes in a row of the BltBuffer.
Return values:
EFI_INVALID_PARAMETERInvalid parameter passed in
EFI_SUCCESSBlt operation success

Grahpics Output protocol instance to block transfer for VGA device.

Parameters:
ThisPointer to Grahpics Output protocol instance
BltBufferThe data to transfer to screen
BltOperationThe operation to perform
SourceXThe X coordinate of the source for BltOperation
SourceYThe Y coordinate of the source for BltOperation
DestinationXThe X coordinate of the destination for BltOperation
DestinationYThe Y coordinate of the destination for BltOperation
WidthThe width of a rectangle in the blt rectangle in pixels
HeightThe height of a rectangle in the blt rectangle in pixels
DeltaNot used for EfiBltVideoFill and EfiBltVideoToVideo operation. If a Delta of 0 is used, the entire BltBuffer will be operated on. If a subrectangle of the BltBuffer is used, then Delta represents the number of bytes in a row of the BltBuffer.
Return values:
EFI_INVALID_PARAMETERInvalid parameter passed in
EFI_SUCCESSBlt operation success

Definition at line 2351 of file BiosVideo.c.

BOOLEAN BiosVideoIsVga ( IN EFI_PCI_IO_PROTOCOL PciIo)

Judge whether this device is VGA device.

Parameters:
PciIoParent PciIo protocol instance pointer
Return values:
TRUEIs vga device
FALSEIs no vga device

Definition at line 972 of file BiosVideo.c.

EFI_STATUS EFIAPI BiosVideoVgaMiniPortSetMode ( IN EFI_VGA_MINI_PORT_PROTOCOL This,
IN UINTN  ModeNumber 
)

VgaMiniPort protocol interface to set mode

Parameters:
ThisPointer to VgaMiniPort protocol instance
ModeNumberThe index of the mode
Return values:
EFI_UNSUPPORTEDThe requested mode is not supported
EFI_SUCCESSThe requested mode is set successfully

VgaMiniPort protocol interface to set mode.

Parameters:
ThisPointer to VgaMiniPort protocol instance
ModeNumberThe index of the mode
Return values:
EFI_UNSUPPORTEDThe requested mode is not supported
EFI_SUCCESSThe requested mode is set successfully

Definition at line 2762 of file BiosVideo.c.

VOID InitializeBiosIntCaller ( THUNK_CONTEXT ThunkContext)

Initialize legacy environment for BIOS INI caller.

Parameters:
ThunkContextthe instance pointer of THUNK_CONTEXT

Definition at line 25 of file LegacyBiosThunk.c.

VOID InitializeInterruptRedirection ( IN EFI_LEGACY_8259_PROTOCOL Legacy8259)

Initialize interrupt redirection code and entries, because IDT Vectors 0x68-0x6f must be redirected to IDT Vectors 0x08-0x0f. Or the interrupt will lost when we do thunk. NOTE: We do not reset 8259 vector base, because it will cause pending interrupt lost.

Parameters:
Legacy8259Instance pointer for EFI_LEGACY_8259_PROTOCOL.

Definition at line 65 of file LegacyBiosThunk.c.

BOOLEAN EFIAPI LegacyBiosInt86 ( IN BIOS_VIDEO_DEV BiosDev,
IN UINT8  BiosInt,
IN IA32_REGISTER_SET Regs 
)

Thunk to 16-bit real mode and execute a software interrupt with a vector of BiosInt. Regs will contain the 16-bit register context on entry and exit.

Parameters:
ThisProtocol instance pointer.
BiosIntProcessor interrupt vector to invoke
RegRegister contexted passed into (and returned) from thunk to 16-bit mode
Return values:
TRUEThunk completed, and there were no BIOS errors in the target code. See Regs for status.
FALSEThere was a BIOS erro in the target code.

Definition at line 136 of file LegacyBiosThunk.c.


Variable Documentation

Definition at line 44 of file ComponentName.c.

Definition at line 50 of file ComponentName.c.

Definition at line 21 of file BiosVideo.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines