From a39d85f6ed4cc08b4bc07a947ea94c5f4b946e74 Mon Sep 17 00:00:00 2001 From: klu2 Date: Mon, 9 Mar 2009 07:48:44 +0000 Subject: Add more comments for thunk call. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7836 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/BiosVideoThunkDxe/BiosVideo.c | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c index 2a3c41aefb..07a20aeb00 100644 --- a/DuetPkg/BiosVideoThunkDxe/BiosVideo.c +++ b/DuetPkg/BiosVideoThunkDxe/BiosVideo.c @@ -1088,6 +1088,21 @@ BiosVideoCheckForVbe ( // // Test to see if the Video Adapter is compliant with VBE 3.0 // + // INT 10 - VESA SuperVGA BIOS (VBE) - GET SuperVGA INFORMATION + // + // AX = 4F00h + // ES:DI -> buffer for SuperVGA information (see #00077) + // Return: AL = 4Fh if function supported + // AH = status + // 00h successful + // ES:DI buffer filled + // 01h failed + // ---VBE v2.0--- + // 02h function not supported by current hardware configuration + // 03h function invalid in current video mode + // Desc: determine whether VESA BIOS extensions are present and the capabilities + // supported by the display adapter + // gBS->SetMem (&Regs, sizeof (Regs), 0); Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_CONTROLLER_INFORMATION; gBS->SetMem (BiosVideoPrivate->VbeInformationBlock, sizeof (VESA_BIOS_EXTENSIONS_INFORMATION_BLOCK), 0); @@ -1121,6 +1136,19 @@ BiosVideoCheckForVbe ( // // Read EDID information // + // INT 10 - VESA VBE/DC (Display Data Channel) - READ EDID + // + // AX = 4F15h + // BL = 01h + // CX = 0000h + // DX = 0000h + // ES:DI -> 128-byte buffer for EDID record (see #00127) + // Return: AL = 4Fh if function supported + // AH = status + // 00h successful + // ES:DI buffer filled + // 01h failed (e.g. non-DDC monitor) + // gBS->SetMem (&Regs, sizeof (Regs), 0); Regs.X.AX = VESA_BIOS_EXTENSIONS_EDID; Regs.X.BX = 1; @@ -1202,6 +1230,18 @@ BiosVideoCheckForVbe ( // // Get the information about the mode // + // INT 10 - VESA SuperVGA BIOS - GET SuperVGA MODE INFORMATION + // + // AX = 4F01h + // CX = SuperVGA video mode (see #04082 for bitfields) + // ES:DI -> 256-byte buffer for mode information (see #00079) + // Return: AL = 4Fh if function supported + // AH = status + // 00h successful + // ES:DI buffer filled + // 01h failed + // Desc: determine the attributes of the specified video mode + // gBS->SetMem (&Regs, sizeof (Regs), 0); Regs.X.AX = VESA_BIOS_EXTENSIONS_RETURN_MODE_INFORMATION; Regs.X.CX = *ModeNumberPtr; -- cgit v1.2.3