From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 876BAD811BF for ; Fri, 17 Nov 2023 10:01:22 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Fak2JiROL2qWXt5DdGaOnduarfi4/CRA14ye00hd6gk=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700215281; v=1; b=Pi6gQEIouJtO2TMWyHRdWmUPz9L6AAYcg0jdwS6QQ8rilAABAAOUewS6HHtj7MZ5fQUCG0N3 hwrFZZCaBOG54sRT7S/0acT3Q56ct0QyH4V2CknUTDkvozZKdWtGvHrUW0Cay2+ylxbGx7aNsTw cV0mzwah3S1Yb2n+kh3PbP84= X-Received: by 127.0.0.2 with SMTP id 3yoeYY7687511xs23PIUkQwv; Fri, 17 Nov 2023 02:01:21 -0800 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web11.8687.1700215279960584189 for ; Fri, 17 Nov 2023 02:01:20 -0800 X-Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8DxxPDtOVdlTMc6AA--.51618S3; Fri, 17 Nov 2023 18:01:17 +0800 (CST) X-Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxkN3tOVdlCzpFAA--.23495S2; Fri, 17 Nov 2023 18:01:17 +0800 (CST) From: "Chao Li" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [edk2-devel] [PATCH v3 19/39] MdePkg: Add a PCD feature flag named PcdPciIoTranslationIsEnabled Date: Fri, 17 Nov 2023 18:01:16 +0800 Message-Id: <20231117100116.3609745-1-lichao@loongson.cn> In-Reply-To: <20231117095742.3605778-1-lichao@loongs> References: <20231117095742.3605778-1-lichao@loongs> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8DxkN3tOVdlCzpFAA--.23495S2 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQASCGVWzaoGGAA6sr X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== 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 Reply-To: devel@edk2.groups.io,lichao@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: zkdWUCWSqgBRC395O8KsqOvBx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=Pi6gQEIo; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none Some ARCH need to use MMIO to access PCI IO, such as ARM AARCH64 RISC-V and LOONGARCH64. In some drivers, a PCD value is added to determine whether to use MMIO. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4584 Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Chao Li --- MdePkg/MdePkg.dec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index ac54338089..55f5230c31 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2018,6 +2018,12 @@ # @Prompt Validate ORDERED_COLLECTION structure gEfiMdePkgTokenSpaceGuid.PcdValidateOrderedCollection|FALSE|BOOLEAN|0x0000002a + ## Indicates if PCI IO translation is used. + # TRUE - PCI IO translation is enable. + # FALSE - PCI IO translation is disable. + # @Prompt Pci Io Translation Is Enabled. + gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslationIsEnabled|FALSE|BOOLEAN|0x00000043 + [PcdsFixedAtBuild] ## Status code value for indicating a watchdog timer has expired. # EFI_COMPUTING_UNIT_HOST_PROCESSOR | EFI_CU_HP_EC_TIMER_EXPIRED -- 2.27.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111372): https://edk2.groups.io/g/devel/message/111372 Mute This Topic: https://groups.io/mt/102644778/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-