From patchwork Fri Dec 15 16:59:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 122133 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp720455qgn; Fri, 15 Dec 2017 08:59:35 -0800 (PST) X-Google-Smtp-Source: ACJfBosxQlId84Akw/PXQDh1uEJSl8F4qDwQ7ZeFIBPYfjekLdtGpicdJVZkcRAo3PK+/glQu7Wb X-Received: by 10.101.101.205 with SMTP id y13mr12654751pgv.249.1513357175545; Fri, 15 Dec 2017 08:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513357175; cv=none; d=google.com; s=arc-20160816; b=0cw2lYouIYiKTNLKRSqanb65LI6HNp2ZwQ22/4X82k5+dtERZMZZlaVg+W5k2CZPDh V/6ondt2dM8LJQ+0bjLB9aRIXRDGHRrI8AYBQZ9qagvGAiL4ZOJ0Kn6KDWtOhuhOa148 K25lkbVThNeCvGJCJ8OaC3C/gSHxHxwqstkwIPagItRZo93EFNB50eH8GYeR8rK700bU gJrLSBtGlpzCKABFIWZKt+LoCBT2C5dpa+hguQRQXZnKPuMp4S6N98QlApQAYbYVA9MF VMSVMZwTELSbtTXpnS05nIu/y2c5Uj/OhaPBTrZDK0pCXAVBdyQ1eJENtuZ99Sa9gweX jQug== 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=PgZkjo8Ywktw1cn2DQBA34geW7vDk2yNhpfNTfKANJM=; b=oewtSV84YyJ89go7i56gJISbtzNK0X4tUGTdOFnF22/yevT9RzsdjE45RJi8L1iD8q 2djc+VHlYQRLJmzRTv2ZbuNk9lANjhFuueRH/rNGXaTKVLgKBjGwSkO6/iWPh1hNSMiw 19xKDe1olJsirIqQs3VNynAHch5gPoWlouPa6rWp1OOXGdf7c0YIcNDn5Eb6+VGtkn4f nJtDTXR/HU2Lu1qBxagkSlvE0+D0gvjyS0FTGYnSD9Nv5wc//GTgxYOKmIQC1mOXi0De UHbJ2b+bZTADPaaEC2cvOEuUh5kprr52m+bhZ6PVa9foLCNMQIF3sOM3vx4LU6fu0+uI 4FJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=g1A5o1/G; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id y2si5279360pli.150.2017.12.15.08.59.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 08:59:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=g1A5o1/G; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 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 514B8221E06B8; Fri, 15 Dec 2017 08:54:51 -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=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::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 BDB84221E06AE for ; Fri, 15 Dec 2017 08:54:49 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id l11so2536353wrc.11 for ; Fri, 15 Dec 2017 08:59:32 -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=a2aRwiUF6f8sXygcN9j9FQJLy1WYbepZSB4fC+Zml/c=; b=g1A5o1/GTNfbvJDKw9lk2qHrLbos7kxd5RVwNORmvKQLdn6ReqK9jzCNdEMMtN57O5 YDlbuN6lLAuXx5ShVrKvRZJb15dx8NHmmANyBs2BM/h13eRpd/VHWHk6xqNUqyxigP0O gCBn7doldlcm579vao48iXVWrIkcloRq6/lSg= 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=a2aRwiUF6f8sXygcN9j9FQJLy1WYbepZSB4fC+Zml/c=; b=DP0Rok/6mlKvfj1sgxCC2WBM6zRt2OeAnPg2uzi4y0VMmNFSdUWC4lN7E2G5qDpMl6 kpRLMFX4dloUrWULqb8NzqAm8oOyeNfn1QRLyPNTYwvOsaiCmHOGmagGT7IT52YFGrfV X9MpK3kyg3eRiE7LFnpjisyhXmZ0XTDY6ugbcxnScTMTmHYfF8OLo1zTZXxFZ+FBkE/6 8wsmLUbFcD8hvAjlBQudEjOQH1wvGGYWH5fszjNiSPAnX6uMlz3a6Ei2rJaamCJoMqAc YDppeZ2YDFohzCiGX8JLrC4V5tfmmU1cDwJgA54s1lFdtfUG1mALxb4PLMtCa9A7sLZ6 R9rg== X-Gm-Message-State: AKGB3mJIui2aKCs5txXPQHgZlk5bCTk0Xp/ROQkELXf8dG69ooavBh1a izdvycOKfE57mkgsPT9jRU+41RREmqs= X-Received: by 10.223.147.195 with SMTP id 61mr2406117wrp.176.1513357170508; Fri, 15 Dec 2017 08:59:30 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id f18sm4570440wrg.66.2017.12.15.08.59.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Dec 2017 08:59:29 -0800 (PST) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Fri, 15 Dec 2017 16:59:24 +0000 Message-Id: <20171215165925.12306-3-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171215165925.12306-1-leif.lindholm@linaro.org> References: <20171215165925.12306-1-leif.lindholm@linaro.org> Subject: [edk2] [PATCH v2 2/3] MdeModulePkg: use central variable definitions in DriverSampleDxe X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Dong , Star Zeng MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Use UefiMultiPhase.h in Vfr.vfr instead of duplicating EFI_VARIABLE_* definitions. Cc: Star Zeng Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Star Zeng Signed-off-by: Leif Lindholm diff --git a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr index c1682913fa..b1017d9fd0 100644 --- a/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr +++ b/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr @@ -14,6 +14,7 @@ //**/ +#include #include "NVDataStruc.h" // @@ -35,14 +36,6 @@ #define EFI_FRONT_PAGE_SUBCLASS 0x02 #define EFI_SINGLE_USE_SUBCLASS 0x03 -// -// EFI Variable attributes -// -#define EFI_VARIABLE_NON_VOLATILE 0x00000001 -#define EFI_VARIABLE_BOOTSERVICE_ACCESS 0x00000002 -#define EFI_VARIABLE_RUNTIME_ACCESS 0x00000004 -#define EFI_VARIABLE_READ_ONLY 0x00000008 - #define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \ { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }