From patchwork Fri Feb 2 03:30:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary guo X-Patchwork-Id: 126605 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp248627ljc; Thu, 1 Feb 2018 19:30:40 -0800 (PST) X-Google-Smtp-Source: AH8x2260isLWOLtmZJ7+pbQYGjAsshIPYGbbP+gld+QJFqQjFm9lBABXNdR/5U6fuNRaO8E8yTOK X-Received: by 10.101.74.129 with SMTP id b1mr31288229pgu.317.1517542240114; Thu, 01 Feb 2018 19:30:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517542240; cv=none; d=google.com; s=arc-20160816; b=cEztWvgcMMpm68kwg+1sKht/8MMlA4txufmCA9h3/8xIAI1Gl3I/7cTF8Qk9xcGDIf Pz37kRL0e9WkDJGbDuwuDR7QqCEGwTDgnMp3XzKvgEbzyuU3ddVXXKvFHdwL7HgYjYBA xTX5mxlLsUEX5HTqn4KJ2iSD+cYTBcm9oChx4E9Tx5PP5JAmMGK6cMYn4nYkHJmu9Sm5 8AKuScyFCAY6KPUBzdwp3lB0Xue/vccPn0/fPUmTiq3Gr9ioou8RDxnoOAe9ElcLL37S WxurQbXSREW+YH6L3qg5COerlruBUZAmfJWoxGPGAD3I3Vnu5gvl5qbj4cdG4LEMARVC eW0A== 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=5EyTXxhuzc026W4i7w9Fg7AfsPW9X0aOwhVYJQTyvPI=; b=MFIiRI2ZLF41UBDxQyn8nSWbi9jttq272AwetqRaWfnl3ppe1wm2gYce3gXBsuYyRx 0T0h79iANVnAfq7qssB3g2fA1oUMPDVsqlg8Cg3wUaZiq6mgJLOB6iDkCoWczLOJ9hGc XLvPrIYiLHUxtB2fvIH+3zuTYzpW1MiCwbBldVQoFD5JJfdh0Zmgdeoz6JA/7ey1KGb5 DDSBxvHw2000+/A6zXbvpBcU9GnThYCDhh1qMqVuif20m0n9offi+dpSfbrCYCv0+n+0 RGVSoSLRM7FWplh5PLyGjCmBHax+tXwsmmJPgXS1rOz2ZZnzdK0idXngY0AS+aXlbuzE oADQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Xkzd1/jb; 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 t62si956830pfa.49.2018.02.01.19.30.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 19:30:40 -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=Xkzd1/jb; 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 B18B02239362F; Thu, 1 Feb 2018 19:25:01 -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:c01::244; helo=mail-pl0-x244.google.com; envelope-from=heyi.guo@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pl0-x244.google.com (mail-pl0-x244.google.com [IPv6:2607:f8b0:400e:c01::244]) (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 4B913223CCEE4 for ; Thu, 1 Feb 2018 19:25:00 -0800 (PST) Received: by mail-pl0-x244.google.com with SMTP id 11so5155492plc.9 for ; Thu, 01 Feb 2018 19:30:38 -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=5HkWd6IH/hAhUkHD9pV5SHfrDAWi5DdKQsdjuMm6O2s=; b=Xkzd1/jbIKdS9hC/5XcqFb4+Uo6KMl6Na0Ur429hAQp9tJBsE9WlWWEeW9PvZ6Pa6K 0Evzy7T3JK0AoQ1ZbaxvTXEDpt1TbUImhDI2zMpoB/lqVUbz9nTH7oNzkQ660CQNAtLH G4YIImu4EX2EeTdaGdD9bt8wD75Z5B0Fx2SOM= 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=5HkWd6IH/hAhUkHD9pV5SHfrDAWi5DdKQsdjuMm6O2s=; b=FEtxoyCp8Dma7XqxqrdhBXnBnBgLtzZEg+s+RmpKtUMBXyK847z+IsvANLK8fMdrv/ wit7s5duTK8BKlLKR6SVBlOhASI/TntS/cRKYsMNtwkYxATGGxOrF5Bk1M7Pidpe32Jv xo7YByDFdNN3FlAktBDETzms4iigCJ1mJJmdf9FQ8Qte6uPMqn5KGe/yJqM6irV+mOco aHFN/8/9IWl7pQeBHXRGHwcY0Km2y97a8XLJyci97xDuX9rH6RRJAO8sRAK5kRZCzDcn xR/3Gmnm2MxAkbi3GpM2KDetcdY2ileJtQ0PaQSle55g55bRE4pTmqU0h78MM6X+AX/v U12A== X-Gm-Message-State: AKwxytc6uO2Nzh81pEUgonatEekl5BSEIJPTj//noTW3JhmffiV9Oomq rIu9XyrVrbyeA1g3tEXPMJJyJg== X-Received: by 2002:a17:902:6b83:: with SMTP id p3-v6mr33521986plk.18.1517542237844; Thu, 01 Feb 2018 19:30:37 -0800 (PST) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id q10sm1118037pfh.178.2018.02.01.19.30.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 19:30:37 -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: Fri, 2 Feb 2018 11:30:27 +0800 Message-Id: <1517542227-32907-2-git-send-email-heyi.guo@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517542227-32907-1-git-send-email-heyi.guo@linaro.org> References: <1517542227-32907-1-git-send-email-heyi.guo@linaro.org> Subject: [edk2] [PATCH edk2/MdePkg v1] 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, liming.gao@intel.com, mengfanrong@huawei.com, guoheyi@huawei.com, Heyi Guo , zhangjinsong2@huawei.com, michael.d.kinney@intel.com, waip23@126.com, wanghuiqiang@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 diff --git a/MdePkg/Include/IndustryStandard/Acpi62.h b/MdePkg/Include/IndustryStandard/Acpi62.h index 2904d34..30faba9 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; /// +/// Value for valid fields in PPTT struct +/// +#define EFI_ACPI_6_2_PPTT_INVALID 0x0 +#define EFI_ACPI_6_2_PPTT_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 {