From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by mx.groups.io with SMTP id smtpd.web12.1453.1587434692636063162 for ; Mon, 20 Apr 2020 19:04:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bsdio.com, ip: 166.70.13.231, mailfrom: rebecca@bsdio.com) Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQiHL-0005rW-RB; Mon, 20 Apr 2020 20:04:51 -0600 Received: from mta4.zcs.xmission.com ([166.70.13.68]) by in02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.87) (envelope-from ) id 1jQiHL-00076I-6X; Mon, 20 Apr 2020 20:04:51 -0600 Received: from localhost (localhost [127.0.0.1]) by mta4.zcs.xmission.com (Postfix) with ESMTP id 060A95003D6; Mon, 20 Apr 2020 20:04:51 -0600 (MDT) X-Amavis-Modified: Mail body modified (using disclaimer) - mta4.zcs.xmission.com Received: from mta4.zcs.xmission.com ([127.0.0.1]) by localhost (mta4.zcs.xmission.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3Ma6i48iRU_r; Mon, 20 Apr 2020 20:04:50 -0600 (MDT) Received: from photon.int.bluestop.org (muon.bluestop.org [65.103.231.193]) by mta4.zcs.xmission.com (Postfix) with ESMTPSA id 85FA0500324; Mon, 20 Apr 2020 20:04:50 -0600 (MDT) From: "Rebecca Cran" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Leif Lindholm , Michael Kinney , Andrew Fish , Rebecca Cran Date: Mon, 20 Apr 2020 20:04:37 -0600 Message-Id: <20200421020441.34175-5-rebecca@bsdio.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200421020441.34175-1-rebecca@bsdio.com> References: <20200421020441.34175-1-rebecca@bsdio.com> MIME-Version: 1.0 X-XM-SPF: eid=1jQiHL-00076I-6X;;;mid=<20200421020441.34175-5-rebecca@bsdio.com>;;;hst=in02.mta.xmission.com;;;ip=166.70.13.68;;;frm=rebecca@bsdio.com;;;spf=pass X-SA-Exim-Connect-IP: 166.70.13.68 X-SA-Exim-Mail-From: rebecca@bsdio.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa08.xmission.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TooManySym_01,XMSubLong autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 0.7 XMSubLong Long Subject * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa08 1397; IP=ok Body=1 Fuz1=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa08 1397; IP=ok Body=1 Fuz1=1 X-Spam-Combo: ;devel@edk2.groups.io X-Spam-Relay-Country: X-Spam-Timing: total 396 ms - load_scoreonly_sql: 0.07 (0.0%), signal_user_changed: 14 (3.6%), b_tie_ro: 12 (3.1%), parse: 1.26 (0.3%), extract_message_metadata: 13 (3.3%), get_uri_detail_list: 1.07 (0.3%), tests_pri_-1000: 15 (3.8%), tests_pri_-950: 1.32 (0.3%), tests_pri_-900: 1.12 (0.3%), tests_pri_-90: 69 (17.3%), check_bayes: 67 (16.9%), b_tokenize: 6 (1.6%), b_tok_get_all: 7 (1.7%), b_comp_prob: 1.64 (0.4%), b_tok_touch_all: 48 (12.1%), b_finish: 1.31 (0.3%), tests_pri_0: 269 (67.8%), check_dkim_signature: 0.49 (0.1%), check_dkim_adsp: 3.2 (0.8%), poll_dns_idle: 1.54 (0.4%), tests_pri_10: 2.2 (0.6%), tests_pri_500: 7 (1.8%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH v2 4/8] OvmfPkg: Add VBE2 mode info structure to LegacyVgaBios.h X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Content-Transfer-Encoding: 8bit bhyve uses the older VESA BIOS Extensions 2.0, so add the mode info structure to IndustryStandard/LegacyVgaBios.h Signed-off-by: Rebecca Cran Acked-by: Laszlo Ersek --- .../Include/IndustryStandard/LegacyVgaBios.h | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/OvmfPkg/Include/IndustryStandard/LegacyVgaBios.h b/OvmfPkg/Include/IndustryStandard/LegacyVgaBios.h index 317dac3a5679..38360a68b259 100644 --- a/OvmfPkg/Include/IndustryStandard/LegacyVgaBios.h +++ b/OvmfPkg/Include/IndustryStandard/LegacyVgaBios.h @@ -86,6 +86,44 @@ typedef struct { UINT32 MaxPixelClockHz; UINT8 Reserved[190]; } VBE_MODE_INFO; + +typedef struct { + UINT16 ModeAttr; + UINT8 WindowAAttr; + UINT8 WindowBAttr; + UINT16 WindowGranularityKB; + UINT16 WindowSizeKB; + UINT16 WindowAStartSegment; + UINT16 WindowBStartSegment; + UINT32 WindowPositioningAddress; + UINT16 BytesPerScanLine; + + UINT16 Width; + UINT16 Height; + UINT8 CharCellWidth; + UINT8 CharCellHeight; + UINT8 NumPlanes; + UINT8 BitsPerPixel; + UINT8 NumBanks; + UINT8 MemoryModel; + UINT8 BankSizeKB; + UINT8 NumImagePagesLessOne; + UINT8 Vbe3; + + UINT8 RedMaskSize; + UINT8 RedMaskPos; + UINT8 GreenMaskSize; + UINT8 GreenMaskPos; + UINT8 BlueMaskSize; + UINT8 BlueMaskPos; + UINT8 ReservedMaskSize; + UINT8 ReservedMaskPos; + UINT8 DirectColorModeInfo; + + UINT32 LfbAddress; + UINT32 OffScreenAddress; + UINT16 OffScreenSizeKB; +} VBE2_MODE_INFO; #pragma pack () #endif -- 2.20.1