From patchwork Tue Feb 6 06:41:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 126950 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2640617ljc; Mon, 5 Feb 2018 22:42:05 -0800 (PST) X-Google-Smtp-Source: AH8x227XDAQvsYNDOwyXBgwjdLFsKwffhs27OwncsVFArPzGv6Zo5kW/rrMg3j221Txs+0eEKcVS X-Received: by 10.99.97.193 with SMTP id v184mr1102504pgb.387.1517899324868; Mon, 05 Feb 2018 22:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517899324; cv=none; d=google.com; s=arc-20160816; b=P5TKN5tCoZ8Wwl0BVZtcHzFTB9/iC7Aqx0seqYdvdCMaho/qbRsScnrci4I5nnfxCW gnJP/MERA0u/3MaMSmEmqQApdKDZYRO5MFfvKYGVjLhpJW2/fdk8e8t2zi0SWxV6plVQ 8ekYrc+R6iu7DIDvLGSqCViX7YBcVDfPhbfJ5A21RGAGpLNwMn7qKgzF+kW6je94w59U hq1c2aUjOuFP5HRmX1mu5sNx4TWUSaPgOX4K+HEQVNWk+uIaTp7TQmE8LnXZB6bpgepN Mzm14gDUDvJ3R4mD2V9UOsZ8cf28+fBuHdzxv1ISyvrHS4joBN33kkavKoVG5dXX66iQ yH+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=cGlcPoXwltobak+1/xKZiVdTWsvmnwRjvI1ItWP7bm0=; b=utn987OrxHKnYdgdmNt7P085atbBbja2t95VocA7Gks4xpvFkabq35eH41UBA1bT/G nMpBTO6lU58LaIiNf702CnZqKk0vzEhVzLqQfFFnb3jbx19Us4cCfv8uaRAbQMYubWc1 sN2DU/Yn4GGxzaEcTlLgbYZCyHGLBr3b9XOW76LQVBQvrPfs8WoNqbmEnZPFP5toj+yD 4zzuUsW5t8oBbBkzkAZwLTEi6810yOAiynXHFX5K2x3VbxXiB/aCgIytraRRnaBlpZT1 YBg+wCib4PYwKRmMAcWR6IG141AcpYGOBzRy2pdC3zwQjdCttThCiZzMrHomzN8KZl/9 nO3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NzTwvx0D; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id o14-v6si6355716pll.386.2018.02.05.22.42.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 22:42:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NzTwvx0D; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D3E882237A4CC; Mon, 5 Feb 2018 22:36:21 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:400e:c00::241; helo=mail-pf0-x241.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 67C5221F0DA49 for ; Mon, 5 Feb 2018 22:36:20 -0800 (PST) Received: by mail-pf0-x241.google.com with SMTP id g17so208012pfh.1 for ; Mon, 05 Feb 2018 22:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=44UXZt4dsp4UBXDeyp/8Q8z2ua4DlvUdHGOcUU1gWvk=; b=NzTwvx0DoVC/Wx0/yQizzWYB56HeOXwPGeDO8A9gRR/jgz1HBnpheViN7820FVruqp y3JVc5FZDpZ/8RFfgRgMf63jPRtJkC47Bh41BSyp7fhnm5vvbnHy9oW5RqND0gzPwYfy VpXHXl3sAps5ZEpgYuFZKxJAP7ePY1gX0ec74= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=44UXZt4dsp4UBXDeyp/8Q8z2ua4DlvUdHGOcUU1gWvk=; b=uHqXlvQ2gJBcXuKxMQBQL9vwdnrMWsTvv/iBVmvM0dA3o2UAf/msutQwbz4zVpU+qg CJiQCzyWToVyBiMShjLEAtfJTOaUvOoEcQIQaZRODH6jTtF7gOfVcGLV2xmYNxQ+Oezm RLsLxJNi3gZORr9yKJLq8wjA7hDFK+MPwcv7dcV4X3c6biZNFfXODpG6FuVon0XUEA+5 rnyogPlC9JLtfWlkLvgwFhVXxqINDywxMNGaABSaXH117fVwaVFGH/jkQCxgM15Dq0UT DDgMUXR5ooZhN+fWE5HB+cS+Z38frvg60n0SBMKXoHArOJOiGLkTysH1leRTRFRqlIhg UW7A== X-Gm-Message-State: APf1xPDk9M0b9FHmNwb0XHZEI9bLP8Her3OeUwBWsOmACFtgEu1u3dKN 8S4OOE4VfmTvLOMAlyhXJ/bhWA== X-Received: by 10.99.172.86 with SMTP id z22mr1104998pgn.273.1517899322696; Mon, 05 Feb 2018 22:42:02 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id g17sm16540420pfh.134.2018.02.05.22.41.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Feb 2018 22:42:02 -0800 (PST) From: Heyi Guo To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 6 Feb 2018 14:41:45 +0800 Message-Id: <1517899305-2234-2-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517899305-2234-1-git-send-email-heyi.guo@linaro.org> References: <1517899305-2234-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2/MdePkg v2] MdePkg ACPI: Add some macros for PPTT X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, ard.biesheuvel@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, Heyi Guo , wanghuiqiang@huawei.com, guoheyi@huawei.com, waip23@126.com, mengfanrong@huawei.com, huangdaode@hisilicon.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang Signed-off-by: Heyi Guo --- MdePkg/Include/IndustryStandard/Acpi62.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 1.9.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Star Zeng Signed-off-by: Ming Huang Signed-off-by: Heyi Guo Reviewed-by: Liming Gao Reviewed-by: Liming Gao diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h index 2904d34..730365b 100644 --- a/MdePkg/Include/IndustryStandard/Acpi62.h +++ b/MdePkg/Include/IndustryStandard/Acpi62.h @@ -2557,6 +2557,12 @@ typedef struct { } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER; /// +/// For PPTT struct processor flags +/// +#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0 +#define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID 0x1 + +/// /// Processor hierarchy node structure flags /// typedef struct { @@ -2593,6 +2599,18 @@ typedef struct { } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS; /// +/// For cache attributes +/// +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0 +#define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1 + +/// /// Cache Type Structure cache attributes /// typedef struct {