TianoCore EDK2 master
Loading...
Searching...
No Matches
Initialize.c File Reference
#include "Qemu.h"

Go to the source code of this file.

Macros

#define QEMU_VIDEO_CIRRUS_MODE_COUNT    (ARRAY_SIZE (QemuVideoCirrusModes))
 
#define QEMU_VIDEO_BOCHS_MODE_COUNT    (ARRAY_SIZE (QemuVideoBochsModes))
 

Functions

EFI_STATUS QemuVideoCirrusModeSetup (QEMU_VIDEO_PRIVATE_DATA *Private)
 
STATIC VOID QemuVideoBochsAddMode (QEMU_VIDEO_PRIVATE_DATA *Private, UINT32 AvailableFbSize, UINT32 Width, UINT32 Height)
 
STATIC VOID QemuVideoBochsEdid (QEMU_VIDEO_PRIVATE_DATA *Private, UINT32 *XRes, UINT32 *YRes)
 
EFI_STATUS QemuVideoBochsModeSetup (QEMU_VIDEO_PRIVATE_DATA *Private, BOOLEAN IsQxl)
 

Variables

UINT8 AttributeController [21]
 
UINT8 GraphicsController [9]
 
UINT8 Crtc_640_480_256_60 [28]
 
UINT8 Crtc_640_480_32bpp_60 [28]
 
UINT16 Seq_640_480_256_60 [15]
 
UINT16 Seq_640_480_32bpp_60 [15]
 
UINT8 Crtc_800_600_256_60 [28]
 
UINT8 Crtc_800_600_32bpp_60 [28]
 
UINT16 Seq_800_600_256_60 [15]
 
UINT16 Seq_800_600_32bpp_60 [15]
 
UINT8 Crtc_960_720_32bpp_60 [28]
 
UINT16 Seq_960_720_32bpp_60 [15]
 
UINT8 Crtc_1024_768_256_60 [28]
 
UINT16 Seq_1024_768_256_60 [15]
 
UINT8 Crtc_1024_768_24bpp_60 [28]
 
UINT16 Seq_1024_768_24bpp_60 [15]
 
UINT8 Crtc_1024_768_32bpp_60 [28]
 
UINT16 Seq_1024_768_32bpp_60 [15]
 
QEMU_VIDEO_CIRRUS_MODES QemuVideoCirrusModes []
 
STATIC QEMU_VIDEO_BOCHS_MODES QemuVideoBochsModes []
 

Detailed Description

Graphics Output Protocol functions for the QEMU video controller.

Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.

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

Definition in file Initialize.c.

Macro Definition Documentation

◆ QEMU_VIDEO_BOCHS_MODE_COUNT

#define QEMU_VIDEO_BOCHS_MODE_COUNT    (ARRAY_SIZE (QemuVideoBochsModes))

Definition at line 245 of file Initialize.c.

◆ QEMU_VIDEO_CIRRUS_MODE_COUNT

#define QEMU_VIDEO_CIRRUS_MODE_COUNT    (ARRAY_SIZE (QemuVideoCirrusModes))

Definition at line 150 of file Initialize.c.

Function Documentation

◆ QemuVideoBochsAddMode()

STATIC VOID QemuVideoBochsAddMode ( QEMU_VIDEO_PRIVATE_DATA Private,
UINT32  AvailableFbSize,
UINT32  Width,
UINT32  Height 
)

Definition at line 250 of file Initialize.c.

◆ QemuVideoBochsEdid()

STATIC VOID QemuVideoBochsEdid ( QEMU_VIDEO_PRIVATE_DATA Private,
UINT32 *  XRes,
UINT32 *  YRes 
)

Definition at line 289 of file Initialize.c.

◆ QemuVideoBochsModeSetup()

EFI_STATUS QemuVideoBochsModeSetup ( QEMU_VIDEO_PRIVATE_DATA Private,
BOOLEAN  IsQxl 
)

Definition at line 380 of file Initialize.c.

◆ QemuVideoCirrusModeSetup()

EFI_STATUS QemuVideoCirrusModeSetup ( QEMU_VIDEO_PRIVATE_DATA Private)

Construct the valid video modes for QemuVideo.

Definition at line 158 of file Initialize.c.

Variable Documentation

◆ AttributeController

UINT8 AttributeController[21]
Initial value:
= {
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
0x41, 0x00, 0x0F, 0x00, 0x00
}

Generic Attribute Controller Register Settings

Definition at line 15 of file Initialize.c.

◆ Crtc_1024_768_24bpp_60

UINT8 Crtc_1024_768_24bpp_60[28]
Initial value:
= {
0xA3, 0x7F, 0x80, 0x86, 0x85, 0x96, 0x24, 0xFD,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x88, 0xFF, 0x80, 0x00, 0x00, 0x24, 0xE3,
0xFF, 0x4A, 0x00, 0x32
}

Definition at line 112 of file Initialize.c.

◆ Crtc_1024_768_256_60

UINT8 Crtc_1024_768_256_60[28]
Initial value:
= {
0xA3, 0x7F, 0x80, 0x86, 0x85, 0x96, 0x24, 0xFD,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x88, 0xFF, 0x80, 0x00, 0x00, 0x24, 0xE3,
0xFF, 0x4A, 0x00, 0x22
}

Definition at line 97 of file Initialize.c.

◆ Crtc_1024_768_32bpp_60

