summaryrefslogtreecommitdiff
path: root/DuetPkg/BiosVideoThunkDxe
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-09 07:48:44 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-09 07:48:44 +0000
commita39d85f6ed4cc08b4bc07a947ea94c5f4b946e74 (patch)
tree111bc3b6efa1d872a260669da2c5abe1e622c846 /DuetPkg/BiosVideoThunkDxe
parent8a9e0b7274c69ac35067555f9cefef64140a56f4 (diff)
downloadedk2-platforms-a39d85f6ed4cc08b4bc07a947ea94c5f4b946e74.tar.xz
Add more comments for thunk call.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7836 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BiosVideoThunkDxe')
-rw-r--r--DuetPkg/BiosVideoThunkDxe/BiosVideo.c40
1 files changed, 40 insertions, 0 deletions
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;