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 61D8C7803CE for ; Thu, 8 Aug 2024 13:35:36 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=WrMIgGXDtOaXJARvH1FWR+/6tMiRqiDSZ2dGEWu9jlE=; 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=1723124136; v=1; b=V0U0ZYwE1ZflcrEaKK/Xa3iVHVmHWEm39h+c7oy8K/Wl+h//avlfUfzZA0z4zSluRl6NpljH YkmQAIiCS8nW4nC+YPeFQGHB1F5zVKJhsis4jbpOB0ObVO+8fBQ9o2h9BRUXYqOF7w80wZVuKH3 nKC3lVkWEdisUsJfUNQguRwCashmIxplysp8oGzeq3jV1SXVYBE9FKeB3ZvZB8Ku3PKT0YrY5+f ALeZcVTvmlYm6NwMyZh8PTNtXVGLUn7YLFMvybfx4+y8xOv+1nAqmzp2i5s2PjJfa+OWrygQZNt t/EXD/YG31bKCT7shiyD9QRFZZazEuAK/WbLpUge0hnTQ== X-Received: by 127.0.0.2 with SMTP id XpMFYY7687511x5Fwb33QFe5; Thu, 08 Aug 2024 06:35:34 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by mx.groups.io with SMTP id smtpd.web10.52533.1723091603476380134 for ; Wed, 07 Aug 2024 21:33:23 -0700 X-CSE-ConnectionGUID: Hb1nMuj6TzG3/peB4RIOVg== X-CSE-MsgGUID: 9zP3HWL/Qh6XpycS36Cc8Q== X-IronPort-AV: E=McAfee;i="6700,10204,11157"; a="21075476" X-IronPort-AV: E=Sophos;i="6.09,271,1716274800"; d="scan'208";a="21075476" X-Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2024 21:33:23 -0700 X-CSE-ConnectionGUID: ehSXgYk/TaquMSPPuso+3w== X-CSE-MsgGUID: sdV8pwcHRga29Ah+2Qdihw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,271,1716274800"; d="scan'208";a="57039427" X-Received: from basfe006.gar.corp.intel.com ([10.66.244.178]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2024 21:33:21 -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: Thu, 8 Aug 2024 10:03:04 +0530 Message-ID: <0d11744b6d7d4a6c0ef8569c69b8ee5641df7a5a.1723091579.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: Thu, 08 Aug 2024 06:35:33 -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: b8LsB95cRFhNYGKG6CPIklDVx7686176AA= 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=V0U0ZYwE; 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 | 59 +++++++++++++++++++ test.log | 0 2 files changed, 59 insertions(+) create mode 100644 Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h create mode 100644 test.log diff --git a/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h new file mode 100644 index 00000000..ee5f661e --- /dev/null +++ b/Silicon/Intel/IntelSiliconPkg/Include/IndustryStandard/IgdOpRegion32.h @@ -0,0 +1,59 @@ +/** @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 + diff --git a/test.log b/test.log new file mode 100644 index 00000000..e69de29b -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120293): https://edk2.groups.io/g/devel/message/120293 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] -=-=-=-=-=-=-=-=-=-=-=-