UINT8 Crtc_1024_768_32bpp_60[28]
Initial value:
= {
0xA3, 0x7F, 0x80, 0x86, 0x85, 0x96, 0x24, 0xFD,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x88, 0xFF, 0xe0, 0x00, 0x00, 0x64, 0xE3,
0xFF, 0x4A, 0x00, 0x32
}

Definition at line 124 of file Initialize.c.

◆ Crtc_640_480_256_60

UINT8 Crtc_640_480_256_60[28]
Initial value:
= {
0x5d, 0x4f, 0x50, 0x82, 0x53, 0x9f, 0x00, 0x3e,
0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xe1, 0x83, 0xdf, 0x50, 0x00, 0xe7, 0x04, 0xe3,
0xff, 0x00, 0x00, 0x22
}

Definition at line 31 of file Initialize.c.

◆ Crtc_640_480_32bpp_60

UINT8 Crtc_640_480_32bpp_60[28]
Initial value:
= {
0x5d, 0x4f, 0x50, 0x82, 0x53, 0x9f, 0x00, 0x3e,
0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xe1, 0x83, 0xdf, 0x40, 0x00, 0xe7, 0x04, 0xe3,
0xff, 0x00, 0x00, 0x32
}

Definition at line 38 of file Initialize.c.

◆ Crtc_800_600_256_60

UINT8 Crtc_800_600_256_60[28]
Initial value:
= {
0x7F, 0x63, 0x64, 0x80, 0x6B, 0x1B, 0x72, 0xF0,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x58, 0x8C, 0x57, 0x64, 0x00, 0x5F, 0x91, 0xE3,
0xFF, 0x00, 0x00, 0x22
}

Definition at line 58 of file Initialize.c.

◆ Crtc_800_600_32bpp_60

UINT8 Crtc_800_600_32bpp_60[28]
Initial value:
= {
0x7F, 0x63, 0x64, 0x80, 0x6B, 0x1B, 0x72, 0xF0,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x58, 0x8C, 0x57, 0x90, 0x00, 0x5F, 0x91, 0xE3,
0xFF, 0x00, 0x00, 0x32
}

Definition at line 65 of file Initialize.c.

◆ Crtc_960_720_32bpp_60

UINT8 Crtc_960_720_32bpp_60[28]
Initial value:
= {
0xA3, 0x77, 0x80, 0x86, 0x85, 0x96, 0x24, 0xFD,
0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x02, 0x88, 0xCF, 0xe0, 0x00, 0x00, 0x64, 0xE3,
0xFF, 0x4A, 0x00, 0x32
}

Definition at line 82 of file Initialize.c.

◆ GraphicsController

UINT8 GraphicsController[9]
Initial value:
= {
0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0F, 0xFF
}

Generic Graphics Controller Register Settings

Definition at line 24 of file Initialize.c.

◆ QemuVideoBochsModes

STATIC QEMU_VIDEO_BOCHS_MODES QemuVideoBochsModes[]

Table of supported video modes

Definition at line 205 of file Initialize.c.

◆ QemuVideoCirrusModes

QEMU_VIDEO_CIRRUS_MODES QemuVideoCirrusModes[]
Initial value:
= {
{ 640, 480, 32, Crtc_640_480_32bpp_60, Seq_640_480_32bpp_60, 0xef },
{ 800, 600, 32, Crtc_800_600_32bpp_60, Seq_800_600_32bpp_60, 0xef },
{ 1024, 768, 24, Crtc_1024_768_24bpp_60, Seq_1024_768_24bpp_60, 0xef }
}

Table of supported video modes

Definition at line 139 of file Initialize.c.

◆ Seq_1024_768_24bpp_60

UINT16 Seq_1024_768_24bpp_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1507, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x760e, 0x2b1b, 0x2f1c, 0x301d, 0x341e
}

Definition at line 119 of file Initialize.c.

◆ Seq_1024_768_256_60

UINT16 Seq_1024_768_256_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1107, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x760e, 0x2b1b, 0x2f1c, 0x301d, 0x341e
}

Definition at line 104 of file Initialize.c.

◆ Seq_1024_768_32bpp_60

UINT16 Seq_1024_768_32bpp_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1907, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x760e, 0x2b1b, 0x2f1c, 0x301d, 0x341e
}

Definition at line 131 of file Initialize.c.

◆ Seq_640_480_256_60

UINT16 Seq_640_480_256_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1107, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x7e0e, 0x2b1b, 0x2f1c, 0x301d, 0x331e
}

Definition at line 45 of file Initialize.c.

◆ Seq_640_480_32bpp_60

UINT16 Seq_640_480_32bpp_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1907, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x7e0e, 0x2b1b, 0x2f1c, 0x301d, 0x331e
}

Definition at line 50 of file Initialize.c.

◆ Seq_800_600_256_60

UINT16 Seq_800_600_256_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1107, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x510e, 0x2b1b, 0x2f1c, 0x301d, 0x3a1e
}

Definition at line 72 of file Initialize.c.

◆ Seq_800_600_32bpp_60

UINT16 Seq_800_600_32bpp_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1907, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x510e, 0x2b1b, 0x2f1c, 0x301d, 0x3a1e
}

Definition at line 77 of file Initialize.c.

◆ Seq_960_720_32bpp_60

UINT16 Seq_960_720_32bpp_60[15]
Initial value:
= {
0x0100, 0x0101, 0x0f02, 0x0003, 0x0e04, 0x1907, 0x0008, 0x4a0b,
0x5b0c, 0x450d, 0x760e, 0x2b1b, 0x2f1c, 0x301d, 0x341e
}

Definition at line 89 of file Initialize.c.