TianoCore EDK2 master
Loading...
Searching...
No Matches
QemuRamfb.c File Reference

Go to the source code of this file.

Data Structures

struct  RAMFB_CONFIG
 

Macros

#define RAMFB_FORMAT   0x34325258 /* DRM_FORMAT_XRGB8888 */
 
#define RAMFB_BPP   4
 

Typedefs

typedef struct RAMFB_CONFIG RAMFB_CONFIG
 

Functions

STATIC EFI_STATUS EFIAPI QemuRamfbGraphicsOutputQueryMode (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN UINT32 ModeNumber, OUT UINTN *SizeOfInfo, OUT EFI_GRAPHICS_OUTPUT_MODE_INFORMATION **Info)
 
STATIC EFI_STATUS EFIAPI QemuRamfbGraphicsOutputSetMode (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *This, IN UINT32 ModeNumber)
 
STATIC EFI_STATUS EFIAPI QemuRamfbGraphicsOutputBlt (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 InitializeQemuRamfb (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC EFI_HANDLE mRamfbHandle
 
STATIC EFI_HANDLE mGopHandle
 
STATIC FRAME_BUFFER_CONFIGUREmQemuRamfbFrameBufferBltConfigure
 
STATIC UINTN mQemuRamfbFrameBufferBltConfigureSize
 
STATIC FIRMWARE_CONFIG_ITEM mRamfbFwCfgItem
 
STATIC EFI_GRAPHICS_OUTPUT_MODE_INFORMATION mQemuRamfbModeInfo []
 
STATIC EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE mQemuRamfbMode
 
STATIC EFI_GRAPHICS_OUTPUT_PROTOCOL mQemuRamfbGraphicsOutput
 

Detailed Description

This driver is a implementation of the Graphics Output Protocol for the QEMU ramfb device.

Copyright (c) 2018, Red Hat Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file QemuRamfb.c.

Macro Definition Documentation

◆ RAMFB_BPP

#define RAMFB_BPP   4

Definition at line 25 of file QemuRamfb.c.

◆ RAMFB_FORMAT

#define RAMFB_FORMAT   0x34325258 /* DRM_FORMAT_XRGB8888 */

Definition at line 24 of file QemuRamfb.c.

Function Documentation

◆ InitializeQemuRamfb()

EFI_STATUS EFIAPI InitializeQemuRamfb ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Definition at line 239 of file QemuRamfb.c.

◆ QemuRamfbGraphicsOutputBlt()

STATIC EFI_STATUS EFIAPI QemuRamfbGraphicsOutputBlt ( 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 
)

Definition at line 203 of file QemuRamfb.c.

◆ QemuRamfbGraphicsOutputQueryMode()

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

Definition at line 70 of file QemuRamfb.c.

◆ QemuRamfbGraphicsOutputSetMode()

STATIC EFI_STATUS EFIAPI QemuRamfbGraphicsOutputSetMode ( IN EFI_GRAPHICS_OUTPUT_PROTOCOL This,
IN UINT32  ModeNumber 
)

Definition at line 103 of file QemuRamfb.c.

Variable Documentation

◆ mGopHandle

STATIC EFI_HANDLE mGopHandle

Definition at line 39 of file QemuRamfb.c.

◆ mQemuRamfbFrameBufferBltConfigure

STATIC FRAME_BUFFER_CONFIGURE* mQemuRamfbFrameBufferBltConfigure

Definition at line 40 of file QemuRamfb.c.

◆ mQemuRamfbFrameBufferBltConfigureSize

STATIC UINTN mQemuRamfbFrameBufferBltConfigureSize

Definition at line 41 of file QemuRamfb.c.

◆ mQemuRamfbGraphicsOutput

STATIC EFI_GRAPHICS_OUTPUT_PROTOCOL mQemuRamfbGraphicsOutput
Initial value:
= {
QemuRamfbGraphicsOutputQueryMode,
QemuRamfbGraphicsOutputSetMode,
QemuRamfbGraphicsOutputBlt,
&mQemuRamfbMode,
}

Definition at line 230 of file QemuRamfb.c.

◆ mQemuRamfbMode

Initial value:
= {
ARRAY_SIZE (mQemuRamfbModeInfo),
0,
mQemuRamfbModeInfo,
}
#define ARRAY_SIZE(Array)
Definition: Base.h:1393

Definition at line 60 of file QemuRamfb.c.

◆ mQemuRamfbModeInfo

Initial value:
= {
{
0,
640,
480,
},{
0,
800,
600,
},{
0,
1024,
768,
}
}

Definition at line 44 of file QemuRamfb.c.

◆ mRamfbFwCfgItem

STATIC FIRMWARE_CONFIG_ITEM mRamfbFwCfgItem

Definition at line 42 of file QemuRamfb.c.

◆ mRamfbHandle

STATIC EFI_HANDLE mRamfbHandle

Definition at line 38 of file QemuRamfb.c.