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 D0607AC172E for ; Tue, 6 Aug 2024 15:08:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Sym2IEngMTpn2lb3cALqG1lMCo/+MpzYy3sI9AidwGw=; 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=1722956901; v=1; b=lFcDYJwJv+Owut1tIdr8GNEGdcRD462Xfug9dAtBXcMkoqT67URBi9DEpdNLUhOzCiSFcy4H BYcr1V97qh7aBbcMyBwyOMA9Ds9HmIBG5vfQlFJ64Im/A3w+B6sp4+UACV6OwG5YbM4iZJ6zjuh X7GoDHuA6Dv3V9XQGm+SYSKSE4bEVQ4SHvaxKRR2UeTiGOBpUNbfprscKPCWiYaDMxmeCUo+0f8 et9CiBpdSmwlGTH98QQFSEusLBTT4WDuJZBdmLXtjsc2C7nn3KzYoBxxc4KvFyDmp0tfbwNss36 HrGZM2uJwnreV6YbTgwFpqvs+IpNPco7BD52pALPfPoWA== X-Received: by 127.0.0.2 with SMTP id hx4eYY7687511xmuyMXbBRqi; Tue, 06 Aug 2024 08:08:20 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mx.groups.io with SMTP id smtpd.web11.3524.1722936994269186595 for ; Tue, 06 Aug 2024 02:36:34 -0700 X-CSE-ConnectionGUID: 5BAKsHy3SMiaI9TSXwMQCA== X-CSE-MsgGUID: PEPukn6pSIubBchvaI17CQ== X-IronPort-AV: E=McAfee;i="6700,10204,11155"; a="20518826" X-IronPort-AV: E=Sophos;i="6.09,267,1716274800"; d="scan'208";a="20518826" X-Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2024 02:36:34 -0700 X-CSE-ConnectionGUID: rwYZR2KsTjq3ujPdYSv28Q== X-CSE-MsgGUID: F6aDvYYLRyOzRiAXP8je5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,267,1716274800"; d="scan'208";a="60826762" X-Received: from basfe006.gar.corp.intel.com ([10.66.244.178]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Aug 2024 02:36:31 -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 15:06:18 +0530 Message-ID: <610b29a784bf7116f1ee7c030a7cc1620732d3c7.1722936973.git.chitralekha.ck@intel.com> 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: Wjc9dm5haXQ1anUtL223kqYLx7686176AA= 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=lFcDYJwJ; 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..39c79422 --- /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 { + 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 (#120255): https://edk2.groups.io/g/devel/message/120255 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] -=-=-=-=-=-=-=-=-=-=-=-