From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id BD0D6AC16C3 for ; Tue, 6 Aug 2024 15:08:19 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=T+imemJDhB4aEhsKSdSVtTeUJtKYQOMAqxVm3Rq6Gsg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1722956899; v=1; b=JiuQkpF2lPn498cll0hfUvBfes5f9yB9iNoa05rU0+xa029bOHMIBNb1teYhQyDB0332TSvA u+SzYM+87gDy7I03rrsjDN71B1uzUBH4jPcX+dLVsjdOmaBJTkF05y/Ju+mIQGJRUouZy3J35FT Wex6aF/Spue1fbS58Ho4s2Ucn2arYOA6CrhYvST5UmaFkHRkDnRZM3UJRLf6oTr/1ZmcEtZB7Gw RoLyrjxfqrcA0kI3rqSm58KJ5AXB6gEcWHSb4e8Ym0/o888Na5liHq0+djhFOlRUeLmf5cHqaYb A7GkbqMm2i77wDO6Ke1uHbKM7kDZZ+lTOAfjElQbhQqRQ== X-Received: by 127.0.0.2 with SMTP id Ff6NYY7687511xCrdQ6hA5Pa; Tue, 06 Aug 2024 08:08:13 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by mx.groups.io with SMTP id smtpd.web10.693.1722922304663809029 for ; Mon, 05 Aug 2024 22:31:44 -0700 X-CSE-ConnectionGUID: 8yr/rMotQwK3zxSNKkmSoQ== X-CSE-MsgGUID: +7htZb06S0uyrD8nAyFrlA== X-IronPort-AV: E=McAfee;i="6700,10204,11155"; a="20883345" X-IronPort-AV: E=Sophos;i="6.09,266,1716274800"; d="scan'208";a="20883345" X-Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2024 22:31:42 -0700 X-CSE-ConnectionGUID: jm6Ilt6fTpyIJQD1OLt2Hg== X-CSE-MsgGUID: e2tfNz3vQ0y9xNmLIgABJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,266,1716274800"; d="scan'208";a="56324470" X-Received: from basfe006.gar.corp.intel.com ([10.66.244.178]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2024 22:31:40 -0700 From: "Ck, Chitralekha" To: devel@edk2.groups.io Cc: "Ck, Chitralekha" , Ck, Rangasai V Chaganty , Ashraf Ali S , Ray Ni Subject: [edk2-devel] [PATCH] IntelSiliconPkg: Add IgdOpRegion32.h to support IGD OpRegion v3.2 Date: Tue, 6 Aug 2024 11:01:28 +0530 Message-ID: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 06 Aug 2024 08:08:12 -0700 Resent-From: chitralekha.ck@intel.com Reply-To: devel@edk2.groups.io,chitralekha.ck@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zVwlOjH3Ne4WAuV22iOWk19wx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=JiuQkpF2; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io - Backlight related fields in MBOX2 has uncalibrated brightness support - Valid Bit added for BCL in MBOX2 Signed-off-by: Ck, Chitralekha Cc: Rangasai V Chaganty Cc: Ashraf Ali S Cc: Ray Ni --- .../Include/IndustryStandard/IgdOpRegion32.h | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h diff --git a/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h new file mode 100644 index 00000000..657a1a6c --- /dev/null +++ b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h @@ -0,0 +1,58 @@ +/** @file + IGD OpRegion definition from Intel Integrated Graphics Device OpRegion + Specification based on version 3.2. + + Copyright (c) 2024, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ +#ifndef _IGD_OPREGION_3_2_H_ +#define _IGD_OPREGION_3_2_H_ + +#include "IgdOpRegion30.h" + +#define IGD_OPREGION_HEADER_MBOX2_VER_3_2 BIT5 + +#pragma pack(1) + +/// +/// Backlight Brightness for LFP1 and LFP2 +/// +typedef union { + typedef struct { + UINT32 Brightness : 8; ///< Backlight Brightness + UINT32 Rsvd : 22; ///< Reserved Bit + UINT32 Ubs : 1; ///< Uncalibrated Brightness Support + UINT32 FValid : 1; ///< Field Valid Bit + } Bits; + UINT32 Data; +} IGD_BCL; + +/// +/// OpRegion Mailbox 2 - Backlight communication +/// Offset 0x200, Size 0x100 +/// +typedef struct { + IGD_BCL BCL1; ///< Offset 0x200 Backlight Brightness for LFP1 + IGD_BCL BCL2; ///< Offset 0x204 Backlight Brightness for LFP2 + UINT32 CBL1; ///< Offset 0x208 Current User Brightness Level for LFP1 + UINT32 CBL2; ///< Offset 0x20C Current User Brightness Level for LFP2 + UINT32 BCM1[0x1E]; ///< Offset 0x210 Backlight Brightness Levels Duty Cycle Mapping Table for LFP1 + UINT32 BCM2[0x1E]; ///< Offset 0x288 Backlight Brightness Levels Duty Cycle Mapping Table for LFP2 +} IGD_OPREGION_MBOX2_VER_3_2; + + +/// +/// IGD OpRegion Structure +/// +typedef struct { + IGD_OPREGION_HEADER Header; ///< OpRegion header (Offset 0x0, Size 0x100) + IGD_OPREGION_MBOX1_VER_3_0 MBox1; ///< Mailbox 1: Public ACPI Methods (Offset 0x100, Size 0x100) + IGD_OPREGION_MBOX2_VER_3_2 MBox2; ///< Mailbox 2: Backlight communication (Offset 0x200, Size 0x100) + IGD_OPREGION_MBOX3_VER_3_0 MBox3; ///< Mailbox 3: BIOS to Driver Notification (Offset 0x300, Size 0x100) + IGD_OPREGION_MBOX4 MBox4; ///< Mailbox 4: Video BIOS Table (VBT) (Offset 0x400, Size 0x1800) + IGD_OPREGION_MBOX5 MBox5; ///< Mailbox 5: BIOS to Driver Notification Extension (Offset 0x1C00, Size 0x400) +} IGD_OPREGION_STRUCTURE_VER_3_2; +#pragma pack() + +#endif \ No newline at end of file -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120253): https://edk2.groups.io/g/devel/message/120253 Mute This Topic: https://groups.io/mt/107746663/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-